Skip to content

Getting Started

Spatial operations API. Point-in-polygon, nearest neighbor, distance, and spatial joins — on pre-loaded US boundary datasets or your own data.
  1. Sign up at app.terranode.co

    Enter your email. You’ll receive a 6-digit verification code. No credit card required.

  2. Get your API key

    After verifying, your API key is displayed and emailed to you. It looks like tn_.... Save it — you’ll need it for every request.

  3. Enrich a location

    What does Terranode know about the Empire State Building?

    Terminal window
    curl -s "https://api.terranode.co/v1/enrich?lat=40.7484&lng=-73.9856&system_dataset=us-counties" \
    -H "x-api-key: YOUR_API_KEY" | jq .
    {
    "summary": {
    "datasets_queried": 1,
    "datasets_matched": 1,
    "requests_charged": 1
    },
    "results": [
    {
    "dataset": "us-counties",
    "type": "system",
    "version": 1,
    "match": true,
    "intersections": [
    {
    "properties": {
    "STATEFP": "36",
    "COUNTYFP": "061",
    "GEOID": "36061",
    "NAME": "New York",
    "NAMELSAD": "New York County"
    },
    "on_boundary": false,
    "distance_m": 0,
    "distance_mi": 0
    }
    ]
    }
    ],
    "errors": [],
    "latency_ms": 12,
    "api_version": "v1",
    "semantics_version": "0.1.0"
    }
  4. Try all-dataset discovery mode

    Omit the dataset parameter to query everything at once:

    Terminal window
    curl -s "https://api.terranode.co/v1/enrich?lat=40.7484&lng=-73.9856" \
    -H "x-api-key: YOUR_API_KEY" | jq .
OperationDescriptionEndpoint
EnrichEverything Terranode knows about a locationGET /v1/enrich
Point in PolygonFind which polygon contains a pointGET /v1/pip
NearestFind the N closest features to a pointGET /v1/nearest
DistanceGeodesic distance between two pointsGET /v1/distance
Spatial JoinBatch enrich points with dataset attributesPOST /v1/spatial-join
DatasetsUpload and manage your own datasetsPOST /v1/datasets
UsageCheck your quota and rate limitsGET /v1/usage

All operations work on pre-loaded US boundary datasets (states, counties, ZIP codes, Census tracts, and more) or your own uploaded data.

Use the API without writing code:

  • AI Agents (MCP) — give Claude Desktop, Cursor, or any MCP client spatial query tools
  • n8n — add spatial operations to your n8n workflows via community node
  • Zapier — use spatial operations as actions in your Zaps (early access)
https://api.terranode.co/v1

All endpoints require the /v1 version prefix. Requests without it return 400.

Every request requires an x-api-key header. See Authentication.

The OpenAPI spec describes every endpoint, parameter, and response.