Asalebeta
Tool market
Search

Baidu Search Engine Results API

Baidu Search Engine Results API

Run a test
Price
0.025000 USDT / request
Status
Available
Official reference
0.025000 USDT / request
Protocols
REST · MCP

Run a test

Runs are submitted only when you click Run. Check the input and cost limit first.

Input parametersJSON
Sign in

Tests use your account balance and the selected key’s budget. The cost limit caps this API call; it does not include future calls or recurring upstream jobs.

Run result

Run a test to see its status, charges and response here.

API reference

A successful asynchronous create call returns a receipt. Use the provider’s status/result operation with that receipt ID to check whether the upstream job has completed.

curl https://gw.asale.ai/v1/tool-runs \
  -H 'Authorization: Bearer <ASALE_API_KEY>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <UNIQUE_REQUEST_ID>' \
  -d '{
  "tool": "search.baidu",
  "input": {
    "query": {
      "q": ""
    }
  },
  "max_cost_micros": 25000
}'
curl https://gw.asale.ai/v1/tool-runs/<RUN_ID> -H 'Authorization: Bearer <ASALE_API_KEY>'
ParameterRequiredType
queryYesobject
Full input schema
{
  "additionalProperties": false,
  "properties": {
    "query": {
      "additionalProperties": false,
      "properties": {
        "async": {
          "description": "Parameter defines the way you want to submit your search to SerpApi. It can be set to `false` (default) to open an HTTP connection and keep it open until you got your search results, or `true` to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our [Searches Archive API](https://Asale.com/search-archive-api) to retrieve your results. `async` and `no_ca",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "bs": {
          "description": "Defines the previous search query.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "ct": {
          "description": "Parameter defines which language to restrict results. Available options: `1` - All languages `2` - Simplified Chinese `3` - Traditional Chinese",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "device": {
          "description": "Parameter defines the device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "f": {
          "description": "Defines the originating search type. (e.g., `8` is a normal search, `3` is from the suggestion list, and `1` is a related search.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "gpc": {
          "description": "Parameter defines the time period for results. (e.g., `stf=1788660144,1789264944|stftype=1` only returns results from the past 7 days. First integer within the parameter,`1788660144` is Unix Timestamp for 7 days ago. Second integer,`1789264944` is Unix Timestamp for now.).",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "json_restrictor": {
          "description": "Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the [JSON Restrictor documentation](https://Asale.com/json-restrictor) for more details.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "no_cache": {
          "description": "Parameter will force SerpApi to fetch the Baidu results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to `false` (default) to allow results from the cache, or `true` to disallow results from the cache. `no_c",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "oq": {
          "description": "Defines the original search query when navigated from a related search.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "output": {
          "description": "Parameter defines the format of the result. It can be set to `json` (default) to get a structured JSON of the results, `html` to get the raw HTML retrieved, or `md` to get a markdown-formatted version optimized for LLMs and AI agents.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "pn": {
          "description": "Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `10` is the 2nd page of results, `20` is the 3rd page of results, etc.).",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "q": {
          "description": "Parameter defines the search query, including all Baidu search operators. (e.g., `inurl:`, `site:`, `intitle:`, etc.).",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "q5": {
          "description": "Similar to using `inurl:` or `intitle:`. (e.g., `1` to search by page title, `2` to search by web address.).",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "q6": {
          "description": "Similar to using `site:`. (e.g., `q6=Asale.com` to search for results only from the domain `Asale.com`).",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "rn": {
          "description": "Parameter defines the maximum number of results to return, limited to 50. (e.g., `10` (default) returns 10 results, `30` returns 30 results, and `50` returns 50 results). This parameter is only available for **desktop and tablet** searches.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "zero_trace": {
          "description": "Enterprise only. Parameter enables [ZeroTrace mode](https://Asale.com/zero-trace-mode). It can be set to `false` (default) or `true`. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        }
      },
      "required": [
        "q"
      ],
      "type": "object"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}

Price

0.025000 USDT / request

Tests use your account balance and the selected key’s budget. The cost limit caps this API call; it does not include future calls or recurring upstream jobs.

Price revision 4

Search

Asale matches available channels by price. The reference is the highest verified channel reference price. Only definite rejections may transfer to another channel; uncertain executions require reconciliation to avoid duplicate charges.

Supply channels: 1