Web Scraping API

Fetch a public HTTP or HTTPS page as HTML, links, Markdown, a summary or images. Optional JavaScript rendering, premium mode, sessions, waits and country targeting are available.

/scrape1 to 35 credits / requestWeb

Request

curl "https://api.fastaf.co/v1/scrape?url=..." \
  -H "Authorization: Bearer YOUR_KEY"

Parameters

NameDescription
urlRequired. Public HTTP or HTTPS target URL
dynamicOptional boolean. Enable JavaScript rendering; defaults to false
js_renderingOptional alias of dynamic; cannot conflict with dynamic
premiumOptional boolean. Enable premium mode
challenge_modeOptional boolean. For pages behind a browser verification check; 10 credits, not combinable with premium, country or dynamic
custom_headersOptional boolean
waitOptional. Wait time from 0 to 35,000 milliseconds; booking.com defaults to dynamic with wait=8000
countryOptional. Country code; priced like premium (10 credits, 25 with dynamic)
session_numberOptional. Session identifier
imageOptional boolean
formatsOptional. html | links | markdown | summary | images; summary adds 10 credits
ai_queryOptional. AI extraction query; adds 10 credits
ai_extract_rulesOptional. AI extraction rules; adds 10 credits
typeOptional. image | pdf | pbf

Response fields

  • html
  • links
  • markdown
  • summary
  • images

Guides

FAQ

Do I pay for failed requests?

No. Failed requests are never charged, and neither is a page that comes back as a verification check, empty, or (on Booking) without its results: the answer is 502 target_blocked with the option to retry with.

Can I scrape Zillow or eBay here?

No: those URLs are refused here at no cost and served as JSON by /v1/zillow and /v1/ebay.

Can I scrape Reddit?

Yes: subreddits, threads with comments, user pages and search are read from Reddit’s public feeds and returned as html or markdown, for 1 credit.

Can I get Markdown instead of HTML?

Yes. Set formats=markdown. The parameter is plural.

How are credits calculated?

A basic request costs 1 credit, dynamic costs 5, premium or country targeting costs 10, and dynamic plus premium or country costs 25. AI extraction (ai_query, ai_extract_rules or formats=summary) adds 10 credits to any of those.