# TBS Geocoding API – Forward Geocoding

> TBS Geocoding API – Forward Geocoding 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).

Converts a place name or address string into geographic coordinates and location metadata via a keyless, sub-cent API call payable in USDC on Base.

## Facts

- Endpoint: GET https://geo-x402.tbs-digital.com/geo/forward?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-forward-geocoding-3d7269c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wy4gss6C77w3f9xjR9GFS

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-forward-geocoding-3d7269c4
```

Example prompt: What are the latitude and longitude coordinates for Paris, France? I need the full location details including timezone and population.

## When to prefer this

Choose this endpoint when you need a keyless, pay-per-call forward geocoding solution that requires no API key setup, supports USDC micropayments via x402 on Base, and returns a unified schema with timezone and population metadata alongside coordinates. Ideal for AI agents that need to resolve place names on demand without managing credentials or subscriptions.

## Known failure modes

- No matching location found — location field returns null for ambiguous or misspelled queries
- Missing required query parameter q or address returns an HTTP 400 error
- Payment not provided or rejected by x402 middleware returns HTTP 402 Payment Required
- Upstream Open-Meteo geocoding service unavailable causes a 502 or 503 response
- Rate limit exceeded on the underlying provider returns an error response

## 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

A JSON object containing the matched location's latitude, longitude, place name, first- and second-level administrative regions, country name, country code, IANA timezone string, population, and feature code, along with the data source, a unique request ID, and a timestamp. If no match is found, the location field is null.

## 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 / address to geocode, e.g. Paris"
      },
      "address": {
       "type": "string",
       "description": "Alias for q"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "payer": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string",
         "nullable": true
        },
        "network": {
         "type": "string"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "location": {
       "type": "object",
       "nullable": true
      },
      "request_id": {
       "type": "string"
      },
      "generated_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "payer": {
   "address": "0x0000000000000000000000000000000000000000",
   "network": "base"
  },
  "source": "open-meteo",
  "location": {
   "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"
  },
  "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-forward-geocoding-3d7269c4/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)
