Asynchronous Exports is available on Topsort’s public API.
Use an Advanced API key to call it.
Asynchronous Exports lets you request a custom slice of your advertising
performance data, choosing the dimensions and metrics you need for a time
window, and receive it as a single Parquet file. Exports run in the
background, so a large request never ties up a connection: you ask for the
export, check on it, and download the file once it is ready.
How it works
1
Discover what you can export
List the available datasets to see, for each one, the dimensions and
metrics you can request, the dimensions you can filter on, and the
granularities you can ask for (how rows are grouped in time).
2
Request an export
Choose a dataset, the dimensions to group by, the metrics to include, the
granularity, and a time window of up to 31 days, starting no more than
120 days ago. Topsort validates the request and returns an export ID
right away. Each export counts toward your daily quota.
3
Check its status
The export moves from
pending to running while Topsort builds the
file. Check it every minute or so until it is completed or failed.4
Download the file
A completed export includes a secure download link to its Parquet file.
The link is valid for 1 hour from the moment it is delivered, when you
get the export status. Check the export again to get a new one.
Export lifecycle
Most exports finish in less than an hour. Failed exports are not retried
automatically; request a new export instead.
Choosing the time window
- Days are in your local time: the data is grouped by
day_local, and the window selects those local days. - The window is set by a
startDateand anendDateinYYYY-MM-DDformat, both inclusive. To export the whole of September, start at2026-09-01and end at2026-09-30. To export a single day, send the same date as both. - The end must be on or after the start, and the window can cover up to 31 days, counting both the start and the end.
- The start can be up to 120 days before today (in UTC). Older data cannot be exported; the error tells you the earliest start date you can use.
- If the window includes today, keep in mind that today’s numbers can still be updated later.
Choosing the granularity
granularity is required, so you always decide how rows are grouped in time:
day_local: one row per local day for each combination of the other dimensions. If you leaveday_localout ofdimensions, it is added as the first column of the file.total: one row with the totals for the whole window for each combination of the dimensions. Withdimensionsset tovendor_id, you get one row per vendor.dimensionscannot includeday_local; if it does, the request is rejected.
Choosing vendors
- By default, an export includes every vendor.
- To export only some vendors, send their
vendor_idvalues invendorIds, up to 100 per export.vendor_idis your own vendor ID, the same one you use across the Topsort API.
Choosing entity types
- By default, an export includes every entity type.
- To export only some, send them in
entityTypes:halo-product,product,url, orvendor. They match the values of theentity_typedimension.
Available data
The datasets, dimensions and metrics below are the ones available today. More
may be added over time; the
GET /export-service/datasets endpoint always
returns the current list.Monitoring metrics
The
Dimensions (what each row is grouped by):
monitoring_metrics dataset covers advertising performance by campaign,
placement and device, by local day or in total for the whole window.
Metrics (what each row adds up):
Monetary values are in your currency, reported in the
currency_code
dimension. See the Glossary for metric definitions.Reporting summary
The
reporting_summary dataset covers vendor and campaign performance,
including auctions won, by local day or in total for the whole window. It
accepts every dimension and metric of monitoring_metrics, the same filters
and the same granularities, plus:Auctions won are not tied to a device, page or auction context. If you group
by
device_type, page_id, page_type, page_value, placement_page or an
auction_* dimension, auctions_won lands in rows where those columns are
empty. Leave those dimensions out to get vendor and campaign totals.The export file
- Format: one Parquet file per export.
- Columns: one per requested dimension, then one per requested metric, in the order you asked for them, named exactly as requested. With
day_localgranularity,day_localcomes first if you did not request it. - Types:
day_localis a calendar date (the local day),is_activeis a boolean, other dimensions are text, and every metric is a decimal number. - Rows: one per combination of the requested dimensions that had activity in the window, per local day with
day_localgranularity, or once for the whole window withtotal.
Limits
Why was my request rejected?
A request that breaks an export rule returns
400 with a readable detail
message. A malformed request (422) and a used-up quota (429) return a
stable code you can handle in your integration, a readable message and
details with more context.Frequently Asked Questions
My download link stopped working. Links expire 1 hour after they are
delivered, when you get the export status. Check the export again to get a
new link.
Can I get hourly, weekly or monthly rows? Not yet. You can get one row
per local day (
day_local) or one row for the whole window (total).How do I get one total per vendor or campaign for the whole window? Send
"granularity": "total" and leave day_local out of the dimensions. See
Choosing the granularity.Can I export more than 31 days? Split the period into several exports
within your window limit (31 days by default), keeping your daily quota in
mind.
Can I export data older than 120 days? Not with the default limits: the
start date can be at most 120 days before today, unless your marketplace has
a different limit.
When do my 20 daily exports come back? All at once, at midnight UTC. The
count is per UTC calendar day, not 24 hours after each request.
Can I filter by vendor, entity type or campaign? By vendor and entity
type, yes: send up to 100 vendor IDs in
vendorIds (see Choosing
vendors) and the entity types in entityTypes (see
Choosing entity types). Filtering by campaign is
not available yet; include campaign_id as a dimension and filter the file
after downloading it.Can I get CSV instead of Parquet? Parquet is the only format we support.
For endpoints, request examples and error handling, see the Asynchronous
Exports integration guide.