Get insight details
curl --request GET \
--url https://api.globalwebindex.com/v2/spark-api/insights/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.globalwebindex.com/v2/spark-api/insights/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.globalwebindex.com/v2/spark-api/insights/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.globalwebindex.com/v2/spark-api/insights/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.globalwebindex.com/v2/spark-api/insights/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.globalwebindex.com/v2/spark-api/insights/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/insights/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "381d7b8b-d657-47c6-983f-8e64f7b2847e",
"title": "GWI Insight",
"text": "16% of Gen Z car owners and future purchasers say an electric vehicle enhances their style and status, making them 167% more likely to cite this advantage than the average car owner or future purchaser.",
"is_simulated": false,
"metadata": {
"timeframe_groups": [
{
"group": "2025 (Q1)",
"details": {
"description": "2025 (Q1)",
"timeframes": [
{
"id": "q1_2025",
"name": "Q1 2025"
}
]
}
}
],
"audiences": [
{
"id": "259f6394-436c-4801-b83b-bbc926e8b4b9",
"title": "Generation: Gen Z",
"description": "This audience consists of individuals who are part of Gen Z.",
"is_simulated": false
}
],
"location_groups": [
{
"group": "Europe",
"details": {
"description": "Europe",
"locations": [
{
"id": "s2_44",
"name": "UK"
}
]
}
}
],
"datasets": [
{
"id": "ds-core",
"title": "GWI Core",
"description": "Our primary data set on the attitudes and behaviors of digital consumers",
"url": "https://help.globalwebindex.com/en/collections/11937099-gwi-core",
"is_simulated": false
},
{
"id": "ds-gwi-automotive",
"title": "GWI Automotive",
"description": "Our data set focused on car attitudes, influences and the car purchase journey, among car owners and future purchasers.",
"url": "https://help.globalwebindex.com/en/articles/10725979-understanding-gwi-automotive",
"is_simulated": false
}
],
"attributes": [
{
"question": "What do you think are the main advantages of owning an electric vehicle? Please select up to three options that most apply",
"answer": "I believe that owning an electric vehicle is advantageous because it is more environmentally-friendly.",
"percentage": 45,
"sample": 96,
"universe_size": 3589066,
"index": 110.5,
"is_simulated": false
},
{
"question": "What do you think are the main advantages of owning an electric vehicle? Please select up to three options that most apply",
"answer": "I believe owning an electric vehicle enhances my style and status.",
"percentage": 15.800000190734863,
"sample": 28,
"universe_size": 1261097,
"index": 266.6000061035156,
"is_simulated": false
}
]
}
}{
"message": "Unauthorized"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/not-found",
"title": "Resource not found",
"status": 404,
"detail": "insight not found",
"instance": "/v2/spark-api/insights/32c56b1d-3b42-4b68-a356-ab71360f6a0e"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/invalid-params",
"title": "Invalid parameters",
"status": 422,
"detail": "could not validate input: prompt should be a non empty string",
"instance": "/v2/spark-api/global-filters"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/internal",
"title": "Internal server error",
"status": 500,
"detail": "There was an error processing your request. Please try again later.",
"instance": "/v2/spark-api/insights/generate"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/timeout",
"title": "Request timeout",
"status": 504,
"detail": "service is taking longer than usual to respond: please try again in a few moments",
"instance": "/v2/spark-api/insights/generate"
}Insights
Get insight details
Returns an insight with its metadata and the statistics for each answer.
GET
/
v2
/
spark-api
/
insights
/
{id}
Get insight details
curl --request GET \
--url https://api.globalwebindex.com/v2/spark-api/insights/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.globalwebindex.com/v2/spark-api/insights/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.globalwebindex.com/v2/spark-api/insights/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.globalwebindex.com/v2/spark-api/insights/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.globalwebindex.com/v2/spark-api/insights/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.globalwebindex.com/v2/spark-api/insights/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/insights/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "381d7b8b-d657-47c6-983f-8e64f7b2847e",
"title": "GWI Insight",
"text": "16% of Gen Z car owners and future purchasers say an electric vehicle enhances their style and status, making them 167% more likely to cite this advantage than the average car owner or future purchaser.",
"is_simulated": false,
"metadata": {
"timeframe_groups": [
{
"group": "2025 (Q1)",
"details": {
"description": "2025 (Q1)",
"timeframes": [
{
"id": "q1_2025",
"name": "Q1 2025"
}
]
}
}
],
"audiences": [
{
"id": "259f6394-436c-4801-b83b-bbc926e8b4b9",
"title": "Generation: Gen Z",
"description": "This audience consists of individuals who are part of Gen Z.",
"is_simulated": false
}
],
"location_groups": [
{
"group": "Europe",
"details": {
"description": "Europe",
"locations": [
{
"id": "s2_44",
"name": "UK"
}
]
}
}
],
"datasets": [
{
"id": "ds-core",
"title": "GWI Core",
"description": "Our primary data set on the attitudes and behaviors of digital consumers",
"url": "https://help.globalwebindex.com/en/collections/11937099-gwi-core",
"is_simulated": false
},
{
"id": "ds-gwi-automotive",
"title": "GWI Automotive",
"description": "Our data set focused on car attitudes, influences and the car purchase journey, among car owners and future purchasers.",
"url": "https://help.globalwebindex.com/en/articles/10725979-understanding-gwi-automotive",
"is_simulated": false
}
],
"attributes": [
{
"question": "What do you think are the main advantages of owning an electric vehicle? Please select up to three options that most apply",
"answer": "I believe that owning an electric vehicle is advantageous because it is more environmentally-friendly.",
"percentage": 45,
"sample": 96,
"universe_size": 3589066,
"index": 110.5,
"is_simulated": false
},
{
"question": "What do you think are the main advantages of owning an electric vehicle? Please select up to three options that most apply",
"answer": "I believe owning an electric vehicle enhances my style and status.",
"percentage": 15.800000190734863,
"sample": 28,
"universe_size": 1261097,
"index": 266.6000061035156,
"is_simulated": false
}
]
}
}{
"message": "Unauthorized"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/not-found",
"title": "Resource not found",
"status": 404,
"detail": "insight not found",
"instance": "/v2/spark-api/insights/32c56b1d-3b42-4b68-a356-ab71360f6a0e"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/invalid-params",
"title": "Invalid parameters",
"status": 422,
"detail": "could not validate input: prompt should be a non empty string",
"instance": "/v2/spark-api/global-filters"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/internal",
"title": "Internal server error",
"status": 500,
"detail": "There was an error processing your request. Please try again later.",
"instance": "/v2/spark-api/insights/generate"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/timeout",
"title": "Request timeout",
"status": 504,
"detail": "service is taking longer than usual to respond: please try again in a few moments",
"instance": "/v2/spark-api/insights/generate"
}Path Parameters
Response
Successful response.
Was this page helpful?

