general

REST API

A web service that exposes data and actions through standard HTTP methods and resource-oriented URLs, returning structured JSON responses.

A REST (Representational State Transfer) API is a web service that follows a set of architectural constraints: it uses standard HTTP methods (GET, POST, PUT, PATCH, DELETE) to perform operations on resources identified by URLs, is stateless (each request contains all information needed to complete it), and returns structured data — typically JSON.

REST APIs are the dominant integration pattern for web services because every HTTP client — every programming language, browser, and platform — can call them without additional libraries. The combination of standard methods and JSON responses makes REST APIs predictable, testable, and cacheable.

AlterLab's scraping service is a REST API: POST a JSON request with a URL and options, receive a JSON response with the extracted content, status, and metadata. Authentication uses API key headers rather than OAuth for simplicity. All endpoints are versioned (`/v1/`) to allow non-breaking evolution of the API surface.

What is REST API?

A web service that exposes data and actions through standard HTTP methods and resource-oriented URLs, returning structured JSON responses.

How does AlterLab handle REST API?

AlterLab's scraping service is a REST API: POST a JSON request with a URL and options, receive a JSON response with the extracted content, status, and metadata. Authentication uses API key headers rather than OAuth for simplicity. All endpoints are versioned (`/v1/`) to allow non-breaking evolution of the API surface.

Examples

# Basic REST API call
curl -X POST https://api.alterlab.io/v1/scrape \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_live_..." \
  -d '{"url": "https://example.com"}'

Related Terms

Extract REST API data from any website

AlterLab returns clean, structured data from any public URL — no scraper infrastructure needed. Start free, no credit card required.

View API docs

Your first scrape.
Sixty seconds.

$1 free credit — up to 5,000 scrapes. No credit card.Just a POST request.

terminal
curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'

No credit card required · $1 free credit, up to 5,000 scrapes · Balance never expires