API para Brave

API para Brave: Buscar

Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call, with related searches and video results where the source has them; page deeper with page and pick the country Brave searches from.

POST/v1/run/brave.search
Disponibilidade
95,74%
30d · 1.102 chamadas
Requisições
52.355
30d · semanal, últimas 12 sem.
Resposta
3,4s
mediana · 30d

Status

Carregando status...

Receber e-mails de falhas deste endpoint

Ver todos os endpoints na página de status

Preços

Preços do endpoint Buscar da API para Brave

Um provedor marcado como Fora de serviço parou de responder de forma confiável e foi retirado do rodízio, então suas chamadas vão para os outros. Ele volta sozinho assim que responder de forma confiável de novo.

Você paga
US$ 8,50
US$ 0,85/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 117 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Buscar do Brave em uma só requisição

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `relatedSearches` or `publishedUtc`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "data": {
    "items": [
      {
        "displayUrl": "https://example.com/page",
        "domain": "example.com",
        "position": 1,
        "publishedUtc": 42,
        "snippet": "A short example description of this item.",
        "title": "Example title",
        "url": "https://example.com/page"
      }
    ],
    "query": "example",
    "relatedSearches": [
      "example"
    ],
    "videos": [
      {
        "durationSeconds": 13,
        "image": "https://example.com/image.jpg",
        "publishedUtc": 42,
        "source": "https://example.com/page",
        "title": "Example title",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Uma requisição, um formato de resposta.

Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.

Última verificação em 2026-12-03 · disponibilidade e latência medidas em 30d

Corpo da requisição

JSON, enviado via POST para este endpoint.

  • querystring

    best running shoes

    The Brave search query.

  • countryenum

    US

    ISO-3166 alpha-2 country Brave searches from, e.g. US, GB, DE. Brave ranks and localizes results for that country. Only the countries Brave offers are accepted; US is served by every source and the others by the sources that can target them.

  • limitinteger

    20

    Maximum number of organic results to return (1-20, default 20). Brave serves about 20 organic results per page, and some queries carry fewer.

  • pageinteger

    Which page of Brave results to return, starting at 1 (up to 10); a page holds about 20 results. Each page is billed as one request. Pages after the first are served only for country US, by the one source that continues each page exactly where the last ended. A limit below the page size drops the rest of that page, so keep the default limit to walk every result.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `relatedSearches` or `publishedUtc`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

  • safeSearchenum

    How strictly adult content is filtered out of the results: off applies no filter, moderate (the default) applies the search engine's standard filter, and strict filters the most. A stricter level can return fewer results. A source that cannot apply the level you ask for is skipped.

Você envia. Um corpo JSON pequeno. Os valores mostrados são exemplos para você trocar pelos seus.

Resposta

JSON, um valor de exemplo por campo.

each itemdata.items[]

Organic results in Brave's ranked order. Ads are not included. Populated whenever the provider has data for the entity.

  • displayUrlstring

    The URL as Brave displays it under the title, e.g. a host or a breadcrumb path. Its format differs by source. null when the source did not send one.

  • domainstring

    Host of the result URL without a leading www., e.g. runnersworld.com.

  • positioninteger

    1-based rank of the result. On page 2 and later, some sources count from the top of page 1 and others from the top of the page returned. Populated whenever the provider has data for the entity.

  • publishedUtcintegerpode ser exigido

    Page date Brave shows for the result. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. null when Brave shows no date or the source that answered cannot report it.

  • snippetstring

    Text excerpt Brave shows under the result, often led by the page date. Absent on the results where Brave shows none. Populated whenever the provider has data for the entity.

  • titlestring

    Result title as Brave shows it. Populated whenever the provider has data for the entity.

  • urlstring

    Destination URL of the result. Populated whenever the provider has data for the entity.

datadata

The organic results, or null when Brave returned none.

  • querystring

    The query Brave searched.

  • relatedSearchesstring[]pode ser exigido

    Brave's related searches for the query. An empty array means Brave showed none; null means the source that answered cannot report them.

each videodata.videos[]

Video results Brave shows for the query. An empty array means Brave showed none; null means the source that answered cannot report them.

  • durationSecondsintegerpode ser exigido

    Video length in seconds; null when Brave shows none.

  • imagestringpode ser exigido

    Thumbnail image URL.

  • publishedUtcintegerpode ser exigido

    Date Brave shows for the video. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. null when Brave shows no date.

  • sourcestringpode ser exigido

    Site hosting the video, e.g. YouTube.

  • titlestring

    Video title as Brave shows it.

  • urlstring

    URL of the video page.

top level
  • foundboolean

    Whether Brave returned organic results for the query.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Você recebe. Campos nomeados e tipados, no mesmo formato, seja qual for a fonte que responder.

Dúvidas frequentes

Sobre o endpoint Buscar da API para Brave

O endpoint Buscar da AnyAPI para Brave retorna dados de Brave em JSON normalizado com uma chamada POST para /v1/run/brave.search. Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call, with related searches and video results where the source has them; page deeper with page and pick the country Brave searches from. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 0,85 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 95,7% das chamadas ao endpoint Buscar da API para Brave feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,4 segundos, em 1.102 chamadas medidas.

Custa a partir de US$ 0,85 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call, with related searches and video results where the source has them; page deeper with page and pick the country Brave searches from. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 95,7% das chamadas ao endpoint Buscar da API para Brave feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,4 segundos, em 1.102 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.

Sim. Uma conta nova da AnyAPI começa com US$ 0,10 de saldo grátis, sem cartão, o que cobre 117 chamadas de Buscar do Brave a US$ 0,00085 cada.

Envie uma requisição POST para https://api.getanyapi.com/v1/run/brave.search com sua chave da AnyAPI em um cabeçalho "Authorization: Bearer" e a entrada como corpo JSON. A mesma chave e a mesma carteira funcionam em todos os endpoints da AnyAPI.

Não. Você adiciona dólares a um único saldo pré-pago da AnyAPI e cada requisição desconta dele. Não há plano mensal nem mínimo, e o mesmo saldo paga todos os endpoints da AnyAPI.

Sim. Instale @getanyapi/sdk pelo npm para TypeScript ou getanyapi pelo pip para Python. Os dois chamam todos os endpoints da AnyAPI com a mesma chave, e qualquer cliente HTTP também funciona.

Sim. Um agente pode se conectar ao servidor MCP da AnyAPI em https://api.getanyapi.com/mcp, ou criar a própria chave de teste grátis com um único POST sem autenticação para https://api.getanyapi.com/agent/signup e chamar este endpoint por HTTP.