Get metadata
GET https://datafa.st/api/v1/analytics/metadataReturn website configuration metadata — domain, timezone, currency, KPI goal, and branding — for building custom dashboards or apps on top of the API. See apps built on the API for examples.
This endpoint has no date range or filters. It always reflects current website settings.
Related: Apps built on the API
Request
Query parameters
websiteIdstring
Required with a
dft_ account token on Website API routes. Omit with a df_ website key. Example: ?websiteId=665f0b3c4d2e1a0012345678.fieldsstring
Metadata fields to return. Values:
domain, timezone, name, logo, kpiColorScheme, kpi, currency. Returns all when omitted. Example: fields=domain,timezone,currency.Response
Returns a JSON object with
status: "success" and endpoint-specific fields in data (and pagination when the endpoint is paginated).Response fields
data[].domainstring
Tracked website domain.
data[].timezonestring
Timezone used to interpret dates and group analytics buckets. Defaults to the website timezone. Default timezone used for dashboard periods and API aggregation.
data[].namestring
Human-readable name for the resource or event. The exact meaning depends on the endpoint. Website display name configured in DataFast, or an empty string when unset.
data[].logostring|null
Logo URL when configured.
data[].kpiColorSchemestring
Color scheme used for the KPI card in the dashboard.
data[].kpistring|null
Goal or metric configured as the website KPI.
data[].currencystring
Currency code for money values, such as
USD or EUR.Authentication
df_website API key: The website is inferred from the key. You do not need awebsiteIdquery parameter.dft_account token: Requiresanalytics:readpermission and?websiteId=on every request. The token must be allowed to access that website.
Read authentication and scopes for token creation, permission lists, and scoped tokens.
Errors
400 — Invalid
fields value.404 — Website not found.
See API errors for the standard error envelope, auth failures, validation errors, permission errors, and rate limits.