Report dimensions
GET
/v1/enums
const url = 'https://restapi.affattr.com/v1/enums';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://restapi.affattr.com/v1/enumsDimensions of the aggregated reports: what dimensions and the keys of filter take, per report. No API key needed.
Responses
Section titled “ Responses ”Dimensions by report
Media type application/json
object
reports
Dimensions by report: overview, custom, events, engagement, subscriptions_v2, ad_revenue, apple_search_ads, google_ads, skadnetwork, audience and others.
object
key
additional properties
object
dimensions_available
Array<object>
object
dimension
Value for dimensions and the key of filter.
string
label
Name of the column in the UI.
string
dimensions_default
Dimensions the UI starts with.
Array<string>
Example
{ "reports": { "additionalProperty": { "dimensions_available": [ { "dimension": "partner_id", "label": "Partner ID" } ], "dimensions_default": [ "partner_id" ] } }}