You are here: Developers > OpenX Platform API > Platform API reference > geo service

geo service

The geo service provides geolocation values you can use for targeting. It has the following calls:

Search using GET

GET /geo/search?q=query_string&sort=field_name&order=sort_order&size=number. List geolocation search results for the specified query string.

Parameters

  • order (Optional). The sort order, such as order=asc for ascending and order=desc for descending

  • q (Required). The query string, such as q=us

  • size (Recommended). The maximum number of matching results to return, such as size=100.

  • sort (Optional). The field to sort by, such as sort=city

Search using POST

POST /geo/search?q=query_string&sort=field_name&order=sort_order&size=number. List geolocation search results for the specified query string.

Parameters

  • order (Optional). The field to sort by, such as sort=city

  • q (Required). The query string, such as q=us

  • size (Recommended). The maximum number of matching results to return. We recommend you limit the results of your queries, such as size=100.

  • sort (Optional). The field to sort by, such as sort=city

See also

Geographic targeting in the OpenX UI help.

Feedback form