Returns a paged list of all Locations
<br>Paging options:
<br>* To return paged subset of data, provide PageNumber and PageSize
<br>* To return paging info in the body od the response, set 'pagingInHeader' to FALSE (default). Data is returned in 'response.data' field
<br>* To return paging info in the 'x-pagination' response header, set 'pagingInHeader' to TRUE. Data is returned as the response object
Request
- Base URLhttps://population.un.org/dataportalapi
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Current response page number
Page size of the request (defaults to 100, maximum 100)
Parameter defining whether Paging information is returned in 'x-pagination' Response Header as opposed to the Body of the Response (default)
Field name used for record sorting. Must exist on a Model, otherwise error is thrown. Defaults to Ascending sort by 'id' field. Use hypehn (-) in front of the field name to switch sorting direction to Descending
Defines respose return format. Possible values are 'json' (default), 'xml' and 'csv'
Response
Returns list of all Locations.
Changes
No recorded changes to this operation across all 2 revisions of this API.