Documentation

API URL


GET /

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET https://datpaq.com/api/v1/us-states?api_key=your-api-key

Successful Response

Status
HTML
200 OK
Body
Code
{
  "stateName": "California",
  "abbreviation": "CA",
  "fipsCode": "06",
  "capital": "Sacramento",
  "region": "West",
  "timezones": "PST",
  "admittedOn": "1850-09-09",
  "population": 39538223
}

Error Response

Example
Code
400 BadRequest - abbr batch limit exceeded: More than 56 abbreviations supplied to batch endpoint
404 NotFound - State abbreviation not found: No row matched /:abbr lookup
404 NotFound - FIPS code not found: No row matched /fips/:fipscode lookup
404 NotFound - Unknown route: Request path does not match implemented routes
500 InternalServerError - Database query or connection failure: Runtime database exception in list or lookup handlers

Last Updated:  May 4, 2026