Skip to content
Eden Engine

Baidu Search Location Codes (China, Up to 20)

omnial/baidu-search-location-codes

Looks up the locations available for Baidu search targeting in China by a place-name search and returns up to 20 matching locations, each with its numeric location code (a Google Ads geotarget id, not a Baidu region id), the full location name (place, province and country), the code of its parent location, the two-letter country code and the location type (a level such as country or city).

activeper callv1

Price

$0.001 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Google Ads geotargets

Data from Google Ads geotargets.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/baidu-search-location-codes" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/baidu-search-location-codes" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/baidu-search-location-codes", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/baidu-search-location-codes", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.001
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "search",
    "country",
    "limit"
  ],
  "properties": {
    "limit": {
      "enum": [
        20
      ],
      "type": "integer",
      "default": 20,
      "description": "How many locations to return at most; only 20, the one tested, is offered."
    },
    "search": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "description": "Text to look for in location names, case-insensitive, such as a place name in English."
    },
    "country": {
      "enum": [
        "cn"
      ],
      "type": "string",
      "description": "The country whose locations are searched; only \"cn\" (China) is offered."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "location_code": {
            "type": "number",
            "description": "The numeric location code."
          },
          "location_name": {
            "type": "string",
            "description": "The full location name in English: the place, then its province and country."
          },
          "location_type": {
            "type": "string",
            "description": "The location's level, such as Country or City."
          },
          "country_iso_code": {
            "type": "string",
            "description": "The two-letter ISO country code, upper case."
          },
          "location_code_parent": {
            "type": [
              "number",
              "null"
            ],
            "description": "The code of the location this one sits inside; null for a country."
          }
        }
      }
    }
  },
  "description": "The matching locations, wrapped as `{results: [...]}`."
}