On this page
The short answer
A web scraping API sits between your code and the website. You call one address with the page you want; the service fetches it, handles what makes fetching hard – JavaScript, retries, timeouts – and gives you the result plus a receipt of what it cost.
The difference to a normal API: the website did not build an interface for you. The scraping API reads the public page the way a visitor's browser does.
What it solves
Fetching one page is easy. Fetching thousands reliably is not: connections time out, many pages only show their content after JavaScript runs, and raw HTML is full of menus and scripts. A web scraping API takes care of the network, the real browser when needed, retries and the conversion to Markdown or JSON.
How a request looks
You send the URL and a few options – for example "format": "markdown" for clean text, "render" for pages that need a browser or "extract" for named fields. The answer contains the content, the status the site sent and the credits it cost.
curl https://api.virginproxy.com/v1/requests \
-H "Authorization: Bearer $VP_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://shop.example/product/42", "format": "markdown"}'What it costs
Most providers sell credits. With VirginProxy one answer up to 1 MB costs 1 credit; a page loaded in a real browser costs 9 more. Plans start at €19 for 25,000 credits for 30 days, and new accounts get 50 credits free to try it. Requests the site never answered cost nothing.
Build it yourself or use an API?
For a handful of pages a simple script is enough. Once you need many pages a day or JavaScript pages, you would have to run browsers, servers and a network and watch it all – the comparison on our build-vs-buy page shows what that means in time and money.
Is it legal?
Reading public pages is generally allowed, but what you collect and how you use it matters: personal data falls under data protection law, some content is protected by copyright, and the site's terms may set limits. Collect only what you need, respect robots.txt where it applies, and ask a lawyer about your specific case.
Last updated: