Analytics reports via API
Pull reports over the API — the report types the REST path serves, formats, date ranges, group-by, eqStr/eqLong filter maps, pagination, exports, column ids, saved reports and DSP spend, with the refusals and the daily quota.
Reports you run in Account → Analytics can also be pulled over the API, in five output
formats. This page documents the report endpoints, their filter model, and which report types
the REST path serves. Examples send your API key in the X-Api-Key header; see the
API overview. All report parameters, with descriptions and an example request:
GET /rest-api/analytics/{format}.do.
Endpoints
The report engine itself is one path, on GET and POST:
| Method | Path | Auth |
|---|---|---|
| GET/POST | /rest-api/analytics/{format}.do | Your API key in the X-Api-Key header (or Authorization: Bearer <key>). A call with no key, or a key that matches no one, is a 401 |
A client that cannot set a header may pass the key as an apiKey query parameter instead; this
endpoint is the only one that accepts that fallback, and a header wins when both are sent. A
deactivated account is refused — 401, Account is not active under rest_error.
{format} is JSON, CSV, XLSX, PDF or HTML. GET and POST accept exactly the same
report parameters.
# JSON, last 7 days grouped by day
curl -H "X-Api-Key: $APIKEY" "https://<your-network-domain>/rest-api/analytics/JSON.do?range=LAST_7_DAYS&groupRange=DAY"
# CSV download
curl -o report.csv -H "X-Api-Key: $APIKEY" \
"https://<your-network-domain>/rest-api/analytics/CSV.do?range=LAST_MONTH&groupBy=SITE"
The rest of the Analytics group is the column-id list and the layout-settings reader, the DSP
spend report and saved reports — each covered in its own section below — plus
two diagnostics, GET /rest-api/analytics/report-check.do and
GET /rest-api/analytics/raw-log-analyze.do (which takes the same hourFrom / hourTo
window and names it back in hours), documented in the
generated reference.
Report types
statisticType selects the report. The REST path serves every value below, and omitting
the parameter is itself a report type — the default is the General report, not the
Advanced one.
statisticType | Report | What it returns | Over REST |
|---|---|---|---|
| (omitted) | General | Daily and hourly totals | Works — this is the default |
HADOOP | Advanced | Totals broken down by what each ad request carried | Works |
IMPRESSIONS_LOG | Impressions Log | One row per impression | Works |
CLICKS_LOG | Clicks Log | One row per click | Works |
CONVERSIONS_LOG | Conversions Log | One row per conversion | Works |
ACTIONS_LOG | Actions Log | One row per tracked action | Works — but see the note below |
TARGETING_COOKIE | Targeting Cookie | Daily totals | Works |
HEADER_BIDDING | Header Bidding | Daily and hourly totals | Works — see the note below |
Three legacy names are accepted and silently mapped to HADOOP: HADOOP_ADREQUESTS,
BROWSER_OS and HADOOP_SECURITY. They exist so bookmarked URLs and saved widgets keep
working; use HADOOP in new code.
Note: the Header Bidding report has its own columns —
fills,unfilled,hbFillRate,grossandecpmGross(the money columns need the Gross permissions) — and its own dimensions: group byFILL_SOURCE,COUNTRY,SITE,ZONEandPLACEMENT, and filter witheqStr[FILL_SOURCE],eqStr[COUNTRY]andeqLongonSITE,ZONEorPLACEMENT. It returns the same figures as the report in Account → Analytics. A publisher sees the fills on their own inventory only.
Note:
ACTIONS_LOGis the one report type the API serves that the UI’s report-type picker never offers.
Each report type is also gated by its own reporting permission — the Analytics Report Type …
group in the role editor (ACTIONS_LOG uses the Conversions Log one) — and the report is
refused with 403 naming it, for example Your role lacks the RPT_TYPE_HADOOP permission.
A report with no statisticType needs the General report permission. A type that works in
principle can therefore still be refused for the calling user.
Report parameters
The report parameters are identical on all four report operations. Time and scope first:
| Parameter | Values / format | Notes |
|---|---|---|
statisticType | See Report types | Omit for the General report |
range | TODAY (default), YESTERDAY, CURRENT_WEEK, LAST_WEEK, LAST_2_WEEKS, CURRENT_MONTH, LAST_7_DAYS, LAST_30_DAYS, LAST_MONTH, LAST_3_MONTH, LAST_6_MONTH, CURRENT_YEAR, LAST_YEAR, CUSTOM | 14 values. CUSTOM reads the period from customFrom / customTo. Each range has its own reporting permission. In a General report the ranges are days of the network’s time zone (reportingTimeZone in GET /rest-api/network/settings.do; UTC unless your network has been set to another zone), with weeks starting on Monday. LAST_7_DAYS and LAST_30_DAYS include today, in the Advanced report too |
customFrom, customTo | yyyy-MM-dd | Only with range=CUSTOM; both default to today, so CUSTOM with only customFrom reports up to today. customTo before customFrom is a customFrom-customTo error |
groupRange | NONE (default), HOUR, DAY, WEEK, MONTH, YEAR, HOUR_24 | Time bucketing; HOUR_24 groups by hour-of-day across days |
hourFrom, hourTo | 0–23 | The hours of the day to report on, in the report’s own time zone, applied to every day in the range; both hours are included. The Advanced report and the event logs (IMPRESSIONS_LOG, CLICKS_LOG, CONVERSIONS_LOG, ACTIONS_LOG) apply them whatever the group range — every other report type reads them only with groupRange=HOUR and ignores them otherwise. hourFrom must not exceed hourTo. A value outside 0–24 is a 400 on that field. Send the two together |
usersTimeZoneId | NETWORK, or a fixed-offset zone name: UTC_0, UTC_PLUS_2, UTC_MINUS_5 … (UTC_MINUS_12 to UTC_PLUS_14) | Advanced (HADOOP) reports only; left out, it is NETWORK — the network’s own zone, daylight saving included. The fixed offsets have no daylight-saving switch, and an unknown value silently means UTC. See Which time zone do reports use? |
groupBy | Repeatable or comma-separated — see Grouping | |
eqStr, eqLong | Filter maps — see Filters | |
archive | boolean | Zips the download: the response is export.<format>.zip holding export.<format>. It does not select older or archived data |
offset, limit | integers | Pagination; offset defaults to 0. Omit limit and you get up to the network’s Records per request limit (10,000 by default); a larger limit is a 400. See the corner case below |
hadoopRefDomain | text | Advanced (HADOOP) only: count only requests whose Top Domain (the page, https://host) contains this text. The name dates from the deprecated Referer, which is now an alias of Top Domain |
hadoopAppPackage | text | Advanced only: count only in-app requests whose app package / bundle id contains this text |
hadoopCustomParms[name] | repeatable text | Advanced only: count only requests carrying this custom parameter (the name the ad tag passes). Repeat the parameter for several values of one name, which OR — hadoopCustomParms[utm_source]=newsletter&hadoopCustomParms[utm_source]=promo; a comma inside a value is part of it. Sent with an empty value, the name alone is the filter: any value counts. On a parameter registered as a list, a value counts a request that sent it as one of the items — hadoopCustomParms[rating]=18+ counts a recorded ~other,18+, and the whole recorded value still counts too: hadoopCustomParms[rating]=18+,PG counts the requests that recorded 18+,PG. Name the parameter several times with different names to require all of them |
hadoopCustomParmsAny | boolean | Advanced only, with two or more hadoopCustomParms names: count a request carrying any one of them. Default: only requests carrying all of them, as every other filter here behaves |
hadoopCustomParmName, hadoopCustomParmValue | text | Advanced only, superseded by hadoopCustomParms: count only requests carrying this custom parameter, and with a value, only where it has that value. Several names separated by commas count a request carrying any of them |
Then the ones that shape the columns rather than the rows:
| Parameter | Values / format | Notes |
|---|---|---|
displayIds | boolean | Adds entity IDs next to names |
showUnique | boolean | Adds unique visitor/click columns (Advanced reports, Unique view). Omitted, a unique column listed in reportsLayoutSettings asks for them as well — columns.do lists them for the Unique view; showUnique=false still leaves them out |
useReportsLayoutSettings | boolean, default false | When true, output only the metric columns listed in reportsLayoutSettings (grouping and date columns always stay). It does not load the layout saved in the UI. When false, every metric column your role may see is returned |
reportsLayoutSettings | Repeatable column ids, e.g. impressions, ctr, fill_rate — see Report column layout | Applied only with useReportsLayoutSettings=true; an id that is no column of the report type is dropped, whether or not it would be applied, and named in the X-Ignored-Report-Columns response header — the report still runs |
splitColumnsBy | NONE, CONVERSION_ACTION, CUSTOM_PARAMETER, ATTRIBUTION_TYPE | The single dimension spread across columns. Not available on the Advanced report |
splitByAttribution | boolean | Nests a click-through / view-through pair under each conversion-action column. Only meaningful with splitColumnsBy=CONVERSION_ACTION |
actionIds | Repeatable or comma-separated conversion action ids | Restricts the conversion columns — and the per-action columns of splitColumnsBy=CONVERSION_ACTION — to these actions. Omitted: every action you may see |
breakdownByActions | boolean | One conversions column per conversion action. Ignored when splitColumnsBy is set |
breakdownByCustomParameter | boolean | Break rows down by custom parameter values |
actionCustomParameterFragment, actionCustomValueFragment | strings | Filter by custom parameter name / value fragment |
jsonKeys | name (default), id | JSON only: how each row names its fields — see JSON output. Other formats ignore it |
Corner case:
splitColumnsBytakes precedence overbreakdownByActions/breakdownByCustomParameter, which it derives, so a report cannot ask for two column splits at once. Money columns are rounded to the network’s analytics decimal precision; a request cannot change it.
Corner case: on the report endpoints
limit=50is read as “no limit given”. 50 is the default when you omit the parameter, and the endpoint treats it as the omitted case: a request withlimit=50returns up to the network’s records-per-request limit, not 50 rows. Ask for 49 or 51 when you need a page of about that size.
Corner case:
groupByis checked on submit, not silently trimmed. A dimension your role lacks, or one the report type does not have, refuses the whole request instead of returning a report with those columns quietly missing — see Grouping for the two answers.
Grouping
groupBy is repeatable. Its schema accepts 68 dimension values, but being in that list does
not mean the report accepts it: the same value list serves group-by, both filter maps and the
search endpoint’s entities parameter, so it is a superset of what any single report offers.
Which dimension belongs to which report type is the subject of
Analytics dimensions; the generated reference lists
the dimensions per report type next to the parameter:
GET /rest-api/analytics/{format}.do.
Group by the entity’s name dimension (CAMPAIGN, not CAMPAIGN_ID — no report groups by the
_ID values) and add displayIds=true for the ids. Repeat the parameter for multi-level grouping:
curl -H "X-Api-Key: $APIKEY" "https://<your-network-domain>/rest-api/analytics/JSON.do?\
range=LAST_30_DAYS&groupBy=CAMPAIGN&groupBy=COUNTRY&groupRange=DAY&limit=1000"
Corner case: grouping by the name dimension (
CAMPAIGN) merges entities that share a name. If you post-process results programmatically, adddisplayIds=trueso rows are unambiguous.
Corner case: a
groupByvalue is refused for one of two reasons, and the answer says which. A grouping your role lacks the permission for answers403withpermissionDenied: trueanderrors.forbiddennaming the permission —Your role lacks the RPT_GRP_FILTER_ZONE permission needed to group by ZONE.The entity groupings cascade, so the permission named is the shallowest one missing: grouping by placement needs the site, zone and placement permissions, and grouping by creative the advertiser, campaign and creative ones. A grouping the report type does not have answers400witherrors.groupBy—The General report does not group by DEVICE_FORMAT; the Advanced report (statisticType=HADOOP) does.— and no permission will make it work: send the report type that offers it. Neither is counted against the daily limit.
Filters: eqStr and eqLong
Filters are maps passed in bracket notation. The two maps are not interchangeable — each takes its own set of fields:
| Map | Field type | Fields it accepts |
|---|---|---|
eqLong[FIELD]=<id> | Numeric entity IDs | BANNER, CAMPAIGN, ADVERTISER, PLACEMENT, ZONE, SITE |
eqStr[FIELD]=<string> | String values | CHANNEL, COUNTRY, PLACEMENT_TYPE, BANNER_LABEL, PLACEMENT_LABEL, TEMPLATE_ID, ACTION, BROWSER, OPERATING_SYSTEM, UNIVERSAL_AD_ID |
Both maps accept the full 68-value list as their keys, for the same reason as
groupBy; the fields above are the ones the General report filters on. Two notes:
UNIVERSAL_AD_IDfilters by the ISCI / Ad-ID code set on video creatives, and needs the Banner ISCI / Ad-ID Code permission. The raw-log reports resolve it to the creatives carrying that code.PLACEMENT_LABELandBANNER_LABELtake label names: the ones the label filters of the report form list, or the labels an entity carries in the API — thevalueof eachlabelentry ofGET /rest-api/placements/summary.do, and thelabelsofGET /rest-api/banner/{bannerId}.do. Both return them to a role holding the label permission. (GET /rest-api/label/list.dolists every label, but needs Labels Management, which a reporting role rarely holds.) Each label filter needs what grouping by its field needs: the view of the inventory (PLACEMENT_LABEL) or of the campaigns (BANNER_LABEL), the Group/Filter By permission of every level down to the placement or the banner, and Placement Labels or Banner Labels, enabled or read-only. The report checks this itself, as it checks every other filter, so a role lacking one gets403naming the first one missing —Your role lacks the PLACEMENT_LABELS permission.orYour role lacks the CAMPAIGNS (VIEW) permission.A dashboard widget carrying the filter shows that refusal in place of its figures, and so does a console report tab still open after the role lost the permission; a scheduled report carrying it is not sent. A saved report is not refused: opened in the console by such a role, it loads without the label filter, so the report covers every placement or creative the role can see rather than the labelled ones. A label filter of blank values filters nothing and needs nothing. Names match the way the network compares label names: regardless of case, accents and surrounding spaces. They work the same way in the General and the Advanced (statisticType=HADOOP) report: the report keeps the traffic of the placements or creatives that carry any of the named labels. AddfilterAllLabels=trueand each entity must carry all of them instead; the switch applies to both label fields, and two names that match the same label count as that one label. Both reports read the labels the entities carry now, so a placement that lost a label last week also drops out of the days before. A name that no placement or creative carries matches no traffic, so the report comes back empty — withfilterAllLabels=true, so does a single name that matches no label.TEMPLATE_IDtakes banner template ids: the templates the report form’s Banner Template filter lists, thetemplateIdof a creative inGET /rest-api/banner/{bannerId}.do, or theidof a template inGET /rest-api/template/list.do, which lists the templates your role may view. It keeps, in the General and the Advanced report alike, the traffic of the creatives built from those templates now; a value that is no template id matches no creative. It needs what grouping by it needs — the view of the campaigns and the Analytics Report Group/Filter By Banner Template permission — and the report checks it itself, as it checks the label filters, so a role lacking one gets403withpermissionDenied: truenaming the first one missing —Your role lacks the CAMPAIGNS (VIEW) permission.orYour role lacks the RPT_FILTER_BANNER_TEMPLATE permission.As with the label filters, a dashboard widget carrying it shows that refusal in place of its figures, a scheduled report carrying it is not sent, and a saved report is not refused: opened in the console by such a role, it loads without the template filter, so the report covers every creative the role can see. A template filter of blank values filters nothing and needs nothing.- On
statisticType=HADOOP,PLACEMENT_LABEL,BANNER_LABELandTEMPLATE_ID(filter, or grouping for the template) are read as the ids of the placements or creatives carrying them that the report’s own filters let through —eqLongPLACEMENT/ZONE/SITE,eqStrOPEN_RTB_PUBLISHER_IDand the shared sites for placements;eqLongBANNER/CAMPAIGN/ADVERTISER,BANNER_LABELand the shared advertisers for creatives — created by the period’s last day. When one of them comes to more than the network’s limit — 20,000 unless the network changed it — the report answers400, without spending the daily request quota, with the error under that field:errors.TEMPLATE_ID—Grouping or filtering by banner template here covers more than 20000 banners. Narrow the report to fewer advertisers, campaigns, banners or templates and run it again.,errors.BANNER_LABEL—The banner label filter here covers more than 20000 banners. …,errors.PLACEMENT_LABEL—The placement label filter here covers more than 20000 placements. Narrow the report to fewer sites, zones, placements or labels and run it again.Narrow the report and send it again; it is never cut short. PLACEMENT_TYPEtakes placement type ids — 1 Site, 2 Mobile Site, 3 Video, 4 Non-standard, 5 Application, 6 Email, 7 Click-through, 9 Native — and filters the General and the Advanced report alike.groupBy=PLACEMENT_TYPEnames each row by the type (Site Placement, Video Placement, …) in the interface language rather than by the id; the Advanced report offers it only on a network whose logs are not compacted. Grouping and filtering by it both need the Analytics Report Group/Filter By Placement Type permission (RPT_FILTER_PLACEMENT_TYPE); a grouping without it answers403witherrors.forbidden—Your role lacks the RPT_FILTER_PLACEMENT_TYPE permission needed to group by PLACEMENT_TYPE.— and a filter, which the report checks itself,403withpermissionDenied: true—Your role lacks the RPT_FILTER_PLACEMENT_TYPE permission.- The Advanced report (
statisticType=HADOOP) reads furthereqStrfields — its own device, browser, risk, language, connection-type and traffic-source dimensions, for exampleDEVICE_VENDOR,RISK_LEVEL,CONNECTION_TYPEandLANGUAGE— each behind its own reporting permission. Analytics dimensions says which dimension belongs to which report. RISK_LEVELtakes a level by name or id —CERTAINor8— andRISK_CATEGORYa category by name, short name or id —DATACENTER,datacenteror10.BROWSER,DEVICE_FORMAT,PROXYandPLACEMENT_TYPElikewise take the name in any case or the id —CHROMEor3,MOBILEor3,VPNor1,VIDEO_PLACEMENTor3. A value that names none answers400, with the accepted values undererrors["eqStr[FIELD]"]—errors["eqStr[RISK_LEVEL]"], for example.OPEN_RTB_PUBLISHER_IDand an entity sent ineqStrinstead ofeqLong(SITE,ZONE,PLACEMENT,ADVERTISER,CAMPAIGN,BANNER) take numeric ids; anything else answers400naming the field and the value.
Repeat a key for OR-matching within the same field:
# US or Germany traffic on two specific sites
curl -H "X-Api-Key: $APIKEY" "https://<your-network-domain>/rest-api/analytics/JSON.do?\
range=YESTERDAY&groupBy=SITE&groupBy=COUNTRY\
&eqStr\[COUNTRY\]=US&eqStr\[COUNTRY\]=DE\
&eqLong\[SITE\]=100&eqLong\[SITE\]=101"
Different fields are combined with AND: the example above reads “(country US or DE) and (site 100 or 101)”.
A comma means different things depending on the field:
- Free-text fields keep it. A single
BANNER_LABEL,PLACEMENT_LABEL,DEVICE_VENDOR,DEVICE_MODELorDEVICE_MODEL_CODEvalue is one value, commas included:eqStr[PLACEMENT_LABEL]=Coastal, Outdoorfilters by the label named Coastal, Outdoor, not by two labels. To filter by several of them, repeat the key. - Every other field splits on it, as it always has:
eqStr[COUNTRY]=US,GBis the same aseqStr[COUNTRY]=US&eqStr[COUNTRY]=GB. Repeating the key works in every field and is the safest form.
Note: remember to escape (or quote) the square brackets in shells; curl also accepts
--data-urlencode 'eqStr[COUNTRY]=US'with-Gfor GET requests.
Raw event logs
Set statisticType to IMPRESSIONS_LOG, CLICKS_LOG, CONVERSIONS_LOG or ACTIONS_LOG to
receive raw event rows instead of aggregates — one row per impression, click or conversion,
with the same range, filter and pagination parameters. These are significantly heavier than
aggregated reports; keep date ranges short and always paginate.
curl -H "X-Api-Key: $APIKEY" "https://<your-network-domain>/rest-api/analytics/CSV.do?\
statisticType=CLICKS_LOG&range=YESTERDAY&eqLong\[CAMPAIGN\]=2001&limit=5000"
Raw-log results are cached per query on the server. A report whose numbers look frozen is usually a cache that has not been invalidated because no new log flush has landed — see Analytics discrepancies.
What the logs keep
The custom parameter and cookie names written to the raw logs behind the Advanced report and the raw event logs are one list per kind:
| Method | Path | Purpose |
|---|---|---|
| GET | /rest-api/analytics-configuration/request-filters.do | The lists, by kind: CUSTOM_PARAMETER (the parameters an ad request carries) and COOKIE_NAME. type narrows it to one kind; omitted answers both. Each carries mode, total and names. Reading needs only an authenticated account |
| POST | /rest-api/analytics-configuration/request-filters/add.do | Add names to one kind: type and names (one or several, comma-separated, each at most 128 characters). A name already on the list is reported under alreadyPresent rather than stored twice, so the call can be repeated. Needs Analytics Configuration |
| POST | /rest-api/analytics-configuration/request-filters/delete.do | Take names off one kind, so a name added by mistake can be undone. A name that is not on the list is reported under notPresent. Needs Analytics Configuration |
Both writes answer the kind’s whole list afterwards, so the change can be confirmed.
The CUSTOM_PARAMETER list decides only while the custom parameter recording policy is LEGACY.
Once a network records custom parameters by the registry — GET /rest-api/custom-parameters.do
answers policy ANY or ONLY_VERIFIED — the list is kept but no longer read, each answer says so
with decidesRecording: false, and recording is set per parameter (recordInAnalytics) and by
POST /rest-api/custom-parameter-policy.do. See
Register the custom parameters your ad tags send.
Corner case: read
modebefore you add anything.INCLUDE, the default, means only these names are logged;EXCLUDEmeans these are the names left out and everything else is logged, so on a network with the Blacklist toggle on, a name you add stops being logged. The toggle is a network preference and is not changed through these endpoints.
Report column layout
The metric columns a report can show are named by short ids (impressions, ctr, fill_rate,
sumGross…). One read tells you which ids you may use:
| Method | Path | Purpose |
|---|---|---|
| GET | /rest-api/analytics/columns.do?statisticType=… | The columns you may use for a report type — id, display name, and the picker group (BASIC, PUBLISHER, ADVERTISER) with its groupName — exactly what the Analytics column picker offers your role. Omit statisticType for the General report. Your API key or the console session. 403 naming the report-type permission when your role cannot run that type |
To get a subset of columns, send useReportsLayoutSettings=true together with the column ids in
reportsLayoutSettings on the report call. The call does not read the layout you saved in the
UI — the ids you send are the whole selection. The same column ids are what saved reports take
in reportsLayoutSettings and dashboard widgets in data.reportsLayoutSettings /
data.choosenMetric.
Corner case: the layout is read-only over the API.
saveReportsLayoutSettingsis accepted but has no effect — writing the layout is only supported from the UI.
Corner case: an id that names no column of the report type for your role — a display name such as
Revenue, a typo, or a retired id — is handled differently per endpoint. The report endpoint (/rest-api/analytics/{format}…) drops it, runs the report and names the dropped ids in theX-Ignored-Report-Columnsresponse header (comma-separated, URL-encoded). Dashboard widgets and saved reports, which store the list, refuse it with400,success:falseand the unknown ids undererrors—reportsLayoutSettingson a saved report,data.reportsLayoutSettings(anddata.choosenMetric) on a widget.
JSON output
A JSON report is an array with one object per row. By default each field is named by the
column’s display name in your interface language — "Impressions" for an English-speaking
user, "Impressionen" for a German one — so the same script reads different keys depending on
whose account runs it.
Several columns share a display name in every language: the Base, Publisher and Advertiser
Impressions, Clicks, CTR, Requests, Fill rate, Conversions, CCR and their
post-click / post-view variants, and Gross and Net, which two column ids each carry. A row may only
carry each name once, so when your role sees more than one of them the last keeps the display
name and each earlier one is named by its column id instead:
[{"impressions":"1820","publisher_impressions":"1700","Impressions":"1650",
"clicks":"40","publisher_clicks":"38","Clicks":"37"}]
Here Impressions is the Advertiser figure — the value a JSON parser read under that name before
release 153, when the three were all sent as Impressions and only the last survived parsing.
For scripts, send jsonKeys=id: every field is then named by its column id (impressions,
publisher_impressions, advertiser_impressions, sumGross, site_name…), the same in every
language and never repeated. The ids are the ones Report column layout
lists. A saved report keeps jsonKeys like any other parameter, and its scheduled JSON e-mail
names its fields the same way.
curl -H "X-Api-Key: $APIKEY" "https://<your-network-domain>/rest-api/analytics/JSON.do?\
range=YESTERDAY&groupBy=SITE&displayIds=true&jsonKeys=id"
Note: CSV, XLSX, PDF and HTML show display names as column headers, and repeat a shared name, as the report page does. A CSV parser that keys rows by header name keeps only one of them — read CSV by column position, or use JSON with
jsonKeys=id.
DSP endpoint traffic and spend
What a demand partner’s endpoint was billed, in the shape invoicing needs — one row per endpoint instead of one per creative:
GET /rest-api/rtb/dsp-analytics/search.do
Your API key in the X-Api-Key header, as on any REST call. The caller needs the DSP Partners
Analytics permission; without it the call is 403 naming RTB_DSP_PARTNERS_ANALYTICS, not an
empty result.
| Parameter | Required | Purpose |
|---|---|---|
from, to | yes | Range in yyyy-MM-dd, both days inclusive. to before from is 400. |
groupBy | no | Comma-separated dimensions: date, dspPartnerName, placementId, countryCode. An unknown name is 400 rather than a silently ignored breakdown. Omit it for a single total row over the range. |
sort | no | Any dimension you grouped by, or requests, bids, wins, impressions, spend. |
dir | no | asc (default) or desc. |
start | no | Row offset, default 0. Negative is 400. |
limit | no | Default 1000, must be between 1 and 10000; outside that is 400. |
Rows carry the dimensions you asked for and always carry the metrics — requests, bids,
wins, impressions, clicks, spend. Dimensions you did not group by are aggregated over
and come back null.
countryCode is null for a second reason too — when the ad request’s country could not be
resolved. Under groupBy=countryCode a null therefore means unknown country, not
aggregated.
curl -G -H "X-Api-Key: $APIKEY" 'https://<your-network-domain>/rest-api/rtb/dsp-analytics/search.do' \
--data-urlencode 'from=2026-08-01' \
--data-urlencode 'to=2026-08-31' \
--data-urlencode 'groupBy=dspPartnerName' \
--data-urlencode 'sort=spend' --data-urlencode 'dir=desc'
spend (the console labels the column Revenue, since on this side of the trade the DSP’s spending is the network’s income) is the gross booked on the delivery that endpoint won, so it matches the Gross a
standard report shows for the partner’s OpenRTB creatives. It follows the partner’s pricing
model — impressions for CPM and CPI, clicks for CPC — which is why both counts come back with
it, and it counts delivery rather than auction wins. See
What Revenue counts.
ecpm comes back beside it: the row’s own spend per thousand of its own impressions, computed
over the row’s totals rather than averaged from the rows underneath, and 0 while nothing has
served. It can be sorted on like any metric (sort=ecpm).
Saved reports
Report templates, their schedules and their recipients are managed under
/rest-api/saved-reports — list and create, read, update
and delete one, add and remove recipients, and set and clear the schedule. The operations,
their parameters and the refusals are described in
Saved and scheduled reports.
Self-serve dashboard analytics
The self-serve advertiser dashboard has a feed of its own,
/rest-api/self-serv/dashboard/… (the Dashboard tag), but it is signed with the account
password and has no API-key form. Request the same figures from the report instead:
one call for the current period and one for the period before it.
Dashboard widget management endpoints are covered in Network services and miscellaneous APIs.
Limits and performance
- Two ceilings apply, both network settings that Epom support changes on request: Daily
requests per user limit (default 100) and
Records per request limit (default 10,000). The daily limit answers
429witherrors["Too Many Requests"]: Daily requests limit reached.; alimitabove the record-count limit answers400witherrors.limitnaming the ceiling. When you hit them, back off and batch — don’t poll per entity. - The daily count is kept per user and starts again at midnight in the network’s time zone
(UTC unless your network has been set to another zone). Your own count and limit are in
GET /rest-api/network/settings.dounderanalyticsApi(dailyRequestLimit,requestsUsedToday,recordsPerRequestLimit); the AI assistant’swhoamicarries the same block and itsanalytics_reportanswer says how many requests are left. - A report the role may not run — a report type, date range, group-by or filter whose
reporting permission it lacks — answers
403naming the permission, e.g.Your role lacks the RPT_GRP_FILTER_CAMPAIGN permission.A group-by the report type does not have is a400undererrors.groupBy, not a403(see Grouping). Other validation errors answer400with the field inerrors, and a failed signature or key401. - One user may have only so many reports running at once on a node (a hundred by default, the
same cap the console applies). A report past it answers
429witherrors["Too Many Requests"]: You already have N reports running…— wait for one to finish rather than retrying in a loop. - A report is counted only once it is known to run: a call refused with
400,401,403or the running-reports429does not spend the daily quota, because the checks happen first. A call that is accepted and then fails on the server (500) has already been counted. - Without
limita report returns up to the records-per-request limit (recordsPerRequestLimitinGET /rest-api/network/settings.do); page withoffset/limitrather than requesting everything. - Reports reflect processed log data, not the live counter — very recent traffic (typically the last minutes) may not appear yet. For discrepancy questions see Analytics discrepancies.