API URL
GET /
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
abbr
required
string
Comma-separated abbreviations for batch lookup via /?abbr=
q
optional
string
Optional search term for / list endpoint
Example GET Request
Code
GET https://datpaq.com/api/v1/us-states?api_key=your-api-keySuccessful Response
Status
HTML
200 OKBody
Code
{
"stateName": "California",
"abbreviation": "CA",
"fipsCode": "06",
"capital": "Sacramento",
"region": "West",
"timezones": "PST",
"admittedOn": "1850-09-09",
"population": 39538223
}Field
Type
stateName
string
abbreviation
string
fipsCode
string
capital
string
region
string
timezones
string
admittedOn
string
population
number
status
string
service
string
version
string
timestamp
string
uptime
number
error
string
details
string
path
string
availableEndpoints
array
correlationId
string
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 handlersLast Updated: May 4, 2026