OpenAny
Get API keyAPI Key
APIScrapers

brave logo
Brave Web Search API

Search Brave Web via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by LiteScrape, pass parameters such as q, and retrieve structured data including organic result title, search snippet, source URL, displayed source label, and position for source discovery, and filtered research, ready for production pipelines and AI agent automation.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
0.00%Selected implementation · last 30 days
USE THIS API

Brave Web Search API

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Brave Web Search API

Brave Web Search API

The JSON body requires q and accepts offset from 0 to 9. organic_results supplies source records, while ui_lang controls interface language and tf selects a documented recency window.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs JSON body requires q; optional body fields: country, offset, safesearch, spellcheck, tf, ui_lang. Optional query parameter: timeout (greater than 0, at most 90 seconds).
Selected implementation litescrape · Brave Search
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Source discovery: Build web result lists with original source links.
  • Filtered research: Keep date windows, country preferences and page context together.

Returned Data

Field Meaning
organic_results[].title Organic result title.
organic_results[].snippet Search snippet.
organic_results[].link Source URL.
organic_results[].displayed_link Displayed source label.
organic_results[].position One-based position within the returned page.
pagination.current Current zero-based page.
litescrape_pagination.next Provider continuation reference when available.

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request POST \
  https://api.openany.si/v1/agent-apis/litescrape/api/brave/search \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"q":"python programming"}'

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Brave Web Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Get Brave web search results.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
Brave Search · POST · View API reference
$0.00015 / call1
0.00%successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · litescrapeUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.015

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/brave/search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
qJSON request bodybodystringYes

Search text. Brave query operators are supported; Brave may relax them when there are few matches.

minLength: 1 · maxLength: 2048

timeoutURL query parametersquerynumberNo

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

maximum: 90

countryJSON request bodybodystringNo

Two-letter country preference, or all for all regions. Brave determines regional availability.

pattern: ^(?:[a-z]{2}|all)$

offsetJSON request bodybodyintegerNo

Zero-based page number, not a result offset. Follow litescrape_pagination.next when present. Results per page depend on Brave. Organic positions start at 1 within each page.

minimum: 0 · maximum: 9

safesearchJSON request bodybodystringNo

Adult-content filtering preference.

enum: "off", "moderate", "strict"

spellcheckJSON request bodybodybooleanNo

Allow Brave to correct the query spelling.

tfJSON request bodybodystring | nullNo

Optional date window: pd for past day, pw for past week, pm for past month, py for past year.

ui_langJSON request bodybodystringNo

Interface language preference such as en-us or de-de. This does not restrict result languages.

pattern: ^[a-z]{2}(?:-[a-z]{2})?$

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • litescrape_paginationobject
    • currentinteger
    • nextstring
  • organic_resultsobject[]
    • displayed_linkstring
    • faviconstring
    • linkstring
    • positioninteger
    • snippetstring
    • titlestring
  • paginationobject
    • currentinteger
    • nextstring
  • search_informationobject
    • organic_results_statestring
  • search_metadataobject
    • brave_urlstring
    • created_atstring
    • idstring
    • json_endpointstring
    • processed_atstring
    • statusstring
    • total_time_takennumber
  • search_parametersobject
    • countrystring
    • offsetinteger
    • qstring
    • safesearchstring
    • spellcheckboolean
    • tfnull
    • ui_langstring
  • submit_feedback_for_this_response_herestring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    timeout
    Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
    body
    Get Brave web search results.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/litescrape/api/brave/search' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "q": "python programming"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "litescrape_pagination": {
        "current": 0,
        "next": "https://api.litescrape.com/api/brave/search?q=python+programming&offset=1"
      },
      "organic_results": [
        {
          "displayed_link": "python.org",
          "favicon": "https://imgs.search.brave.com/r3e7IWxGr6QAH681qFfPX5tiFAeshAzaNhO5YwXtDm4/rs:fit:32:32:1:0/g:ce/aHR0cDovL2Zhdmlj/b25zLnNlYXJjaC5i/cmF2ZS5jb20vaWNv/bnMvNTJjMzZjNDBj/MmIzODgwMGUyOTRj/Y2E5MjM3YjRkYTZj/YWI1Yzk1NTlmYTgw/ZDBjNzM0MGMxZjQz/YWFjNTczYy93d3cu/cHl0aG9uLm9yZy8",
          "link": "https://www.python.org/",
          "position": 1,
          "snippet": "Python is a programming language that lets you work quickly and integrate systems more effectively.",
          "title": "Welcome to Python.org"
        }
      ],
      "pagination": {
        "current": 0,
        "next": "https://search.brave.com/search?q=python+programming&offset=1"
      },
      "search_information": {
        "organic_results_state": "Results found"
      },
      "search_metadata": {
        "brave_url": "https://search.brave.com/search?q=python+programming",
        "created_at": "2026-10-09T00:00:00+00:00",
        "id": "brave-example",
        "json_endpoint": "https://api.litescrape.com/api/brave/search?q=python+programming",
        "processed_at": "2026-10-09T00:00:00+00:00",
        "status": "Success",
        "total_time_taken": 0.5
      },
      "search_parameters": {
        "country": "us",
        "offset": 0,
        "q": "python programming",
        "safesearch": "moderate",
        "spellcheck": true,
        "tf": null,
        "ui_lang": "en-us"
      },
      "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
    }

Common questions

Is offset a result count?

No. offset is a zero-based page number from 0 to 9. Page sizes depend on Brave, and organic positions start at 1 within each page.

Does ui_lang restrict result languages?

No. ui_lang selects an interface-language preference, such as en-us. country is a regional preference, and Brave determines regional availability.

Which date and spelling options are supported?

tf accepts pd, pw, pm or py for the past day, week, month or year. spellcheck defaults to true; Brave can also relax query operators when matches are sparse.

Does this return the same answer as Brave AI Mode?

This route returns web search records. Use the separate Brave AI Mode implementation for generated answers, citations and conversation continuation.

Where should I set the request timeout?

Set timeout in the query string, including for POST requests. It must be greater than 0 and at most 90 seconds; page_timeout cannot extend this total execution budget.

Can I add arbitrary parameters to the JSON body?

Use the body fields exposed by this implementation. Its JSON schema rejects additional properties; query parameters such as timeout belong outside the JSON body.

Use Brave Web Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.