---
title: Geolocations
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Radar](https://developers.cloudflare.com/api/python/resources/radar)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Geolocations

##### [List Geolocations](https://developers.cloudflare.com/api/python/resources/radar/subresources/geolocations/methods/list)

radar.geolocations.list(GeolocationListParams\*\*kwargs) -> [GeolocationListResponse](<https://developers.cloudflare.com/api/python/resources/radar#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)>)

GET/radar/geolocations

##### [Get Geolocation details](https://developers.cloudflare.com/api/python/resources/radar/subresources/geolocations/methods/get)

radar.geolocations.get(strgeo\_id, GeolocationGetParams\*\*kwargs) -> [GeolocationGetResponse](<https://developers.cloudflare.com/api/python/resources/radar#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)>)

GET/radar/geolocations/{geo\_id}

##### ModelsExpand Collapse

<details>

<summary>

class GeolocationListResponse: …

</summary>

<details>

<summary>

geolocations: List\[Geolocation]

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

parent: GeolocationParent

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

parent: GeolocationParentParent

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20parent">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20parent">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations%20%3E%20(items)%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)%20%3E%20(property)%20geolocations">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_list_response%20%3E%20(schema)>)

<details>

<summary>

class GeolocationGetResponse: …

</summary>

<details>

<summary>

geolocation: Geolocation

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

parent: GeolocationParent

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

parent: GeolocationParentParent

</summary>

geo\_id: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20geoId">Link to this property</a>

latitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20latitude">Link to this property</a>

longitude: str

A numeric string.

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20longitude">Link to this property</a>

name: str

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20parent">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20parent">Link to this property</a>

<details>

<summary>

type: Literal\["CONTINENT", "COUNTRY", "ADM1"]

The type of the geolocation.

</summary>

One of the following:

"CONTINENT"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"COUNTRY"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"ADM1"

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20type">Link to this property</a>

code: Optional\[str]

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20code">Link to this property</a>

locale: Optional\[str]

BCP 47 locale code used for the geolocation name translation

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation%20%3E%20(property)%20locale">Link to this property</a>

</details>

<a href="#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)%20%3E%20(property)%20geolocation">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.geolocations%20%3E%20(model)%20geolocation_get_response%20%3E%20(schema)>)