POST
/
api
/
v1
/
web_search
/
context
Web Search Context Endpoint
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent-surkai/api/v1/web_search/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "k": 6,
  "lang": "pt-BR",
  "freshness_days": 2
}'
{
  "snippets": [
    {
      "url": "<string>",
      "title": "<string>",
      "snippet": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema da requisição para /web_search.

Response

200
application/json

Successful Response

Schema da resposta para /web_search/context.