Skip to main content
GET
/
cities
/
{state}
/
{name}
Retrieve a City
curl --request GET \
  --url https://commerce.driv.ly/api/cities/{state}/{name}
{
  "data": {
    "state": "<string>",
    "name": "<string>"
  },
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.driv.ly/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

state
string
required

City is uniquely identified by State

name
string
required

City is uniquely identified by Name

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Response

City Found

data
City · object
Example:
{
"name": "Springfield",
"state": { "code": "IL" }
}
success
boolean