Sources
Returns a list of Sources filtered by single or multiple Source Id
<br>Gets all Sources if no 'ids' parameter is supplied. <br>Otherwise, it filters Sources based on 'ids' parameter. <br>Multiple 'ids' parameters can be passed in, separated by semi-column (i.e. '1;2;3').
get/api/v1/sources/{codes}
Request
- Base URLhttps://population.un.org/dataportalapi
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
codesstring required
It accepts multiple 'Source Ids' (i.e. '1;2;3')
Query parameters
sortstring
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
formatstring
Defines respose return format. Possible values are 'json' (default), 'xml' and 'csv'
Response
Returns Status 200 OK
Changes
No recorded changes to this operation across all 2 revisions of this API.