Skip to main content
GET
/
v1
/
enrichments
/
{enrichment_id}
/
params
/
{param_slug}
/
choices
Get choices for a parameter
curl --request GET \
  --url https://api.databar.ai/v1/enrichments/{enrichment_id}/params/{param_slug}/choices \
  --header 'x-apikey: <x-apikey>'
{
  "items": [
    {
      "id": "us",
      "name": "United States"
    },
    {
      "id": "gb",
      "name": "United Kingdom"
    }
  ],
  "page": 1,
  "limit": 100,
  "has_next_page": false,
  "total_count": 2
}

Documentation Index

Fetch the complete documentation index at: https://docs.databar.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-apikey
string
required

API Key for authentication

Path Parameters

enrichment_id
integer
required

The ID of the enrichment

param_slug
string
required

The parameter slug/name

Query Parameters

q
string

Search query to filter choices

page
integer
default:1

Page number

Required range: x >= 1
limit
integer
default:100

Items per page (max 500)

Required range: 1 <= x <= 500

Response

Paginated list of choices

items
ChoiceItem · object[]
required
page
integer
required
limit
integer
required
has_next_page
boolean
required
total_count
integer
required