Web Scraping API

Web Scraping API

Convert websites into structured and usable data

Overview

Powerful endpoints to to extract content and data from any websites

Features

Example

In order to scrape a given URL, simply send a

GET
request to the Website Scraping endpoint:

curl -X 'GET' 'https://anyapi.io/api/v1/scrape?url=http%3A%2F%2Fexample.com&apiKey=<YOUR_API_KEY>'

which returns this payload:

{
  "content": "<!DOCTYPE html><html>...</body></html>"
}

or pass a CSS Selector (e.g.

selector=div
) to select a specific element:

curl -X 'GET' 'https://anyapi.io/api/v1/scrape?url=http%3A%2F%2Fexample.com&selector=div&apiKey=<YOUR_API_KEY>'

Endpoints

This API provides the following endpoints:

Check out the Web Scraping API Docs for more details.