Internet search
Search of the whole web in any language: found pages with title, address and a detailed excerpt.
Specifications
Description
What it is
Web Search Global searches the whole web in any language and returns a list of found pages: title, address and a detailed excerpt from the text. It understands the meaning of a query, not only matching words, so you can ask in a plain sentence. The result comes as data that is easy to process in a program, show in a bot or pass to a language model.
This is the main search of the platform: /v1/search uses it, and so do Web Answer and search in /v1/responses.
Use it when you need to:
- find pages on a topic in English, Russian or any other language: documentation, articles, reference sites, shops;
- give a chatbot or an agent fresh information from the web;
- collect sources and then read the pages you need in full with Web Scrape.
Web Answer gives a ready answer with links to sources.
What you need
- An API key. Create it in your account. Pass it in every request in the
Authorization: Bearer YOUR_API_KEYheader, replacingYOUR_API_KEYwith your key. Do not publish the key: requests made with it are paid from your balance. - Money on the balance. Every request is paid; the price is shown on this page.
- A program that sends HTTP requests:
curl, Python withrequestsor any API client. Ready examples are in the «Code examples» block below.
Request example
{"query": "best tomato varieties for a greenhouse", "top_k": 5}Request parameters
query— required. Search text: keywords or a plain sentence, up to 400 characters. The field may also be calledq.top_k— how many results to return, 1 to 10, default 10.
This search does not support a time range (time_range), fresh news (categories: "news") or more than 10 results. Such a request to /v1/search is served by another search of the platform and is paid at that search's price.
Response
{
"object": "list",
"query": "best tomato varieties for a greenhouse",
"data": [
{
"title": "Found page title",
"url": "PAGE_URL",
"snippet": "Excerpt from the page…",
"engine": "web",
"published": null
}
]
}data— results, best matches first.title— page title.url— page address; pass it to Web Scrape to get the full text.snippet— a detailed excerpt of up to 2000 characters: the parts of the page that match the query best. Parts from different places are separated by[...].engine— service field, alwaysweb.published— alwaysnullfor this search: it does not report page dates.
Tips
- Write the query the way you would ask a person: the search understands the meaning of a sentence.
- Put all conditions into one query: «round red fruit that grows on trees» works better than three separate queries.
- To read a found page in full, pass its
urlto Web Scrape. - An answer takes 3–10 seconds: the search reads and selects text from the found pages.
Price
Each request costs a fixed price shown on this page. It does not depend on top_k.
Errors
400— the query is empty, longer than 400 characters, or the JSON is broken.401— the key is missing or wrong.402— not enough money on the balance.403— this key is not allowed to use the tool.429— too many requests; wait a little and retry.503— the service is temporarily unavailable; retry in a minute.
Parameters
Endpoints
Code examples
Other NeuralBridge models
/v1 in base_url. For Anthropic SDK — without /v1.