Get Public Link
Returns an Audience's Insights's Public Link.
If there is no public link for the insight, it will generate one.
The Insight for this audience must already have been generated.
Getting Started
https://api.statsocial.com/platform/v0/audiences/{audience_id}/insight/public-link
audience_id
- integer, required
Returns an Audience's Insights's Public Link. If there is no public link for the insight, it will generate one with global baseline. The Insight for this audience must already have been generated.
https://api.statsocial.com/platform/v0/audiences/{audience_id}/insight/public-link
audience_id
- integer, required
Create an Audience's Insights's Public Link. If there is a public link for the insight, it will be replaced with a new one. The Insight for this audience must already have been generated.
Header parameters
Authorization
- string, bearer token, required
request body schema
- application/json
Available baselines
usa
, usa_males
, usa_females
, uk
, canada
, france
, germany
, italy
, spain
If no baseline is specified, it defaults to global.
ExpireAt
string false The date at which the public link will expire in format YYYY-MM-DD.
The date at which the public link will expire in format YYYY-MM-DD.
Let's go to example
In this example we will search for an audience with affinities
We create this audience in this example
https://api.statsocial.com/platform/v0/audiences/67454/insight/public-link
Additional public link parameters for POST method
{
"baseline": "global",
"expire_at": "2023-09-15"
}
We will receive a json like this
{
"response": {
"audience_id": 67454,
"insights_hash": "bc8bced5419b6348c4767bbcf62097ed9ee6a018",
"public_link": "https://platform.statsocial.com/public/khZWEQgbuLSvXGUctRfcojNWnCOiCzDogQNcJqhZsBVZgktEsiGwjbytBbNf"
},
"information": {
"version": "0.0.1"
}
}