← Open Source
oxylabs

chatgpt-scraper

Easily collect responses from ChatGPT scraper by providing a prompt along with valid Web Scraper API credentials.

MiscJava
Open on GitHub
Momentum
+0stars in 24 hours0.0%
3.37k
Stars
13
Forks
+1
This week
2
Contributors
Created 2025-08-26 · Updated 2026-10-14 · #7978 today
Top developers

oxylabs/chatgpt-scraper is ranked 7,978 with 3,371 stars.

Same-category comparison

oxylabs/chatgpt-scraper is ranked 7,978 among these 8 peers; coreui/coreui-free-vue-admin-template is ranked 7,964.

Same-category comparison
NameRankMetrics
coreui/coreui-free-react-admin-template7,480
Language:
JavaScript
Stars:
4,957
Forks:
2,555
Description:
Free React Admin & Dashboard Template Built for AI-Assisted Development.
keylase/nvidia-patch7,519
Language:
Python
Stars:
4,808
Forks:
378
Description:
This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.
hwchase17/langchain-hub7,960
Language:
Python
Stars:
3,413
Forks:
294
coreui/coreui-free-vue-admin-template7,964
Language:
Vue
Stars:
3,408
Forks:
968
Description:
Free Vue Admin & Dashboard Template Built for AI-Assisted Development.
microsoft/amplifier8,118
Language:
Python
Stars:
3,127
Forks:
260
DanOps-1/Gpt-Agreement-Payment8,753
Language:
Python
Stars:
2,295
Forks:
45
zed-industries/extensions9,233
Language:
JavaScript
Stars:
1,931
Forks:
2,704
Description:
Extensions for the Zed editor.
LottieFiles/lottie-player9,755
Language:
TypeScript
Stars:
1,657
Forks:
184
Description:
Lottie viewer/player as an easy to use web component. https://lottiefiles.com/web-player.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJava
CategoryMisc
Stars3,371
Forks13
Contributors2
Created date2025-08-26
Updated date2026-10-14
Stars in 1 day0
Stars in 7 days1
Rank7,978
Previous rank5,011
Rank change-2,967
7-day stars rank9,193
Previous 7-day stars rank7,700
7-day stars rank change-1,493
Total stars rank4,062
Previous total stars rank4,059
Total stars rank change-3
CountryLithuania
README summary

ChatGPT Scraper The ChatGPT Scraper by Oxylabs allows you to send prompts to ChatGPT and automatically collect both conversational responses and structured metadata. You can use the Web Scraper API with ChatGPT for SEO monitoring, AI response analysis, and brand presence tracking. It provides parsed, ready-to-use JSON output without the need to manage proxies and browsers, or avoid server-side defense systems. How it works You can gather ChatGPT scraper response results by simply providing a prompt and

valid Web Scraper API credentials. Once authenticated, you can make a simple POST request to the API as shown below. TIP] Get a free trial of Oxylabs **Web Scraper API** by registering on the Dashboard. Request sample (Python) You can find code examples for other programming languages **here**. | – | | (mandatory) | Promp to ChatGPT (max 4000 characters). | | | | Specify a country to route the request from. | – | | | Set to for structured JSON results. | – | | | Optional custom browser instructions when rendering JavaScript. | – | Output samples **HTML example

:** This is a structured JSON snippet of the response output: You can find the full output example file in this repository. Alternatively, you can extract the data in the Markdown format for easier data integration workflows involving AI tools. **Note:** The composition of elements may vary depending on whether the query was made from a desktop or mobile device. JSON output structure All LLM targets return the same top-level job and results[] envelope. See the documentation for the full

metadata reference. The following table show ChatGPT-specific fields: **Note:** The number of items and fields for a specific result type may vary depending on the submitted prompt. | string | | | Specific ChatGPT model used for the response (e. | string | | | Plain-text response from ChatGPT. | string | | | ChatGPT response as Markdown. | string | | | Structured JSON representation of the Markdown response. | array | | * | List of response source citations. | array | | * | Search queries used by the model to gather information. | array of strings | | * | List of objects for inline

source link details: and . | array | | * | List of objects containing product details: , , , , , and . | array | | * | Ad details containing , , , , and an object. | array | | * | Object with advertiser , , and . Otherwise, parser failed to extract some or all structured fields. Practical use cases This ChatGPT scraper API opens a wide range of opportunities for developers and data-focused teams. **Building AI training datasets:** Collect diverse, real-world conversational data at scale for training or fine-tuning Large Language Models (LLMs). **SEO & competitor analysis:** Monitor how competitors

' brands and keywords are represented in AI-generated search results. **Brand presence management:** Track your brand mentions and content rankings to optimize your visibility strategies. **Maintenance-free:** Our API handles all the infrastructure, from proxy management to IP rotation and bot traffic management systems. This means you don't need to spend engineering time on maintenance or adapting to website changes. **High success rates:** Built on our industry-leading infrastructure, the API ensures a high degree of reliability and a consistent

data flow for all your scraping tasks. **Advanced features:** The API utilizes Custom Browser Instructions for a headless browser to

Frequently asked questions

How many stars and forks are recorded?

oxylabs/chatgpt-scraper has 3,371 stars and 13 forks.

What is the repository rank?

oxylabs/chatgpt-scraper is ranked 7,978.

What language and category are recorded?

oxylabs/chatgpt-scraper has 3,371 stars, uses Java and belongs to Misc.

Which repository is closest in rank?

oxylabs/chatgpt-scraper is compared with coreui/coreui-free-vue-admin-template, ranked 7,964 with 3,408 stars.

README

ChatGPT Scraper

The ChatGPT Scraper by Oxylabs allows you to send prompts to ChatGPT and automatically collect both conversational responses and structured metadata. You can use the Web Scraper API with ChatGPT for SEO monitoring, AI response analysis, and brand presence tracking. It provides parsed, ready-to-use JSON output without the need to manage proxies and browsers, or avoid server-side defense systems.

How it works

You can gather ChatGPT scraper response results by simply providing a prompt and valid Web Scraper API credentials. Once authenticated, you can make a simple POST request to the API as shown below.

[!TIP] Get a free trial of Oxylabs Web Scraper API by registering on the Dashboard.

Request sample (Python)

import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'chatgpt',
    'prompt': 'best supplements for better sleep',
    'parse': True,
    'geo_location': "United States",
    'callback_url': "https://your-server.com/oxylabs-callback"
}

# Get response.
response = requests.request(
    'POST',
    'https://data.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Print prettified response to stdout.
pprint(response.json())

You can find code examples for other programming languages here.

Request parameters

Parameter Description Default Value
source (mandatory) Sets the scraper target. Use chatgpt. –
prompt (mandatory) Promp to ChatGPT (max 4000 characters). –
search Set to true for web search. false
geo_location Specify a country to route the request from. –
parse Set to true for structured JSON results. false
callback_url URL to your callback endpoint. –
browser_instructions Optional custom browser instructions when rendering JavaScript. More info. –

Output samples

HTML example:

This is a structured JSON snippet of the response output:

{
  "results": [
    {
      "job_id": "7470033199733683201",
      "status_code": 200,
      "url": "https://chatgpt.com/?model=auto",
      "content": {
        "prompt": "best supplements for better sleep",
        "llm_model": "gpt-5-5",
        "response_text": "If you're looking for supplements with the best evidence for improving sleep, I'd rank them roughly like this: 1. Magnesium glycinate Best all-around starting point for many people ...",
        "markdown_text": "If you're looking for supplements with the best evidence for improving sleep, I'd rank them roughly like this:\n\n### 1. Magnesium glycinate\n\n**Best all-around starting point for many people**\n\n* ...",
        "markdown_json": [
          {
            "type": "paragraph",
            "children": [
              {
                "type": "text",
                "raw": "If you're looking for supplements with the best evidence for improving sleep, I'd rank them roughly like this:"
              }
            ]
          },
          {
            "type": "blank_line"
          },
          ...
        ],
        "citations": [
          {
            "title": "Best Sleep Supplements: Evidence-Based Gui | Holistic Health",
            "url": "https://holistic.health/journal/best-sleep-supplements-beyond-melatonin?utm_source=chatgpt.com",
            "text": "Holistic Health",
            "description": "May 26, 2026"
          },
          {
            "title": "Natural Sleep Aids: Which Are the Most Effective?",
            "url": "https://www.sleepfoundation.org/sleep-aids/natural-sleep-aids?utm_source=chatgpt.com",
            "text": "sleepfoundation.org",
            "description": "July 14, 2025 — NATURAL SLEEP AIDS: WHICH ARE THE MOST EFFECTIVE?  Updated July 15, 2025  Written by Lucy Bryan ...",
            "section": "more"
          },
          {
            "title": "Do Magnesium Sleep Drinks Really Work? What the Science Says",
            "url": "https://www.health.com/magnesium-drink-before-bed-11920427?utm_source=chatgpt.com",
            "text": "Health",
            "description": "Magnesium sleep drinks are beverages containing powdered magnesium and often calming ingredients like herbs or amino acids..."
          },
          ...
        ],
        "search_queries": [
          "best supplements for sleep evidence melatonin magnesium valerian 2025"
        ],
        "parse_status_code": 12000
      }
    }
  ]
}

You can find the full output example file in this repository.

Alternatively, you can extract the data in the Markdown format for easier data integration workflows involving AI tools.

Note: The composition of elements may vary depending on whether the query was made from a desktop or mobile device.

JSON output structure

All LLM targets return the same top-level job and results[] envelope. See the documentation for the full metadata reference.

The following table show ChatGPT-specific results[].content fields:

Note: The number of items and fields for a specific result type may vary depending on the submitted prompt.

Key Name Description Type
prompt Submitted prompt to generate result. string
llm_model Specific ChatGPT model used for the response (e.g., gpt-4o). string
response_text Plain-text response from ChatGPT. string
markdown_text ChatGPT response as Markdown. string
markdown_json Structured JSON representation of the Markdown response. Each item contains type and children. array
* citations List of response source citations. Objects contain title, url, text, description, and section. array
* search_queries Search queries used by the model to gather information. array of strings
* links List of objects for inline source link details: url and text. array
* shopping_products List of objects containing product details: price, title, rating, currency, price_str, and thumbnail. array
* ads Ad details containing url, title, image_url, description, and an advertiser_info object. array
* ads.advertiser_info Object with advertiser url, name, and image_url. object
parse_status_code 12000 – successful. Otherwise, parser failed to extract some or all structured fields. integer

* — conditional, returned only when content is in the LLM's response.

Practical use cases

This ChatGPT scraper API opens a wide range of opportunities for developers and data-focused teams.

  1. Building AI training datasets: Collect diverse, real-world conversational data at scale for training or fine-tuning Large Language Models (LLMs).
  2. SEO & competitor analysis: Monitor how competitors' brands and keywords are represented in AI-generated search results.
  3. Brand presence management: Track your brand mentions and content rankings to optimize your visibility strategies.

Why choose Oxylabs?

  • Maintenance-free: Our API handles all the infrastructure, from proxy management to IP rotation and bot traffic management systems. This means you don't need to spend engineering time on maintenance or adapting to website changes.
  • High success rates: Built on our industry-leading infrastructure, the API ensures a high degree of reliability and a consistent data flow for all your scraping tasks.
  • Advanced features: The API utilizes Custom Browser Instructions for a headless browser to emulate real user behavior, automatically handles CAPTCHAs, and offers geo-targeting to retrieve localized responses.

FAQ

Is scraping ChatGPT legal?

The legality of using ChatGPT scrapers depends on the way it is done and the applicable jurisdiction. While Oxylabs provides the infrastructure to collect publicly available or user-submitted data from ChatGPT, it is the responsibility of the user to ensure compliance with OpenAI’s Terms of Service and local regulations.

What’s the ChatGPT prompt size limit?

The maximum prompt length supported by the ChatGPT Scraper is 4,000 symbols. If your use case requires handling longer inputs, consider splitting the text into smaller chunks and sending multiple sequential requests.

Learn more

For a deeper dive into available parameters, advanced integrations, and additional examples, check out the ChatGPT Scraper documentation.

Contact us

If you have questions or need support, reach out to us at support@oxylabs.io, or through live chat, accessible via Oxylabs Dashboard, or join our Discord community. For enterprise-related inquiries, contact your dedicated account manager.

Nearby in the ranking
Similar items