Keep the source in sight.
Original URLs and page titles travel with the results, so your application can cite sources and people can follow them.
A model can reason. Search gives it something new to reason with. Connect your agent to useful sources and context from the web.
Free Plan · All features includedHow do AI agents
search the web?
Find information beyond a model’s training data. Return source links and context in a structured response.
urltextdatePublishedGive your application the pieces it needs to retrieve, reference and reason.
Original URLs and page titles travel with the results, so your application can cite sources and people can follow them.
Use snippets for a source preview, or enable contents.text for full webpage text with a per-result character limit. Both are included in the Free Plan.
Structured JSON fits into your retrieval pipeline. Your application chooses the model, the prompt and what to do next.
Every supported option is included in the Free Plan, within your daily quota.
querySend the search terms or natural-language question your agent needs to explore.
"How do AI agents search the web?"countRequest up to 50 results. The number returned depends on what is available for your query.
1–50 resultscontents.textEnable full webpage text to return text instead of snippet. Defaults to 5000 characters per result; use the object form to choose a positive limit.
true · { "max_characters": 3000 }freshnessChoose a recent period, a specific UTC date, or an inclusive date range. Use noLimit to search without a date filter.
oneDay · oneWeek · oneMonth · oneYear · noLimit · YYYY-MM-DD · YYYY-MM-DD..YYYY-MM-DDincludeDomainsFocus the search on selected domains. Omit the list or leave it empty to search without this restriction.
["langsearch.com", "openai.com"]excludeDomainsExclude selected domains from the results. Combine with date filters to focus your research.
["reddit.com"]
Find current documentation and references while your agent works through an implementation.

Collect relevant references, bring context into your workflow and let your model synthesize.

Find company announcements and market information to inform your next account brief.
export LANGSEARCH_API_KEY="YOUR_LANGSEARCH_API_KEY" codex mcp add langsearch --url https://mcp.langsearch.com/mcp --bearer-token-env-var LANGSEARCH_API_KEYAdd your LangSearch API key, then run the command or save the configuration in your client.
Get free API key