ChatGPT

This document provides information about the API and the available POST parameters.

The LLM Scraper enables retrieval of ChatGPT responses- including optional search-enhanced answers and returns a structured JSON output.


API Setup

Endpoint

https://llm-scraper.netnut.io/search

Authentication

Use HTTP Basic Authentication:

Authorization: Basic <base64(username:password)>

Where <base64(username:password)> is the Base64-encoded string of your NetNut credentials.


Request Body Schema

{
  "prompt": "Explain SEO ranking factors in 2025",   // Required
  "country": "us",                                   // Optional
  "web_search": false,                               // Optional, default false
  "follow_up_prompt": "Summarize in 5 bullets",      // Optional
  "engine": "chatgpt"                                // Optional, default: chatgpt
}

Field Descriptions

Field
Description
Parameter Type

prompt

Main prompt sent to ChatGPT. Max length: 4096 chars.

Required

web_search

Enables ChatGPT’s built-in Web Search mode.

Optional (default: false)

country

Target geographic region for contextual responses.

Optional

engine

The chatbot engine to use. Currently only "chatgpt" is supported.

Optional (default: chatgpt)

follow_up_prompt

A second message sent immediately after the first response.

Optional


Example Usage


Response Format

The ChatGPT Scraper always returns structured JSON. No HTML is returned.

Example JSON Response

Last updated