79trust / 100

Data Place Geocode

by API Acre in Weather & location

x402 APIPassing, checked 7 h ago

Resolve one global city or locality name into bounded, population-ranked GeoNames coordinates, country and first-level-region identity, population, timezone, feature code, and source freshness without a request-time network call.

POST
https://apiacre.com/v1/data/place-geocode
Price
$0.002
per call in USDC
Uptime
97.0%
last 30 days
Response time
269 ms
385 ms slowest 5%
Last check
Passed
7 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://apiacre.com/v1/data/place-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/place-geocode
content-type: application/json

{
  "limit": 5,
  "place": "London, GB"
}

Parameters

ParameterTypeRequiredDescription
limitintegerNo
placestringYes

Example response

The provider's example. We can't check it without paying.

Example response, 60 lines
{
  "data": {
    "ambiguous": true,
    "candidateCount": 2,
    "candidateCountCapped": false,
    "limitations": [
      "Coverage follows the GeoNames cities500 extract: populated places above 500 r...",
      "Matching is exact after Unicode-to-ASCII normalization; this endpoint does no...",
      "Unqualified names can be ambiguous. Review country, first-level region, GeoNa...",
      "Population-based ranking is a selection aid, not proof that the first candida...",
      "Results use the bundled 2026-08-18 snapshot and can differ from newer GeoName..."
    ],
    "query": {
      "limit": 5,
      "normalized": "london, gb",
      "place": "London, GB"
    },
    "results": [
      {
        "country": {
          "code": "GB",
          "continentCode": "EU",
          "iso3": "GBR",
          "name": "United Kingdom"
        },
        "geonameId": 2643743,
        "matchedNameType": "primary",
        "name": "London",
        "rank": 1
      }
    ],
    "resultsTruncated": false,
    "source": {
      "aliasRecords": 766415,
      "dataset": "GeoNames cities500",
      "placeRecords": 235408,
      "provider": "GeoNames",
      "snapshotBuiltOn": "2026-08-18"
    },
    "version": "apiacre-place-geocode/1"
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [
      {
        "method": "POST",
        "path": "/v1/data/us-weather-forecast",
        "reason": "Use one selected place candidate's coordinates for a separately authorized cu...",
        "service": "data.us-weather-forecast",
        "title": "Global weather forecast"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.place-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/place-geocode' \
  -H 'content-type: application/json' \
  --data-raw '{"limit":5,"place":"London, GB"}'

# 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/place-geocode' \
  -H 'content-type: application/json' \
  --data-raw '{"limit":5,"place":"London, GB"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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%2Fplace-geocode&method=POST
const res = await pay("https://apiacre.com/v1/data/place-geocode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "limit": 5,
    "place": "London, GB"
  }),
});
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/place-geocode",
        json={
            "limit": 5,
            "place": "London, GB",
        },
    )
    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

WhenResultHTTPTimePrice
7 h agoPassed402189 ms$0.002
17 h agoPassed402255 ms$0.002
27 h agoPassed402235 ms$0.002
37 h agoPassed40284 ms$0.002
2 days agoTimed out---
Show 10 older checks
5 days agoTimed out---
5 days agoPassed40271 ms$0.002
6 days agoPassed402257 ms$0.002
6 days agoTimed out---
7 days agoPassed402285 ms$0.002
7 days agoPassed402271 ms$0.002
7 days agoPassed402232 ms$0.002
8 days agoPassed402294 ms$0.002
8 days agoPassed402292 ms$0.002
8 days agoPassed402221 ms$0.002