Quickstart
Step 3: Retrieve an insight
Getting started
Spark API
- Reference
Quickstart
Step 3: Retrieve an insight
curl -X POST "https://api.globalwebindex.com/v1/spark-api/generic" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "prompt": "What are the most popular social media platforms among eco-conscious millennials in the UK?" }'
{
"message": "Based on your input, here are some interesting Insights:",
"insights": [
"31% of individuals who prioritize helping the environment use Instagram more than once a day.",
"This audience is 39% more likely to use LinkedIn to message friends or family compared to the average person.",
"16% of this environmentally conscious audience use TikTok more than once a day, which is slightly below the average likelihood.",
"This audience is 35% more likely to use LinkedIn to post or share photos or videos compared to the average person.",
"45% of this audience use Facebook or Facebook Messenger to post or share photos or videos."
],
"chat_id": "bad0ca6c-5e53-44ad-960d-1f5e7f294d2a",
"sources": {
"topics": [
"social media platforms"
],
"audiences": [
{
"id": "3f552047-abdd-4c1a-ad96-4f1b52ea2fe0",
"name": "Attitudes: Eco Activists ",
"description": "This audience consists of individuals who prioritize helping the environment, are willing to pay more for eco-friendly products, and have an interest in environmental issues."
}
],
"datasets": [
{
"code": "ds-core",
"name": "GWI Core"
}
],
"locations": [
{
"code": "s2_44",
"name": "UK"
}
],
"waves": [
{
"code": "q1_2024",
"name": "Q1 2024"
},
{
"code": "q2_2024",
"name": "Q2 2024"
},
{
"code": "q3_2024",
"name": "Q3 2024"
},
{
"code": "q4_2024",
"name": "Q4 2024"
}
]
}
}
Let’s retrieve a basic insight to determine the most popular social media platforms among eco-conscious millennials in the UK.
curl -X POST "https://api.globalwebindex.com/v1/spark-api/generic" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "prompt": "What are the most popular social media platforms among eco-conscious millennials in the UK?" }'
{
"message": "Based on your input, here are some interesting Insights:",
"insights": [
"31% of individuals who prioritize helping the environment use Instagram more than once a day.",
"This audience is 39% more likely to use LinkedIn to message friends or family compared to the average person.",
"16% of this environmentally conscious audience use TikTok more than once a day, which is slightly below the average likelihood.",
"This audience is 35% more likely to use LinkedIn to post or share photos or videos compared to the average person.",
"45% of this audience use Facebook or Facebook Messenger to post or share photos or videos."
],
"chat_id": "bad0ca6c-5e53-44ad-960d-1f5e7f294d2a",
"sources": {
"topics": [
"social media platforms"
],
"audiences": [
{
"id": "3f552047-abdd-4c1a-ad96-4f1b52ea2fe0",
"name": "Attitudes: Eco Activists ",
"description": "This audience consists of individuals who prioritize helping the environment, are willing to pay more for eco-friendly products, and have an interest in environmental issues."
}
],
"datasets": [
{
"code": "ds-core",
"name": "GWI Core"
}
],
"locations": [
{
"code": "s2_44",
"name": "UK"
}
],
"waves": [
{
"code": "q1_2024",
"name": "Q1 2024"
},
{
"code": "q2_2024",
"name": "Q2 2024"
},
{
"code": "q3_2024",
"name": "Q3 2024"
},
{
"code": "q4_2024",
"name": "Q4 2024"
}
]
}
}
These insights provide a clear understanding of where eco-conscious millennials in the UK spend their time online and how they engage with different platforms. The data highlights Instagram and Facebook as key platforms for daily usage, while LinkedIn emerges as a unique channel for messaging and professional engagement.
curl -X POST "https://api.globalwebindex.com/v1/spark-api/generic" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "prompt": "What are the most popular social media platforms among eco-conscious millennials in the UK?" }'
{
"message": "Based on your input, here are some interesting Insights:",
"insights": [
"31% of individuals who prioritize helping the environment use Instagram more than once a day.",
"This audience is 39% more likely to use LinkedIn to message friends or family compared to the average person.",
"16% of this environmentally conscious audience use TikTok more than once a day, which is slightly below the average likelihood.",
"This audience is 35% more likely to use LinkedIn to post or share photos or videos compared to the average person.",
"45% of this audience use Facebook or Facebook Messenger to post or share photos or videos."
],
"chat_id": "bad0ca6c-5e53-44ad-960d-1f5e7f294d2a",
"sources": {
"topics": [
"social media platforms"
],
"audiences": [
{
"id": "3f552047-abdd-4c1a-ad96-4f1b52ea2fe0",
"name": "Attitudes: Eco Activists ",
"description": "This audience consists of individuals who prioritize helping the environment, are willing to pay more for eco-friendly products, and have an interest in environmental issues."
}
],
"datasets": [
{
"code": "ds-core",
"name": "GWI Core"
}
],
"locations": [
{
"code": "s2_44",
"name": "UK"
}
],
"waves": [
{
"code": "q1_2024",
"name": "Q1 2024"
},
{
"code": "q2_2024",
"name": "Q2 2024"
},
{
"code": "q3_2024",
"name": "Q3 2024"
},
{
"code": "q4_2024",
"name": "Q4 2024"
}
]
}
}