Get metadata
GET https://datafa.st/api/v1/analytics/metadata
Return website metadata used to configure custom dashboards.
Request
Authentication
df_website API key for one website.dft_account token withanalytics:read. PasswebsiteIdas a query parameter.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | string | No | Controls which website metadata fields are returned. Possible values: domain, timezone, name, logo, kpiColorScheme, kpi, currency. Example: fields=domain,timezone,currency. |
Response
Returns a JSON object with
status and endpoint-specific fields.Response fields
| Field | Type | Description |
|---|---|---|
data[].domain | string | Tracked website domain. |
data[].timezone | string | Timezone used to interpret dates and group analytics buckets. Defaults to the website timezone. Default timezone used for dashboard periods and API aggregation. |
data[].name | string | null |
data[].logo | string | null |
data[].kpiColorScheme | string | Color scheme used for the KPI card in the dashboard. |
data[].kpi | string | null |
data[].currency | string | Currency code for money values, such as USD or EUR. |
Errors
Common errors include
400 for invalid input, 401 for missing or invalid tokens, 403 for missing permission or suspended tracking, 404 for missing resources, and 500 for server errors.