GET
/
web
/
scrape
import { Supadata } from '@supadata/js';

const supadata = new Supadata({
apiKey: 'YOUR_API_KEY',
});
const webContent = await supadata.web.scrape('https://example.com');
console.log(webContent);
{
  "url": "https://supadata.ai",
  "content": "# Supadata\n## What is Supadata?\nSupadata is an API platform for data extraction for LLM training.",
  "name": "Supadata: Web & YouTube to text API for developers",
  "description": "Supadata is one stop-shop API for developers to read web and YouTube content, ready for AI training and retrieval.",
  "ogUrl": "https://supadata.ai/opengraph-image.png",
  "countCharacters": 12300,
  "urls": [
    "https://supadata.ai",
    "https://supadata.ai/documentation"
  ]
}

Authorizations

x-api-key
string
header
required

Query Parameters

url
string
required

URL of the webpage

Example:

"https://supadata.ai"

When true, removes markdown links from the content, leaving only the URL text.

lang
string
default:en

Preferred language for the scraped content (ISO 639-1 code). Sets Accept-Language header to influence website language selection.

Example:

"en"

Response

200
application/json

Successfully fetched web page content

The response is of type object.