IP Demographics API

GET

Estimate the income, education, and age behind any IP address.

IP Demographics combines IP geolocation with Census demographic data to provide demographic information for any IP address. Get location, income, education, and housing data based on the IP's geographic location. Demographics cover US ZIP codes; other locations return the location with demographics set to null.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/ipdemographics?ip=173.172.81.20
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "ip": "8.8.8.8",
    "location": {
      "zip": "94043",
      "city": "Mountain View",
      "state": "California",
      "stateCode": "CA",
      "country": "United States",
      "countryCode": "US",
      "latitude": 37.4056,
      "longitude": -122.0775,
      "timezone": "America/Los_Angeles"
    },
    "demographics": {
      "population": 81234,
      "medianAge": 34.5,
      "medianHouseholdIncome": 142567,
      "perCapitaIncome": 78234,
      "medianHomeValue": 1875000,
      "collegeEducatedPct": 68.3,
      "unemploymentRate": 3.2,
      "homeOwnershipRate": 45.6
    },
    "acsYear": 2022,
    "formatted": {
      "medianHouseholdIncome": "$142,567",
      "perCapitaIncome": "$78,234",
      "medianHomeValue": "$1,875,000"
    }
  }
}

About the IP Demographics API

IP Demographics first geolocates the IP address to a ZIP code using MaxMind GeoIP, then enriches with demographic data from the US Census American Community Survey. This provides demographic insights for personalization and analytics.

What people use it for

Personalization
Personalize content based on visitor demographics
Analytics
Enrich analytics with demographic data for visitor insights
Ad Targeting
Improve ad targeting with demographic information
Fraud Detection
Factor demographics into risk scoring models

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use IP Demographics

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the IP Demographics API.

Read the docs
Does this work for IP addresses outside the United States?
Demographic enrichment only covers United States addresses. While IP geolocation can identify locations globally, the demographic figures come from the US Census American Community Survey and require a valid US ZIP code. Both IPv4 and IPv6 addresses are accepted.
How many IP lookups does the Free plan cover?
The Free plan covers 20 IP lookups per month at 10 credits per call. Upgrading to Starter gives you 200,000 credits, which covers 20,000 lookups each month and works out to $1.50 per 1,000 calls.
Do I get latitude, longitude, and home ownership rates on the Free plan?
No, those are reserved for paid tiers. The Free plan omits geographic coordinates, the local home ownership rate, and pre-formatted currency values. Any paid plan, starting with Starter, unlocks full access to these fields.
Where do the demographic figures and location mappings come from?
The API maps IP addresses to ZIP codes using MaxMind GeoIP, then pulls demographic figures directly from the US Census American Community Survey. Demographic datasets are refreshed yearly to match official Census releases.
Can I use this demographic data in a commercial product?
Yes, provided you subscribe to a paid plan. You can store and use the demographic data inside your own applications for personalization, fraud prevention, or analytics, but you may not resell or redistribute the underlying raw data.

Ready to build with IP Demographics? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs