# Brave Search

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.

Documentation: https://openany.si/market/apis/brave/brave-search/?offering=15de3d87-78c7-4954-94e3-c52dc2e6389e
API ID: 15de3d87-78c7-4954-94e3-c52dc2e6389e
Provider: litescrape
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/brave/search
Page update time: 2026-12-03T02:48:58.381Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00015 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:48:57.783Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "150",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Brave Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "timeout": {
          "type": "number",
          "description": "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
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "q": "python programming"
        }
      ],
      "properties": {
        "country": {
          "default": "us",
          "description": "Two-letter country preference, or all for all regions. Brave determines regional availability.",
          "pattern": "^(?:[a-z]{2}|all)$",
          "title": "Country",
          "type": "string",
          "x-litescrape": {
            "group": 1,
            "summary": "Two-letter country preference, or all for all regions. Brave determines regional availability."
          }
        },
        "offset": {
          "default": 0,
          "description": "Zero-based page number, not a result offset. Follow litescrape_pagination.next when present.\n\nResults per page depend on Brave. Organic positions start at 1 within each page.",
          "maximum": 9,
          "minimum": 0,
          "title": "Offset",
          "type": "integer",
          "x-litescrape": {
            "group": 0,
            "notes": [
              "Results per page depend on Brave. Organic positions start at 1 within each page."
            ],
            "summary": "Zero-based page number, not a result offset. Follow litescrape_pagination.next when present."
          }
        },
        "q": {
          "description": "Search text. Brave query operators are supported; Brave may relax them when there are few matches.",
          "maxLength": 2048,
          "minLength": 1,
          "title": "Q",
          "type": "string",
          "x-litescrape": {
            "group": 0,
            "summary": "Search text. Brave query operators are supported; Brave may relax them when there are few matches."
          }
        },
        "safesearch": {
          "default": "moderate",
          "description": "Adult-content filtering preference.",
          "enum": [
            "off",
            "moderate",
            "strict"
          ],
          "title": "Safesearch",
          "type": "string",
          "x-litescrape": {
            "group": 1,
            "summary": "Adult-content filtering preference."
          }
        },
        "spellcheck": {
          "default": true,
          "description": "Allow Brave to correct the query spelling.",
          "title": "Spellcheck",
          "type": "boolean",
          "x-litescrape": {
            "group": 0,
            "summary": "Allow Brave to correct the query spelling."
          }
        },
        "tf": {
          "anyOf": [
            {
              "enum": [
                "pd",
                "pw",
                "pm",
                "py"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional date window: pd for past day, pw for past week, pm for past month, py for past year.",
          "title": "Tf",
          "x-litescrape": {
            "group": 1,
            "summary": "Optional date window: pd for past day, pw for past week, pm for past month, py for past year."
          }
        },
        "ui_lang": {
          "default": "en-us",
          "description": "Interface language preference such as en-us or de-de. This does not restrict result languages.",
          "pattern": "^[a-z]{2}(?:-[a-z]{2})?$",
          "title": "Ui Lang",
          "type": "string",
          "x-litescrape": {
            "group": 1,
            "summary": "Interface language preference such as en-us or de-de. This does not restrict result languages."
          }
        }
      },
      "required": [
        "q"
      ],
      "title": "Request",
      "type": "object",
      "description": "Get Brave web search results."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "litescrape_pagination": {
      "type": "object",
      "properties": {
        "current": {
          "type": "integer"
        },
        "next": {
          "type": "string"
        }
      }
    },
    "organic_results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "displayed_link": {
            "type": "string"
          },
          "favicon": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "snippet": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "current": {
          "type": "integer"
        },
        "next": {
          "type": "string"
        }
      }
    },
    "search_information": {
      "type": "object",
      "properties": {
        "organic_results_state": {
          "type": "string"
        }
      }
    },
    "search_metadata": {
      "type": "object",
      "properties": {
        "brave_url": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "json_endpoint": {
          "type": "string"
        },
        "processed_at": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "total_time_taken": {
          "type": "number"
        }
      }
    },
    "search_parameters": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string"
        },
        "offset": {
          "type": "integer"
        },
        "q": {
          "type": "string"
        },
        "safesearch": {
          "type": "string"
        },
        "spellcheck": {
          "type": "boolean"
        },
        "tf": {
          "type": "null"
        },
        "ui_lang": {
          "type": "string"
        }
      }
    },
    "submit_feedback_for_this_response_here": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
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"
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- litescrape: https://openany.si/market/apis/brave/brave-search/?offering=15de3d87-78c7-4954-94e3-c52dc2e6389e

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
