> ## Documentation Index
> Fetch the complete documentation index at: https://api.globalwebindex.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Exploring Data and Skills

> Optional endpoints for dataset descriptions, survey questions and workflow skills

These endpoints are optional. Use them to check what data exists before you generate insights, or to give an AI assistant the workflow instructions for this API.

## Explore datasets

Returns a `short` or `verbose` description for each of 1–5 dataset codes from `GET /v2/spark-api/datasets`. A dataset that has no description carries `summary_error` instead of `summary`.

```bash Request theme={null}
curl -X POST "https://api.globalwebindex.com/v2/spark-api/datasets/explore" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ "dataset_codes": ["ds-core"], "length": "short" }'
```

```json Response theme={null}
{
  "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
    }
  ]
}
```

## Explore survey questions

Finds the survey questions and attributes that match a topic, to check what data exists before you generate insights. Put only the topic in `prompt`; pass the audience IDs and codes from [Step 2](https://api.globalwebindex.com/docs/spark-api/v2/getting-started/structuring-query.md) to scope the search. `questions_k` (default 5) and `attributes_k` (default 10) set how many results to return.

```bash Request theme={null}
curl -X POST "https://api.globalwebindex.com/v2/spark-api/taxonomy/explore" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ "prompt": "social media usage", "location_codes": ["s2_44"], "wave_codes": ["q1_2025"] }'
```

```json Response theme={null}
{
  "dataset": {
    "code": "ds-core",
    "name": "GWI Core",
    "is_simulated": false
  },
  "audiences": [],
  "questions": [
    {
      "label": "Named Social Media Services Used",
      "description": "How often do you visit or use these services?",
      "is_simulated": false
    },
    {
      "label": "Short video consumption in last month",
      "description": "Short video consumption in last month",
      "is_simulated": false
    },
    {
      "label": "Number of Social Media Services Used",
      "description": "This data is auto-generated based on responses to the Social Media Services Used question",
      "is_simulated": false
    }
  ],
  "attributes": [
    {
      "text": "I am using social media less.",
      "is_simulated": false
    },
    {
      "text": "I use social media when watching TV online.",
      "is_simulated": false
    },
    {
      "text": "I use social media to find content.",
      "is_simulated": false
    },
    {
      "text": "I use social media to see what's trending and being talked about.",
      "is_simulated": false
    }
  ],
  "message": ""
}
```

When nothing matches, `questions` and `attributes` are empty and `error` and `message` explain why.

## Workflow skills

Workflow skills are markdown guides for AI assistants that call this API. They refer to endpoints by operation name, and use the same field names as the requests and responses in the Quickstart.

| Name used in skills | Endpoint |
| :- | :- |
| `list_datasets` | `GET /v2/spark-api/datasets` |
| `explore_datasets` | `POST /v2/spark-api/datasets/explore` |
| `global_filters` | `POST /v2/spark-api/global-filters` |
| `search_audiences` | `POST /v2/spark-api/audiences/search` |
| `audience_generation` | `POST /v2/spark-api/audiences/generate` |
| `join_audiences` | `POST /v2/spark-api/audiences/join` |
| `generate_insights` | `POST /v2/spark-api/insights/generate` |
| `explore_insight` | `GET /v2/spark-api/insights/{id}` |
| `explore_taxonomy` | `POST /v2/spark-api/taxonomy/explore` |
| `list_skills` | `GET /v2/spark-api/skills` |
| `get_skills` | `GET /v2/spark-api/skills/{key}` |

```bash Request theme={null}
curl "https://api.globalwebindex.com/v2/spark-api/skills" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json Response theme={null}
{
  "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."
    }
  ]
}
```

Get the full instructions for one skill by its key:

```bash Request theme={null}
curl "https://api.globalwebindex.com/v2/spark-api/skills/audience-investigation" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json Response theme={null}
{
  "skills": [
    {
      "key": "audience-investigation",
      "content": "# Audience Investigation\n\n## Instructions\n\nUse this skill when the user asks who they should target, what audience they should target to sell or promote something, or which audience is more likely to do a specific behavior.\n\n..."
    }
  ]
}
```

An unknown key returns [`not-found`](https://api.globalwebindex.com/docs/spark-api/problems/not-found).
