82trust / 100
Geocode
by Address to Coordinates (US) in Weather & location
x402 APIPassing, checked 4 h ago
Geocode a US address: give a street address, get latitude and longitude, the standardized address, ZIP, county with FIPS code, state and census tract.
POST https://data.tollkit.dev/geocode
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 135 ms typical, 135 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://data.tollkit.dev/geocode" \
-H "content-type: application/json" \
-d '{"address":"1600 Pennsylvania Ave NW, Washington, DC 20500"}'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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdata.tollkit.dev%2Fgeocode
const res = await pay("https://data.tollkit.dev/geocode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"1600 Pennsylvania Ave NW, Washington, DC 20500"}),
});
console.log(await res.json());Example input
{
"address": "1600 Pennsylvania Ave NW, Washington, DC 20500"
}Example output
{
"best": {
"census_tract": "11001980000",
"city": "WASHINGTON",
"county": "District of Columbia",
"county_fips": "11001",
"lat": 38.898703,
"lon": -77.035189,
"matched_address": "1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500",
"state": "DC",
"state_name": "District of Columbia",
"street": "PENNSYLVANIA AVE NW",
"zip": "20500"
},
"input": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"match_count": 1,
"matches": [
{
"census_tract": "11001980000",
"city": "WASHINGTON",
"county": "District of Columbia",
"county_fips": "11001",
"lat": 38.898703,
"lon": -77.035189,
"matched_address": "1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500",
"state": "DC",
"state_name": "District of Columbia",
"street": "PENNSYLVANIA AVE NW",
"zip": "20500"
}
],
"notice": "This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.",
"source": "U.S. Census Bureau Geocoder (geocoding.geo.census.gov), Public_AR_Current benchmark"
}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 |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 135 ms | $0.002 |