# Find AI-cited sources with Python

Send a query to the Getspotted API from Python and get back the sources AI engines (ChatGPT, Claude, Perplexity, Gemini) and Google cite for it, per country. Authenticate with Authorization: Bearer gsp\_live\_…

## Call the API

```python
import requests

res = requests.post(
    "https://getspotted.ai/api/v1/search",
    headers={"authorization": "Bearer gsp_live_…"},
    json={"query": "best CRM for B2B SaaS", "country": "US"},
)
print(res.json()["data"]["sources"])
```

Each search costs 10 credits. The response shape is `{ success, data: { sources, hotspots, enginesQueried } }` — every source lists the engines that cited it and its per-engine position.

## Next steps

[API reference Every endpoint and field.](/content/docs/api-reference/index.html) [MCP server Call it from an AI agent instead.](/content/mcp/index.html)

## Other languages

[cURL Quickstart](/content/docs/quickstart/curl/index.html) [JavaScript Quickstart](/content/docs/quickstart/javascript/index.html) [Next.js Quickstart](/content/docs/quickstart/nextjs/index.html) [Go Quickstart](/content/docs/quickstart/go/index.html)
