R

Relaystation Geocode · Location Geocode

by Relaystation Geocode

POSTBase

$0.01

per call · USD Coin on Base

$0.005/lookup. Geocode a free-text address to coordinates (AWS Location Service) — lat/lng plus normalized address. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

Endpoint

POST https://api.relaystation.ai/v1/location/geocode

10

Calls / 30d

1

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.relaystation.ai/v1/location/geocode", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "biasPosition": [
      1,
      1
    ],
    "countries": [
      "str"
    ],
    "language": "string",
    "maxResults": 1,
    "query": "string"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.relaystation.ai/v1/location/geocode" \
  -H "Content-Type: application/json" \
  -d '{"biasPosition":[1,1],"countries":["str"],"language":"string","maxResults":1,"query":"string"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "ok": true
}

Payment details

Pay to0x5f7254f252ef9b9f92b6b4f2cf91205ed7a96c7a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Relaystation Geocode & similar services