POST
/
research
curl --request POST \
  --url https://chat-api.you.com/research \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "query": "<string>",
  "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "answer": "# Understanding Solar Eclipses\n\nA solar eclipse is a fascinating celestial event that occurs when the Moon moves between the Earth and the Sun, casting a shadow on Earth and blocking the Sun's light either partially or completely ...",
  "search_results": [
    {
      "url": "https://www.space.com/15584-solar-eclipses.html#:~:text=A%20solar%20eclipse%20occurs%20when%20the%20moon%20is%20positioned%20between%20Earth%20and%20the%20sun%20and%20casts%20a%20shadow%20over%20Earth",
      "name": "What is a solar eclipse? | Space",
      "snippet": " | A solar eclipse occurs when the moon is positioned between Earth and the sun and casts a shadow over Earth...."
    }
  ]
}

Before You Get Started

Our Research API is currently in beta mode. To register for usage, please reach out via email at api@you.com.

Authorizations

X-API-Key
string
headerrequired

Body

application/json
query
string

A query to generate a response for

chat_id
string

A random string for continuing a conversation (e.g. str(uuid.uuid4()))

Response

200 - application/json
answer
string
search_results
object[]