1. Services
  2. Extract

Web page to markdown API

Send a URL and get the main content back as clean markdown, with its title and language. Add a JSON schema and we fill it from the page.

GET /v1/extract1 creditAbout $0.001

Try it

GET/v1/extract
curl 'https://api.apifor.dev/v1/extract?url=https://en.wikipedia.org/wiki/Tide_table' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "url": "https://en.wikipedia.org/wiki/Tide_table",
    "final_url": "https://en.wikipedia.org/wiki/Tide_table",
    "title": "Tide table",
    "description": "From Wikipedia, the free encyclopedia",
    "language": "en",
    "markdown": "From Wikipedia, the free encyclopedia\n\nTabulated data used for tidal prediction\n\n**Tide tables**, sometimes called **tide charts**, are u...",
    "links": [
      "https://en.wikipedia.org/wiki/Tide_table",
      "https://en.wikipedia.org/wiki/Monterey_Bay_Aquarium"
    ],
    "word_count": 675,
    "rendered": false,
    "fetched_at": "2026-11-28T15:42:50.022Z"
  }
}

A real response from our OpenAPI file, with long lists and strings shortened.

Endpoints and price

EndpointCreditsAbout
GET /v1/extract (3 with render=true)1 credit$0.001
POST /v1/extract (8 with render=true)6 credits$0.006

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

Limits

  • Pages up to 5 MB, 15 seconds to load, 5 redirects.
  • We follow robots.txt for APIForBot. A blocked page returns 403 ROBOTS_DISALLOWED.
  • Repeat calls within an hour come from cache and still cost credits.
  • Public hosts only. Private and internal addresses are blocked.

Questions

Does it work on JavaScript-heavy sites?

Add render=true and we load the page in a browser first. That costs 3 credits instead of 1.

Do you respect robots.txt?

Yes. Extract reads robots.txt as APIForBot and refuses pages it disallows. See apifor.dev/bot for how to block it.

Who owns the content?

The site you request does. We fetch and clean it for you, and you are responsible for how you use it.

Other services