Browser

ChatGPT Scraper API - Answers, Citations, AI Visibility

Try it

Send a prompt to ChatGPT and get the answer it gives as structured JSON - the full Markdown answer, every page it cites with title, publisher and date, the web searches it ran, and the products it recommended. For AI visibility, GEO and brand monitoring. 2 credits per answered prompt.

What it does

Send a prompt to ChatGPT and get back what ChatGPT tells the people asking it: the full answer as Markdown, every page it cites (title, publisher, publish date), the web searches it ran to answer, and the products it recommended. One endpoint, 5 credits per answered prompt; failed prompts are free.

The skill document

ChatGPT answers via Scavio

Send a prompt to ChatGPT and get back what ChatGPT tells the people asking it: the full answer as Markdown, every page it cites (title, publisher, publish date), the web searches it ran to answer, and the products it recommended. One endpoint, 5 credits per answered prompt; failed prompts are free.

When to trigger

Use this skill when the user asks to:

  • See what ChatGPT says or recommends for a question, product category or brand
  • Check whether a brand, product or website is mentioned or cited in ChatGPT's answer
  • Find which pages and publishers ChatGPT cites for a topic (citation / source analysis)
  • Track AI visibility or share of voice in ChatGPT across a list of prompts
  • See what web searches ChatGPT runs to answer a prompt (query fan-out)
  • Compare ChatGPT's answer with Gemini's (use the gemini-scraper-api skill for the other half)

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits, enough for 10 prompts on this endpoint.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

Endpoint

POST https://api.scavio.dev/api/v1/chatgpt/prompt
Authorization: Bearer $SCAVIO_API_KEY

Every answered prompt costs 5 credits. Answers typically take 10-40 seconds: use an HTTP timeout of at least 90 seconds.

Workflow

  1. Send the question the way a buyer would type it as prompt.
  2. Add country when the answer should be localized (2-letter code).
  3. Read data.answer.markdown for the answer, data.sources[] for the pages it cited, data.search_queries[] for the searches it ran and data.shopping[] for the products it recommended.
  4. For visibility tracking, run each prompt several times: answers vary between runs, so report a mention rate, not a single yes or no.

Parameters

ParameterTypeDefaultDescription
promptstringrequiredThe prompt, 1-1024 characters
modelstringautoModel id; auto is the model ChatGPT picks by default
countrystringus2-letter country code the answer is localized for
include_htmlbooleanfalseAlso return the answer as HTML in answer.html

Example

import requests

# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"

response = requests.post(
    "https://api.scavio.dev/api/v1/chatgpt/prompt",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"prompt": "What are the best running shoes for beginners?"},
    timeout=120,
)
data = response.json()["data"]
print(data["answer"]["markdown"][:800])
print("Brooks mentioned:", "Brooks" in data["answer"]["markdown"])
for s in data["sources"]:
    print("cited:", s["source"], s["url"])
print("searched:", data["search_queries"])
print("recommended:", [p["title"] for p in data["shopping"]])

Response

{
  "data": {
    "platform": "chatgpt",
    "prompt": "What are the best running shoes for beginners?",
    "model": "gpt-6",
    "answer": {
      "markdown": "The best running shoes for beginners are usually **comfortable, well-fitting daily trainers**... ## 1\\. Brooks Ghost 18 ..."
    },
    "sources": [
      {
        "url": "https://www.rtings.com/running-shoes/reviews/best/beginners",
        "title": "The 6 Best Running Shoes for Beginners of 2026",
        "snippet": null,
        "source": "RTINGS.com",
        "published_at": "2026-09-18T00:00:00.000Z"
      }
    ],
    "search_queries": [
      "best running shoes for beginners 2026 review Brooks Ghost ASICS Nimbus Saucony Ride Nike Pegasus"
    ],
    "shopping": [
      { "title": "Brooks Ghost 18", "url": null, "price": null, "image_url": null, "merchant": null }
    ]
  },
  "response_time": 28081,
  "credits_used": 5,
  "credits_remaining": 45
}

shopping[] is often title only; url, price and image_url are filled when ChatGPT shows them.

Guardrails

  • Each answered prompt costs 5 credits. Confirm before running large prompt lists.
  • Never fabricate or paraphrase the answer as if it were ChatGPT's words. Quote answer.markdown and surface sources so the user can verify.
  • Answers vary between runs and are never cached. Do not present one run as ChatGPT's fixed opinion.
  • Prompts are limited to 1024 characters.

Failure handling

  • 400 means a missing or too-long prompt, or a malformed country / model - fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 means ChatGPT did not return an answer. Retry once; it is not charged.
  • 503 means answer capacity is busy. Wait for the Retry-After header, then retry; it is not charged.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from scavio-ai

Browse all skills

Pull a Facebook page's profile, posts, reels and photos, one post with its comments, a single reel/video with downloadable URLs, a public group and its posts, an event, and hashtag posts. 11 endpoints, 1 credit each, structured JSON.

by scavio-ai3 installs

Search the Meta Ad Library by keyword or Facebook Page id and walk full cursor pagination through every ad, with creative, run dates, platforms and political spend. 3 endpoints, 1 credit per page.

by scavio-ai3 installs

Search live or SOLD eBay listings, read a listing in full, and look up a seller's profile card as structured JSON. 3 endpoints, 1 credit each. Sold-listing search is the price-research feature eBay itself hides.

by scavio-ai1 installs