How to hit the Tavily API

Tavily at https://api.tavily.com is a search API designed for LLM agents: results come back cleaned and ranked, optionally with a short answer.

Authentication

Create a key at app.tavily.com. Send it as Authorization: Bearer <key>. In the examples it's written {{TAVILY_API_KEY}}.

Full reference: https://docs.tavily.com/documentation/api-reference/endpoint/search

Extract page content

curl -X POST https://api.tavily.com/extract \
  -H "Authorization: Bearer {{TAVILY_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://en.wikipedia.org/wiki/HTTP"]}'
Run in PostTaco