Explore datasets
curl --request POST \
--url https://api.globalwebindex.com/v2/spark-api/datasets/explore \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset_codes": [
"ds-core"
],
"length": "short"
}
'import requests
url = "https://api.globalwebindex.com/v2/spark-api/datasets/explore"
payload = {
"dataset_codes": ["ds-core"],
"length": "short"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({dataset_codes: ['ds-core'], length: 'short'})
};
fetch('https://api.globalwebindex.com/v2/spark-api/datasets/explore', 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/datasets/explore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dataset_codes' => [
'ds-core'
],
'length' => 'short'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.globalwebindex.com/v2/spark-api/datasets/explore"
payload := strings.NewReader("{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.globalwebindex.com/v2/spark-api/datasets/explore")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/datasets/explore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}"
response = http.request(request)
puts response.read_body{
"datasets": [
{
"code": "ds-core",
"name": "GWI Core",
"summary": "GWI Core is a comprehensive dataset of digital consumers covering Attitudes & Interests, Demographics, Lifestyle, Segmentations, Starter, Technology & Devices, Online Activities, Social Media, Gaming, Media, Sport & Exercise, Marketing Touchpoints, Purchase Behavior, and Work & Professional Life. It also includes Custom Segmentations, Accenture TCCC Expansion Segments, World Cup 2026 Segmentation, Legacy Data, and Survey Details, with specialized modules spanning brands, sports, AI, finance, entertainment, commerce, and connected technology.",
"url": "https://help.globalwebindex.com/en/collections/11937099-gwi-core",
"is_simulated": false
}
]
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/invalid-request",
"title": "Invalid request",
"status": 400,
"detail": "invalid JSON body: unexpected end of JSON input",
"instance": "/v2/spark-api/audiences/search"
}{
"message": "Unauthorized"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "dataset access denied",
"instance": "/v2/spark-api/global-filters"
}{
"message": "Request Entity Too Large"
}{
"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"
}Datasets
Explore datasets
Returns a short or detailed description for each of up to five dataset codes.
POST
/
v2
/
spark-api
/
datasets
/
explore
Explore datasets
curl --request POST \
--url https://api.globalwebindex.com/v2/spark-api/datasets/explore \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset_codes": [
"ds-core"
],
"length": "short"
}
'import requests
url = "https://api.globalwebindex.com/v2/spark-api/datasets/explore"
payload = {
"dataset_codes": ["ds-core"],
"length": "short"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({dataset_codes: ['ds-core'], length: 'short'})
};
fetch('https://api.globalwebindex.com/v2/spark-api/datasets/explore', 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/datasets/explore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dataset_codes' => [
'ds-core'
],
'length' => 'short'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.globalwebindex.com/v2/spark-api/datasets/explore"
payload := strings.NewReader("{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.globalwebindex.com/v2/spark-api/datasets/explore")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/datasets/explore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dataset_codes\": [\n \"ds-core\"\n ],\n \"length\": \"short\"\n}"
response = http.request(request)
puts response.read_body{
"datasets": [
{
"code": "ds-core",
"name": "GWI Core",
"summary": "GWI Core is a comprehensive dataset of digital consumers covering Attitudes & Interests, Demographics, Lifestyle, Segmentations, Starter, Technology & Devices, Online Activities, Social Media, Gaming, Media, Sport & Exercise, Marketing Touchpoints, Purchase Behavior, and Work & Professional Life. It also includes Custom Segmentations, Accenture TCCC Expansion Segments, World Cup 2026 Segmentation, Legacy Data, and Survey Details, with specialized modules spanning brands, sports, AI, finance, entertainment, commerce, and connected technology.",
"url": "https://help.globalwebindex.com/en/collections/11937099-gwi-core",
"is_simulated": false
}
]
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/invalid-request",
"title": "Invalid request",
"status": 400,
"detail": "invalid JSON body: unexpected end of JSON input",
"instance": "/v2/spark-api/audiences/search"
}{
"message": "Unauthorized"
}{
"type": "https://api.globalwebindex.com/docs/spark-api/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "dataset access denied",
"instance": "/v2/spark-api/global-filters"
}{
"message": "Request Entity Too Large"
}{
"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"
}Body
application/json
Was this page helpful?

