Vai al contenuto principale
POST
/
augment
/
scrape
/api/v1/augment/scrape
curl --request POST \
  --url https://api.venice.ai/api/v1/augment/scrape \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com"
}
'
{
  "url": "https://example.com",
  "content": "<string>",
  "format": "markdown"
}
Questa è un’API sperimentale. Il formato di richiesta e risposta può cambiare senza preavviso.
Invia un URL pubblicamente accessibile nel campo url. L’API restituisce il contenuto della pagina come markdown. Lo scraper prova prima il supporto markdown nativo del sito di destinazione (tramite Cloudflare Markdown for Agents), quindi ripiega su un’estrazione tramite browser headless. Alcuni siti che bloccano l’accesso automatico (ad esempio X/Twitter, Reddit) vengono rifiutati immediatamente con un errore 400. Prezzo: $0,01 per richiesta.

Esempio (cURL)

curl -X POST https://api.venice.ai/api/v1/augment/scrape \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
url
string<uri>
obbligatorio

The URL to scrape

Esempio:

"https://example.com"

Risposta

Successfully scraped the URL

url
string
obbligatorio

The URL that was scraped

Esempio:

"https://example.com"

content
string
obbligatorio

The scraped content in markdown format

format
enum<string>
obbligatorio

The format of the scraped content

Opzioni disponibili:
markdown