NeuralBridge
Sign in Download IDE
NeuralBridge

Internet search

search

Search of the whole web in any language: found pages with title, address and a detailed excerpt.

Specifications

Context window
—
Max tokens in response
—
Vendor
NeuralBridge
Release
—
Login
text
Output
text

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_KEY header, replacing YOUR_API_KEY with 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 with requests or 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 called q.
  • 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, always web.
  • published — always null for 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 url to 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

top_kdefault: 8
How many results to take from the search output.
languagedefault: auto
Language of the material: a hint about which language is spoken or written. Usually speeds up and sharpens processing.

Endpoints

POSThttps://api.neuralbridge.ru/v1/searchprimary
Search — Web search returning links and snippets.

Code examples

python
import requests

response = requests.post(
    "https://api.neuralbridge.ru/v1/search",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"query": "как выбрать ноутбук для учёбы", "top_k": 5, "language": "ru"},
    timeout=60,
)
response.raise_for_status()
for item in response.json()["data"]:
    print(item["title"])
    print(item["url"])
    print(item["snippet"])
    print()
For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Price per request0,975 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
neuralbridge/web-search-global-16406
Get API key