2s Geocode Address (Forward Geocoding) is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13, last successful call 2026-07-28).
Converts a free-text address or place name into geographic coordinates (lat/lon) and structured address components using OpenStreetMap/LocationIQ.
Forward geocoding — free-text address or place name → latitude/longitude plus structured address components (houseNumber, road, suburb, city, county, state, postcode, country, countryCode). Query: q (2-500 chars), limit (1-10, default 5), country (optional 2-letter ISO 3166-1 bias). Underlying data is OpenStreetMap (ODbL). Sister: /api/geocode/reverse.
Returns an array of matching location objects, each with latitude, longitude, formatted address string, bounding box coordinates, address components (city, state, country, postcode, house number), location type/class, and an importance score. Also includes the upstream source/license info (OpenStreetMap/LocationIQ) and metadata about whether the result was cache-hit.
GEThttps://2s.io/api/geocode/addressChoose this endpoint when you need to forward-geocode a free-text address or place name into coordinates without managing API keys or monthly subscriptions. Ideal for AI agents operating on a pay-per-call basis using USDC on Base or Solana. Backed by OpenStreetMap/LocationIQ data. Prefer over raw Nominatim when you need a unified, metered, agent-friendly REST wrapper with structured JSON output.
{
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"q": "San Francisco California",
"limit": 5
}
}
}| Field | Type | Description |
|---|---|---|
| inputrequired | object |
{
"data": {
"ok": true,
"meta": {
"query": {
"kind": "forward",
"input": "San Francisco California"
},
"cacheHit": false
},
"items": [
{
"type": "administrative",
"class": "boundary",
"address": {
"city": "San Francisco",
"road": null,
"state": "California",
"county": null,
"suburb": null,
"country": "United States of America",
"postcode": "94102",
"countryCode": "us",
"houseNumber": null
},
"latitude": 37.7879363,
"longitude": -122.4075201,
"importance": 0.780971280931417,
"boundingBox": [
37.6403143,
37.9296678,
-123.173825,
-122.2814578
],
"formattedAddress": "San Francisco, California, USA"
}
],
"total": null,
"source": {
"url": "https://www.openstreetmap.org/copyright",
"license": "LocationIQ terms (attribution required)",
"provider": "OpenStreetMap contributors"
}
},
"meta": {
"cost": {
"usd": 0.001,
"tier": 0
},
"caller": "x402",
"version": null,
"endpoint": "geocode.address",
"settlement": {
"txHash": "0xdc46c1bbb390162919113625b2340a592c2aa40498ce6b548435c78bf9180519",
"network": "eip155:8453",
"success": true
}
}
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"