Revelator Logo API

Data Export

Data Export delivers the streaming data of your organization’s Clients as Apache Parquet files. A new export is created every day. It contains the data Revelator processed since the previous export, from all DSPs, in one standard schema. The endpoint returns the files of one export, each with a download link.


Usage Requirements

  • Data Export must be enabled for your organization. An organization admin can request access from the workspace settings on the Revelator Platform. Revelator reviews the request and enables Data Export. Exports start once it is enabled; earlier data is not backfilled.
  • Organizations only. Use an organization-level access token. Client accounts receive 403 Forbidden. The endpoint takes no organization or Client ID.

An organization has no data of its own, so the export contains the data of its Clients. For the access token, see Getting started. For the account hierarchy, see Organizations & Clients.


How It Works

  1. Call Get Data Export Files with an exportDate. The response lists the files of that export, each with a url and an expiresAt.
  2. Download every file with a plain GET on its url.
  3. If a link expires before you download the file, call the endpoint again. The new links point to the same files.
  4. Repeat for each new export date. Keep track of the export dates you have collected. A 404 for a recent date can mean the export is not ready yet, so check again later.

The request returns links, not data. Downloading the files is a separate step, and it does not go through the Revelator API.


Exports and Files

  • One export per export date. exportDate identifies the daily export. It is not the date of the streams: an export holds everything processed since the previous export, which can include streams from several earlier days.
  • An export can span several files. Large exports are split into parts. seq is the part number, and files are returned in seq order. Download all of them to get the full export.
  • Files are Parquet. Read them with any Parquet-compatible tool.
  • Retention is 180 days. After that, the date returns 404.

rowCount at the top level is the number of rows in the whole export. Each file also has its own rowCount.

Results

ResponseMeaningWhat to do
200 with filesThe export is ready.Download every file in files.
200 with rowCount: 0 and no filesThe export ran, but there was no new data to export.Nothing to download.
404No export is ready for the date. See Errors.Nothing to download.

Late Data

DSPs report some streams after the day they happened. Past exports are never regenerated. A late report is included in the next export, together with that day’s data.

For example, if a DSP’s report is missing on Monday, Monday’s export has no rows from that DSP. When the report arrives, Tuesday’s export includes it along with Tuesday’s data.

As a result, one export can contain several REPORT_DATE values, and rows whose STREAM_DATE is earlier than their REPORT_DATE. Every row carries its STREAM_DATE, so append the rows of each export to your data instead of replacing the data of a date.


Downloading Files

Each url is an HTTPS link that works until its expiresAt, which is 24 hours after the call. Download the file with a plain GET. The link needs no Authorization header.

curl -L -o export-part-01.parquet "URL_FROM_THE_RESPONSE"

Anyone who has a link can download the file until it expires. Treat links like credentials: don’t log them or share them.


File Columns

Each row is a streaming record as a DSP reported it. The schema is fixed: every file has the same columns in the same order, for every organization.

  • Only streams attributable to your Clients’ catalogs are included. Streams under 30 seconds are excluded for all DSPs.
  • Rows keep the grain each DSP reports and are not re-aggregated.
  • Values are not normalized across DSPs. STREAM_SOURCE, SUBSCRIPTION_TYPE, DEVICE_TYPE, OS, GENDER, AGE_GROUP, and ASSET_TYPE keep each DSP’s own vocabulary and spelling.
ColumnTypeDescription
ARTIST_NAMEstringName of the artist.
TRACK_TITLEstringTitle of the track.
ISRCstringISRC of the track.
DSPstringName of the DSP that reported the stream.
ENTERPRISEstringName of your organization.
RELEASE_TITLEstringTitle of the release the track belongs to.
UPCstringUPC of the release.
STREAM_DATEdateDate the stream happened. A report can include streams from earlier days, so it can be earlier than REPORT_DATE.
COUNTRY_CODEstringCountry of the listener.
STREAM_SOURCEstringWhere the stream came from, such as a playlist or the listener’s library. The values are DSP-specific.
PLAYLIST_URIstringIdentifier of the playlist, when the stream came from one.
PLAYLIST_NAMEstringName of the playlist, when the stream came from one.
ASSET_TYPEstringType of the streamed content, such as audio.
LISTENER_IDstringListener identifier supplied by the DSP in masked, hashed, or encrypted form.
PLAY_DURATIONdecimalPlay duration in seconds.
CITYstringListener locality as reported by the DSP. Depending on the DSP, it can be a postal code or a geohash rather than a city name.
REGION_CODEstringRegion of the listener.
GENDERstringGender of the listener.
AGE_GROUPstringAge group or birth year of the listener, as reported by the DSP.
SUBSCRIPTION_TYPEstringSubscription or access type of the listener.
DEVICE_TYPEstringType of device used to listen.
OSstringOperating system of the device.
STREAM_COUNTdecimalNumber of streams the row represents. Sum it for totals: most DSPs report one stream per row, but some report daily totals.
REPORT_DATEdateDate of the DSP report the row comes from, as stated on the report. It is not necessarily the day Revelator received the report.

DSPs don’t report every column. A missing value is null, never a placeholder string. A category that a DSP itself reports as “other” or “unknown” is kept as a value.


Errors

StatusWhen
400exportDate is missing, sent more than once, or not a valid YYYY-MM-DD date.
401The access token is missing, invalid, or expired.
403The account is not an organization, for example a Client account.
404No export is ready for the date. The export has not completed yet, your organization did not have Data Export enabled on that date, or the date is past the 180-day retention.

Get Data Export Files

GET /analytics/v1/data-export/files

Retrieves the export of one export date, with a download link for each of its files. The request returns links only; the files are downloaded separately.

Query Parameters

Parameter Description
exportDate * string (date)

The export date (YYYY-MM-DD). Each export holds the data processed since the previous export. Only one value is accepted.

Example: 2026-11-17

Responses

object
exportDate string (date)
The export date you requested.
dataType string
The kind of data in the export. Currently raw_streaming.
Example: raw_streaming
rowCount integer
Number of rows in the whole export. 0 when there was no new data to export.
availableAt string (date-time)
When the export became ready (UTC).
seq integer
Part number of the file within the export.
sizeBytes integer | null
Size of the file in bytes. Can be null.
rowCount integer | null
Number of rows in this file. Can be null.
url string
Download link of the file. It needs no Authorization header and works until expiresAt. Treat it like a credential.
expiresAt string (date-time)
When the link stops working (UTC), 24 hours after the call. Call the endpoint again for new links.
GET /analytics/v1/data-export/files
curl -X GET "https://platform.revelator.com/analytics/v1/data-export/files?exportDate=2026-11-17" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example response 200
{
"exportDate": "2026-11-17",
"dataType": "raw_streaming",
"rowCount": 1200000,
"availableAt": "2026-11-17T13:55:55.146Z",
"files": [
  {
    "seq": 1,
    "sizeBytes": 52428800,
    "rowCount": 700000,
    "url": "https://<download-host>/.../raw_streaming_01.parquet?<signature>",
    "expiresAt": "2026-11-18T14:10:00Z"
  },
  {
    "seq": 2,
    "sizeBytes": 36700160,
    "rowCount": 500000,
    "url": "https://<download-host>/.../raw_streaming_02.parquet?<signature>",
    "expiresAt": "2026-11-18T14:10:00Z"
  }
]
}