Skip to content

Get a city

GET
/locations/cities/{id}
curl --request GET \
--url https://api.proxyrequest.com/api/v1/locations/cities/example \
--header 'Authorization: Bearer <token>'

Returns one city and its available network targeting options.

id
required
string

The operation completed successfully.

Media typeapplication/json
object
id
string
<= 36 characters
code
required

Raw city code as it appears in the source data. los_angeles paris

string
<= 255 characters
name
required

English display name of the city used across the admin and API responses.

string
<= 255 characters
country
required
object
code
required
string
name
required
string
original_name
string
region
required
object
code
required
string
name
required
string
original_name
string
isps
required
Array<object>
object
code
required
string
name
required
string
asns
required
Array<object>
object
code
required
string
name
required
string
Examples
ExampleCity
{
"id": "us-ca-los-angeles",
"code": "los_angeles",
"name": "Los Angeles",
"country": {
"code": "us",
"name": "United States",
"original_name": "United States"
},
"region": {
"code": "california",
"name": "California",
"original_name": "California"
},
"isps": [
{
"code": "spectrum",
"name": "Spectrum"
}
],
"asns": [
{
"code": "20001",
"name": "Charter Communications"
}
]
}

The request is malformed or violates a business rule.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
translation

Stable translation key suitable for client localisation.

string
key
additional properties
One of:
string
Examples
Exampleexample

Validation error

{
"non_field_errors": [
"The request could not be processed."
],
"translation": "errors.request.invalid"
}

Authentication credentials are missing, expired, or invalid.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
translation

Stable translation key suitable for client localisation.

string
key
additional properties
One of:
string
Examples
ExampleAuthenticationRequired

Authentication required

{
"detail": "Authentication credentials were not provided."
}

The authenticated account cannot perform this operation.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
translation

Stable translation key suitable for client localisation.

string
key
additional properties
One of:
string
Examples
ExamplePermissionDenied

Permission denied

{
"detail": "You do not have permission to perform this action."
}

The requested resource does not exist in the current account scope.

Media typeapplication/json

Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.

object
detail
string
non_field_errors
Array<string>
translation

Stable translation key suitable for client localisation.

string
key
additional properties
One of:
string
Examples
ExampleResourceNotFound

Resource not found

{
"detail": "Not found."
}