API Documentation

Everything you need to integrate APICALL. Extract web content and generate PDFs with a simple API call.

POSThttps://api.apicall.co/v1/scrape

Scrape URL to Markdown

Auth Required1 credit

Extract clean Markdown content from any webpage. Uses trafilatura for fast extraction with Playwright fallback for JavaScript-heavy sites.

Request Parameters

ParameterTypeDefaultDescription
url*stringThe URL to scrape
render_jsbooleanfalseEnable JavaScript rendering (costs 3 credits)
only_main_contentbooleantrueExtract only the main content
include_linksbooleantrueInclude extracted links in the response

Response Example

200 OK
{
  "status": "success",
  "request_id": "req_abc123",
  "data": {
    "title": "Page Title",
    "markdown": "# Clean Markdown...",
    "metadata": {
      "word_count": 1420
    }
  },
  "credits_used": 1,
  "execution_time_ms": 950
}

Code Examples

curl -X POST https://api.apicall.co/v1/scrape \
  -H "x-api-key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com",
  "only_main_content": true
}'