81trust / 100

Us Geographies

by Eckari in Weather & location

x402 APIPassing, checked 3 h ago

Return the US Census Bureau geographies containing a latitude/longitude — state, county, census tract, block group, census block, incorporated place, congressional district and ZIP Code Tabulation Area — each with its FIPS or GEOID. The standard way to attach official US statistical geography to a point. Use when: Which county and census tract is this coordinate in?

GET https://api.eckari.com/v1/locations/us/geographies

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
39 ms typical, 39 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.eckari.com/v1/locations/us/geographies?lat=38.8977&lon=-77.0365"
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%2Fapi.eckari.com%2Fv1%2Flocations%2Fus%2Fgeographies
const res = await pay("https://api.eckari.com/v1/locations/us/geographies?lat=38.8977&lon=-77.0365");
console.log(await res.json());

Example input

{
  "lat": 38.8977,
  "lon": -77.0365
}

Example output

{
  "data": {
    "benchmark": "Public_AR_Current",
    "block": {
      "geoid": "110019800001034"
    },
    "block_group": {
      "geoid": "110019800001"
    },
    "congressional_district": {
      "geoid": "1198",
      "name": "Delegate District (at Large)"
    },
    "county": {
      "fips": "11001",
      "name": "District of Columbia"
    },
    "place": {
      "geoid": "1150000",
      "name": "Washington city"
    },
    "query": {
      "lat": 38.8977,
      "lon": -77.0365
    },
    "state": {
      "fips": "11",
      "name": "District of Columbia",
      "usps": "DC"
    },
    "tract": {
      "geoid": "11001980000",
      "name": "Census Tract 9800"
    },
    "vintage": "Current_Current",
    "zcta": {
      "geoid": "20006"
    }
  },
  "meta": {
    "capability": "location.us.geographies",
    "freshness": "live",
    "source": "census_geocoder",
    "version": "2.0.0"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402600 ms$0.003
8 h agoPassed40239 ms$0.003