AI Optimization
ChatGPT Scraper
See what ChatGPT says about any topic — scrape AI responses with source references.
POST
$0.05/call/v1/seo/ai/chatgptUsage
const res = await fetch('https://api.yepapi.com/v1/seo/ai/chatgpt', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ keyword: 'best website hosting platforms', location: 'us' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/ai/chatgpt \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "best website hosting platforms", "location": "us"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keyword | string | Yes | Query to send to ChatGPT | — |
location | string | No | Country code | "us" |
Response
{
"ok": true,
"data": {
"keyword": "best website hosting platforms",
"response": "Based on current market analysis, the top website hosting platforms include Vercel for frontend deployments, AWS for enterprise infrastructure...",
"references": [
{
"url": "https://www.g2.com/categories/web-hosting",
"title": "Best Web Hosting Services 2026",
"snippet": "Compare the top web hosting..."
},
{
"url": "https://www.techradar.com/hosting",
"title": "Best Web Hosting 2026",
"snippet": "We tested and reviewed..."
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.keyword | string | The query that was sent to ChatGPT |
data.response | string | The full text response from ChatGPT |
data.references | array | Sources and references cited in the ChatGPT response |
data.references[].url | string | URL of the cited source |
data.references[].title | string | Title of the cited source |
data.references[].snippet | string | Snippet or description of the cited source |
Under the Hood
Scrapes ChatGPT for AI visibility monitoring.