---
title: "Get choices for a data-source parameter"
method: GET
path: "/external/v1/data-sources/{dataset_id}/params/{param_slug}/choices"
tags: ["Data sources"]
---

# Get choices for a data-source parameter

`GET /external/v1/data-sources/{dataset_id}/params/{param_slug}/choices`

## Request

- Base URL: `https://api.databar.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.databar.ai/external/v1/data-sources/{dataset_id}/params/{param_slug}/choices`
- Auth: API key in header `x-apikey`

## Path parameters

- `dataset_id` integer, required
- `param_slug` string, required

## Query parameters

- `q` string, nullable
- `page` integer
- `limit` integer

## Response `200`

OK

- ChoicesResponse
  - `items` ChoiceItem[], required
    - `id` string, required
    - `name` string, required
  - `page` integer, required
  - `limit` integer, required
  - `has_next_page` boolean, required
  - `total_count` integer, required

---

[API](https://skmtc.dev/databar/apis/external-api.md) - [All operations](https://skmtc.dev/databar/apis/external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/databar/apis/external-api/revisions/efe15f8bb9bb?raw)
