---
title: "Returns a list of all Sources"
method: GET
path: "/api/v1/sources"
tags: ["Sources"]
---

# Returns a list of all Sources

`GET /api/v1/sources`

## Request

- Base URL: `https://population.un.org/dataportalapi`
- URL: `https://population.un.org/dataportalapi/api/v1/sources`
- Auth: none declared
- TypeScript: <https://skmtc.dev/united-nations/apis/data-portal-api/docs/api/v1/sources/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `pageNumber` integer
- `pageSize` integer
- `pagingInHeader` boolean
- `sort` string
- `format` string

## Response `200`

Returns Status 200 OK

- SourceDto[]
  - `id` integer, nullable
  - `name` string, nullable
  - `sourceYear` integer, nullable
  - `startYear` integer, nullable
  - `endYear` integer, nullable
  - `citation` string, nullable
  - `url` string, nullable
  - `author` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Returns Status 404 NotFound if no 'Sources' are returned.
- `406`: Not Acceptable
- `500`: Returns Status 500 Internal Server Error if an exception is thrown from the Web API code.

---

[API](https://skmtc.dev/united-nations/apis/data-portal-api.md) - [All operations](https://skmtc.dev/united-nations/apis/data-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/united-nations/apis/data-portal-api/revisions/2f5f5b77ad0d?raw)
