YepAPI
AI Optimization

ChatGPT Scraper

See what ChatGPT says about any topic — scrape AI responses with source references.

POST/v1/seo/ai/chatgpt
$0.05/call

Usage

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

ParameterTypeRequiredDescriptionDefault
keywordstringYesQuery to send to ChatGPT
locationstringNoCountry 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

FieldTypeDescription
okbooleanWhether the request succeeded
data.keywordstringThe query that was sent to ChatGPT
data.responsestringThe full text response from ChatGPT
data.referencesarraySources and references cited in the ChatGPT response
data.references[].urlstringURL of the cited source
data.references[].titlestringTitle of the cited source
data.references[].snippetstringSnippet or description of the cited source
Under the Hood

Scrapes ChatGPT for AI visibility monitoring.

On this page