List workflow skills
curl --request GET \
--url https://api.globalwebindex.com/v2/spark-api/skills \
--header 'Authorization: <api-key>'import requests
url = "https://api.globalwebindex.com/v2/spark-api/skills"
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/skills', 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/skills",
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/skills"
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/skills")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/skills")
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{
"skills": [
{
"key": "audience-comparison",
"description": "Read this skill when the user asks to compare audiences or groups, contrast X vs Y, compare an attached audience, or explain similarities and differences."
},
{
"key": "audience-investigation",
"description": "Read this skill when the user asks who to target, what audience to target, which audience is most likely to do or buy something, or how to target advertising, sponsorships, campaigns, or sales opportunities."
},
{
"key": "gwi-dictionary",
"description": "Read this skill when the user asks what a GWI term or metric means, including responses, universe, audience percentage, data point percentage, or index."
},
{
"key": "pitch-generation",
"description": "Read this skill when the user asks for a client pitch, sales meeting, sponsorship pitch, partnership pitch, or an ad-sales story for a named prospect."
},
{
"key": "segment-requests",
"description": "Read this skill when the user asks for segments, segmentations, available segments, audience groups, market groups, or analysis of segment groups around a topic, location, or category."
}
]
}{
"message": "Unauthorized"
}{
"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"
}Skills
List workflow skills
Lists the available workflow skills. Skills refer to operations by name; see Workflow skills in the API description for the endpoint of each name.
GET
/
v2
/
spark-api
/
skills
List workflow skills
curl --request GET \
--url https://api.globalwebindex.com/v2/spark-api/skills \
--header 'Authorization: <api-key>'import requests
url = "https://api.globalwebindex.com/v2/spark-api/skills"
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/skills', 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/skills",
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/skills"
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/skills")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalwebindex.com/v2/spark-api/skills")
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{
"skills": [
{
"key": "audience-comparison",
"description": "Read this skill when the user asks to compare audiences or groups, contrast X vs Y, compare an attached audience, or explain similarities and differences."
},
{
"key": "audience-investigation",
"description": "Read this skill when the user asks who to target, what audience to target, which audience is most likely to do or buy something, or how to target advertising, sponsorships, campaigns, or sales opportunities."
},
{
"key": "gwi-dictionary",
"description": "Read this skill when the user asks what a GWI term or metric means, including responses, universe, audience percentage, data point percentage, or index."
},
{
"key": "pitch-generation",
"description": "Read this skill when the user asks for a client pitch, sales meeting, sponsorship pitch, partnership pitch, or an ad-sales story for a named prospect."
},
{
"key": "segment-requests",
"description": "Read this skill when the user asks for segments, segmentations, available segments, audience groups, market groups, or analysis of segment groups around a topic, location, or category."
}
]
}{
"message": "Unauthorized"
}{
"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"
}Was this page helpful?

