78trust / 100
Geocode Address
by 2s in Weather & location
x402 APIPassing, checked 2 h ago
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.
GET https://2s.io/api/geocode/address
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 256 ms typical, 407 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://2s.io/api/geocode/address?country=example&limit=5&q=xx"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F2s.io%2Fapi%2Fgeocode%2Faddress
const res = await pay("https://2s.io/api/geocode/address?country=example&limit=5&q=xx");
console.log(await res.json());Example input
{
"country": "example",
"limit": 5,
"q": "xx"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 175 ms | $0.0025 |
| 6 h ago | Passed | 402 | 332 ms | $0.0025 |
| 9 h ago | Passed | 402 | 168 ms | $0.0025 |
| 13 h ago | Passed | 402 | 174 ms | $0.0025 |
| 17 h ago | Passed | 402 | 407 ms | $0.0025 |
| 20 h ago | Passed | 402 | 183 ms | $0.0025 |
| 23 h ago | Passed | 402 | 373 ms | $0.0025 |
| 27 h ago | Passed | 402 | 251 ms | $0.0025 |
| 31 h ago | Passed | 402 | 403 ms | $0.0025 |
| 35 h ago | Passed | 402 | 339 ms | $0.0025 |
| 38 h ago | Passed | 402 | 425 ms | $0.0025 |
| 42 h ago | Passed | 402 | 256 ms | $0.0025 |
| 45 h ago | Passed | 402 | 405 ms | $0.0025 |
| 2 days ago | Passed | 402 | 160 ms | $0.0025 |