Data Reverse Geocode
by API Acre in Weather & location
Resolve one latitude/longitude pair into bounded, great-circle-distance-ranked nearby GeoNames populated places with country, first-level region, population, timezone, feature code, and source freshness without a request-time network call.
https://apiacre.com/v1/data/reverse-geocode- Price
- $0.002
- per call in USDC
- Uptime
- 97.0%
- last 30 days
- Response time
- 267 ms
- 336 ms slowest 5%
- Last check
- Passed
- 8 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://apiacre.com/v1/data/reverse-geocode
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://apiacre.com/v1/data/reverse-geocode
content-type: application/json
{
"latitude": 51.5074,
"limit": 3,
"longitude": -0.1278,
"radius_km": 10
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | Yes | |
limit | integer | No | |
longitude | number | Yes | |
radius_km | number | No |
Example response
The provider's example. We can't check it without paying.
Example response, 63 lines
{
"data": {
"candidateCount": 99,
"limitations": [
"Coverage follows the GeoNames cities500 extract: populated places above 500 r...",
"This endpoint returns nearby populated places, not street addresses, parcels,...",
"The nearest populated place is not proof of the queried coordinate's postal a...",
"Distances are rounded great-circle distances between coordinates and place ce...",
"The search radius is capped at 500 km and results use the bundled 2026-08-18 ..."
],
"matched": true,
"query": {
"latitude": 51.5074,
"limit": 3,
"longitude": -0.1278,
"radiusKm": 10
},
"results": [
{
"admin1": {
"code": "ENG",
"name": "England"
},
"country": {
"code": "GB",
"continentCode": "EU",
"iso3": "GBR",
"name": "United Kingdom"
},
"geonameId": 2643743,
"name": "London",
"rank": 1
}
],
"resultsTruncated": true,
"source": {
"aliasRecords": 766415,
"dataset": "GeoNames cities500",
"placeRecords": 235408,
"provider": "GeoNames",
"snapshotBuiltOn": "2026-08-18"
},
"version": "apiacre-reverse-geocode/1"
},
"meta": {
"cached": false,
"duration_ms": 42,
"next_actions": [
{
"method": "POST",
"path": "/v1/data/us-weather-forecast",
"reason": "Use the queried coordinates for a separately authorized current global forecast.",
"service": "data.us-weather-forecast",
"title": "Global weather forecast"
}
],
"sources": [],
"warnings": []
},
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.reverse-geocode",
"version": "1"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://apiacre.com/v1/data/reverse-geocode' \
-H 'content-type: application/json' \
--data-raw '{"latitude":51.5074,"limit":3,"longitude":-0.1278,"radius_km":10}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://apiacre.com/v1/data/reverse-geocode' \
-H 'content-type: application/json' \
--data-raw '{"latitude":51.5074,"limit":3,"longitude":-0.1278,"radius_km":10}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdata%2Freverse-geocode&method=POST
const res = await pay("https://apiacre.com/v1/data/reverse-geocode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"latitude": 51.5074,
"limit": 3,
"longitude": -0.1278,
"radius_km": 10
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://apiacre.com/v1/data/reverse-geocode",
json={
"latitude": 51.5074,
"limit": 3,
"longitude": -0.1278,
"radius_km": 10,
},
)
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 8 h ago | Passed | 402 | 260 ms | $0.002 |
| 18 h ago | Passed | 402 | 277 ms | $0.002 |
| 28 h ago | Passed | 402 | 225 ms | $0.002 |
| 38 h ago | Passed | 402 | 306 ms | $0.002 |
| 2 days ago | Timed out | - | - | - |
Show 10 older checks
| 5 days ago | Timed out | - | - | - |
| 5 days ago | Passed | 402 | 212 ms | $0.002 |
| 6 days ago | Passed | 402 | 336 ms | $0.002 |
| 6 days ago | Timed out | - | - | - |
| 7 days ago | Passed | 402 | 296 ms | $0.002 |
| 7 days ago | Passed | 402 | 236 ms | $0.002 |
| 7 days ago | Passed | 402 | 281 ms | $0.002 |
| 8 days ago | Passed | 402 | 280 ms | $0.002 |
| 8 days ago | Passed | 402 | 328 ms | $0.002 |
| 8 days ago | Passed | 402 | 289 ms | $0.002 |