← 开源
oxylabs

chatgpt-scraper

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

MiscJava
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
3.37k
Star
13
Fork
+1
本周
2
贡献者
创建于 2025-08-26 · 更新于 2026-10-14 · 今日第 7978 名
主要开发者

oxylabs/chatgpt-scraper 排名第 7,978,有 3,371 个星标。

同类别比较

oxylabs/chatgpt-scraper 排名第 7,978,此处有 8 个同类条目;coreui/coreui-free-vue-admin-template 排名第 7,964。

同类别比较
名称排名指标
coreui/coreui-free-react-admin-template7,480
语言:
JavaScript
星标数:
4,957
分叉数:
2,555
简介:
Free React Admin & Dashboard Template Built for AI-Assisted Development
keylase/nvidia-patch7,519
语言:
Python
星标数:
4,808
分叉数:
378
简介:
This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.
hwchase17/langchain-hub7,960
语言:
Python
星标数:
3,413
分叉数:
294
coreui/coreui-free-vue-admin-template7,964
语言:
Vue
星标数:
3,408
分叉数:
968
简介:
Free Vue Admin & Dashboard Template Built for AI-Assisted Development
microsoft/amplifier8,118
语言:
Python
星标数:
3,127
分叉数:
260
DanOps-1/Gpt-Agreement-Payment8,753
语言:
Python
星标数:
2,295
分叉数:
45
简介:
ChatGPT Plus/Team/Pro 订阅协议端到端重放工具集 · hCaptcha 视觉求解器 · 反欺诈机制实证研究 / End-to-end protocol replay toolkit for ChatGPT Plus/Team/Pro subscription with from-scratch hCaptcha solver and empirical anti-fraud research
zed-industries/extensions9,233
语言:
JavaScript
星标数:
1,931
分叉数:
2,704
简介:
Extensions for the Zed editor
LottieFiles/lottie-player9,755
语言:
TypeScript
星标数:
1,657
分叉数:
184
简介:
Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
关键参数与规格
关键参数与规格
参数值
语言Java
类别Misc
星标数3,371
分叉数13
贡献者2
创建日期2025-08-26
更新日期2026-10-14
1 天星标数0
7 天星标数1
排名7,978
上次排名5,011
排名变化-2,967
7 天星标排名9,193
上次 7 天星标排名7,700
7 天星标排名变化-1,493
总星标排名4,062
上次总星标排名4,059
总星标排名变化-3
国家Lithuania
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) 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

常见问题

记录了多少星标和分叉?

oxylabs/chatgpt-scraper 有 3,371 个星标和 13 个分叉。

仓库排名是多少?

oxylabs/chatgpt-scraper 排名第 7,978。

记录的语言和类别是什么?

oxylabs/chatgpt-scraper 有 3,371 个星标,语言为 Java,类别为 Misc。

哪个仓库排名最接近?

oxylabs/chatgpt-scraper 与 coreui/coreui-free-vue-admin-template 比较,后者排名第 7,964,有 3,408 个星标。

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.

排名相邻
同类项目