---
title: "Web page scraping"
method: POST
path: "/v1/scrape"
tags: ["API"]
---

# Web page scraping

`POST /v1/scrape`

## Request

- Base URL: `https://api.fastaf.co`
- URL: `https://api.fastaf.co/v1/scrape`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required: FastAF url parameter.
  - `dynamic` boolean: Enable dynamic rendering. Defaults to false.
  - `js_rendering` boolean: Alias for dynamic; it cannot conflict with dynamic.
  - `premium` boolean: FastAF premium parameter.
  - `custom_headers` boolean: FastAF custom_headers parameter.
  - `wait` integer: FastAF wait parameter.
  - `country` string: FastAF country parameter.
  - `session_number` string: FastAF session_number parameter.
  - `image` boolean: FastAF image parameter.
  - `formats` 'html' | 'links' | 'markdown' | 'summary' | 'images': Output format. summary uses AI extraction and adds 10 credits.
  - `ai_query` string: AI extraction; adds 10 credits to the request.
  - `ai_extract_rules` string: AI extraction; adds 10 credits to the request.
  - `type` 'image' | 'pdf' | 'pbf': FastAF type parameter.

## Response `200`

Provider response.

## Other responses

- `400`: Invalid request or parameters.
- `401`: A valid bearer API key is required.
- `402`: The account has insufficient credits.
- `403`: The account is suspended.
- `429`: A rate or concurrency limit was reached.
- `502`: The upstream request failed.
- `503`: The service is temporarily unavailable.
- `504`: The upstream request timed out.

---

[API](https://skmtc.dev/fastaf/apis/fastaf-api.md) · [All operations](https://skmtc.dev/fastaf/apis/fastaf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fastaf/apis/fastaf-api/revisions/5917bde2f4e0?raw)
