# TBS Geocoding API – Place Search

> TBS Geocoding API – Place Search is a paid API for AI agents from geo-x402.tbs-digital.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Searches for places by name and returns geographic coordinates, administrative details, timezone, population, and country info.

## Facts

- Endpoint: GET https://geo-x402.tbs-digital.com/geo/places?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tbs-geocoding-api-place-search-1e844d51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-sR65267KiIpN2cT_KwrK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tbs-geocoding-api-place-search-1e844d51
```

Example prompt: Can you search for 'Lyon' and give me its coordinates, timezone, and country — just the top result?

## When to prefer this

Choose this endpoint when you need sub-cent, keyless place search that returns structured geo data (coordinates, timezone, population, admin regions) in a single call payable in USDC on Base. Prefer it over free tier geocoders that require API keys, or over heavier geocoding APIs when you only need forward place-name lookup with a unified schema. Ideal for AI agents that need to resolve a city or place name to coordinates before calling a weather, timezone, or mapping service.

## Known failure modes

- Missing required 'q' parameter returns an error or empty result set
- No matching places found returns count 0 with empty places array
- Count parameter outside 1-20 range may be clamped or rejected
- Upstream Open-Meteo API downtime causes service unavailability
- x402 payment failure prevents request from completing

## How this service works

Geocoding for AI agents in one sub-cent call: forward geocoding (place name or address to coordinates), reverse geocoding (lat/lon to address) and place search. Open-Meteo + BigDataCloud, keyless, unified schema, USDC-payable via x402 on Base.

## Output

Returns a JSON array of matching places, each with latitude, longitude, place name, admin1 and admin2 regions, country name and ISO code, timezone string, population, and OpenStreetMap feature code. Also includes a result count, data source identifier, request ID, and generation timestamp. Payer wallet address and network are included for x402 billing traceability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "description": "Place name to search, e.g. Springfield"
      },
      "count": {
       "type": "string",
       "description": "Max results 1-20 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "places": {
       "type": "array"
      },
      "source": {
       "type": "string"
      },
      "request_id": {
       "type": "string"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "payer": {
   "address": "0x0000000000000000000000000000000000000000",
   "network": "base"
  },
  "places": [
   {
    "lat": 48.85341,
    "lon": 2.3488,
    "name": "Paris",
    "admin1": "Île-de-France",
    "admin2": "Paris",
    "country": "France",
    "timezone": "Europe/Paris",
    "population": 2138551,
    "country_code": "FR",
    "feature_code": "PPLC"
   }
  ],
  "source": "open-meteo",
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "generated_at": "2026-08-11T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tbs-geocoding-api-place-search-1e844d51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geo-x402.tbs-digital.com](https://www.zero.xyz/host/geo-x402.tbs-digital.com/llms.txt)
