For Agents
Validate US zip codes and enrich them with city, county, distance, radius, and MSA data via 7 REST endpoints.
Get started with Zip Code Data API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"look up a US zip code"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Zip Code Data API API.
Validate a US zip code and return its city, state, and county attributes
Calculate the distance between two zip codes for shipping or service-area logic
Find every zip code within a given radius of a target zip for territory expansion
Look up the Metropolitan or Micropolitan Statistical Area for a given MSA code
GET STARTED
Use for: Validate this US zip code and return its city, Calculate the distance between two US zip codes, Find all zip codes within 25 miles of a target zip, Look up the MSA group for a metro region code
Not supported: Does not handle international postal codes, full-address geocoding, or street validation — use for US zip code lookups, distance, radius, and MSA data only.
The Metadapi Zip Code Data API provides a comprehensive United States zip code dataset in JSON over a REST surface. Agents can validate a zip code, look up city and county metadata, calculate the distance between two zip codes, search by radius, and traverse Metropolitan and Micropolitan Statistical Area (MSA) groupings. The dataset is keyed by zip code so it works as a fast enrichment layer for forms, shipping flows, and territory-mapping tools that need authoritative US postal data.
List all MSA groups in the dataset for region-level analytics rollups
Confirm that an API license key is active before issuing high-volume traffic
Patterns agents use Zip Code Data API API for, with concrete tasks.
★ Address Form Validation
When a user enters a US zip code on a checkout or signup form, agents call the zip code lookup to validate the entry and auto-fill the corresponding city, state, and county fields. This reduces typos at submission and speeds up form completion. The dataset is keyed by zip so the lookup is a single GET against /zipc/v1/zipcodes/{zipcode}.
GET /zipc/v1/zipcodes/{zipcode} on form submission and pre-fill the city, state, and county fields with the returned values
Service-Area and Radius Search
Local-services platforms (cleaners, contractors, dental clinics) need to surface providers within a customer's distance threshold. Use the radius endpoint to retrieve every zip code within N miles of the customer's zip, then filter the provider directory by those zips. Combine with the distance endpoint to sort results by proximity.
GET /zipc/v1/radius for the customer's zip with a 25-mile radius, then filter the provider directory by the returned zip list
Territory and MSA Analytics
Sales and marketing teams roll up performance metrics by Metropolitan or Micropolitan Statistical Area. Agents use the MSA endpoints to map each customer zip to its MSA, then aggregate metrics by MSA name. Listing all MSA groups makes it easy to seed a dashboard or pivot table with the canonical region set.
GET /zipc/v1/msagroups to seed the MSA dimension, then map each customer zip to its MSA via /zipc/v1/zipcodes/{zipcode}
AI Agent Integration via Jentic
An AI agent uses Jentic to discover the Zip Code Data API by intent search ('look up a US zip code'). Jentic returns the matching operation with its input schema, so the agent enriches an address record in a single load-and-execute step. The Metadapi subscription key lives in the Jentic vault and never enters the agent's prompt.
Use Jentic to search 'look up a US zip code', load the zipcodes schema, and execute it to enrich an inbound order record
7 endpoints — the metadapi zip code data api provides a comprehensive united states zip code dataset in json over a rest surface.
METHOD
PATH
DESCRIPTION
/zipc/v1/zipcodes/{zipcode}
Get details for a single zip code
/zipc/v1/zipcodes
List zip codes
/zipc/v1/distance
Distance between two zip codes
/zipc/v1/radius
Find zip codes within a radius
/zipc/v1/msagroups
List MSA groups
/zipc/v1/msagroups/{msaCode}
Get MSA group details
/zipc/v1
Validate API license key
/zipc/v1/zipcodes/{zipcode}
Get details for a single zip code
/zipc/v1/zipcodes
List zip codes
/zipc/v1/distance
Distance between two zip codes
/zipc/v1/radius
Find zip codes within a radius
/zipc/v1/msagroups
List MSA groups
Three things that make agents converge on Jentic-routed access.
Credential isolation
Metadapi subscription keys are stored encrypted in the Jentic vault (MAXsystem) and injected into the `Ocp-Apim-Subscription-Key` header at request time. The raw key never enters the agent's prompt.
Intent-based discovery
Agents search by intent (e.g. 'look up a US zip code') and Jentic returns the matching operation with its schema, so the agent skips reading Metadapi's docs.
Time to first call
Direct integration: half a day for auth, error handling, and pagination of MSA endpoints. Through Jentic: under 15 minutes — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Smarty US Zip Code API
Smarty's US zip code lookup with city, state, and ZIP+4 enrichment
Pick Smarty when you also need standardised street-level address validation alongside zip lookup
Geocodio
US and Canada geocoding with batch zip lookups and rich administrative data
Pick Geocodio when you also need lat/long geocoding from full addresses or census tract data
ZipCodeAPI
Lightweight US zip code lookups with distance and radius search
Pick ZipCodeAPI for a minimal-cost, narrowly-scoped zip lookup dependency
ShipStation
Shipping platform that consumes validated zip codes for label generation
Use ShipStation alongside Metadapi when validated zips feed into a fulfilment workflow
Specific to using Zip Code Data API API through Jentic.
What authentication does the Metadapi Zip Code Data API use?
An API subscription key in the `Ocp-Apim-Subscription-Key` header, issued from your Metadapi subscription. Through Jentic the key is stored in the MAXsystem vault and injected at request time, so it never enters the agent's prompt.
Can I look up city and county data for a zip code?
Yes. GET /zipc/v1/zipcodes/{zipcode} returns the metadata associated with a specific zip, and GET /zipc/v1/zipcodes lists the dataset for bulk enumeration.
How do I calculate the distance between two zip codes?
Call GET /zipc/v1/distance with the two zip codes as parameters. The response returns the computed mile distance.
Does the API support radius searches around a zip?
Yes. GET /zipc/v1/radius returns every zip code within a given distance of a target zip, suitable for service-area or store-locator features.
How do I look up a US zip through Jentic?
Search Jentic for `look up a US zip code`, load the GET /zipc/v1/zipcodes/{zipcode} operation, and execute it with the zip. Jentic returns the structured response with city, state, and county fields.
Are there published rate limits?
The OpenAPI spec does not declare quantitative rate limits. Limits are tied to your Metadapi subscription tier — check the dashboard or contact Metadapi support before bulk traffic.
/zipc/v1/msagroups/{msaCode}
Get MSA group details
/zipc/v1
Validate API license key