Skip to main content

Enqueue Export

Enqueues the insight export for generation and returns it's status.

Getting Started

URL REQUEST (POST)
https://api.statsocial.com/platform/v0/audiences/{audience_id}/insight/export

you can choose the baseline that will be exported

Available types: global, global_males, global_females, usa, usa_males, usa_females,UK, Canada, France, Germany, Italy, Spain, or any other insight hash.
If no baseline is specified, it defaults to global.

{
"baseline": "global_females",
}

you can choose between 5 type: xlsx, csv, json, json_legacy, ai

{
"type": "xlsx",
}

you can define callback_url (optional), when export is done you'll receive response like for Get Insight Export request. Callback handler should support POST request.

{
"callback_url": "https://example.com/callback_url",
}

Let's go to example

In this example we will search for an audience with affinities

note

We create this audience in this example

https://api.statsocial.com/platform/v0/audiences/67454/insight/export

With This Payload

{
"baseline": "global_females",
"type": "xlsx",
"callback_url": "https://example.com/callback"
}

We will receive a json like this

{
"response": {
"audience_id": 67454,
"export_status": "running",
"export_hash": "0ebc2715f651fc37979c53f809ffb5e4b28929f3"
},
"information": {
"version": "0.0.1"
}
}