Skip to main content
Search the web for live results, pull clean content from a result URL, then let the research endpoint do both for you and synthesize an answer with citations. Every step is a copy-paste request — set TELNYX_API_KEY to a key from the portal and they work as-is.
1

Search the Web

Results come back ranked and structured — title, url, description, snippets — ready to hand to a model. Narrow them with domain, country, freshness, and safe-search filters; see Web Search for how the filters behave.
2

Read a Page

Search gives you snippets; content retrieval gives you the page. Ask for markdown and feed it straight to a model:
One request handles up to 20 URLs. See Content Retrieval for formats and per-URL behavior.
3

Research a Question

For a whole question, skip the orchestration: research runs the searches, reads the sources, and returns a synthesized answer with citations.
Synchronous requests block until the answer is ready. For long-running research, add "background": true to get a task_id back immediately, then poll until status is completed:
See Research for sync vs background and the task lifecycle.
4

Ground Your Agent

Each response is tool output: declare search, retrieval, or research as function tools, run them when the model asks, and feed the JSON back. The [[1, 2, 3]] markers in research answers index into citations, so your agent can quote sources directly.

Next Steps

Web Search

Domain filters, freshness, and live crawling.

Content Retrieval

Formats, caching, and per-URL behavior.

Research

Synchronous vs background mode and polling.