Raw HTML API

Fetch any URL via proxy

Fetch any URL through our global proxy network and get the raw HTTP response. Perfect for accessing geo-restricted content, bypassing rate limits, and collecting data from websites that block direct requests.

1 CreditCost
60s MaxTimeout
10 MaxRedirects
Raw HTML API

Quick Start

Get started with a simple API call.

const response = await fetch('https://api.crawlkit.sh/v1/crawl/raw', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    url: 'https://example.com',
    options: {
      timeout: 30000,
      followRedirects: true,
      maxRedirects: 5
    }
  })
});

const { data } = await response.json();
console.log(data.body);

Key Features

Everything you need for reliable raw html extraction.

Global Proxy Network

Route requests through residential proxies worldwide. Access content from any location without blocks.

Custom Headers

Send custom HTTP headers with your request. Perfect for authenticated requests and API integrations.

Redirect Handling

Automatically follow redirects or capture them. Configure max redirect depth (0-10) as needed.

Full Response Data

Get response body, headers, status code, and timing information in a single request.

Configurable Timeout

Set custom timeouts from 1ms to 60 seconds. Perfect for handling slow servers.

Credit Refunds

If a request fails, your credits are automatically refunded. Pay only for successful requests.

How It Works

Get started in minutes with our simple API.

1

Get Your API Key

Sign up for free and get your API key instantly. No credit card required.

2

Make Your First Request

Use our simple REST API with your favorite programming language.

3

Get Structured Data

Receive clean JSON responses ready to use in your application.

API Response

Get clean, structured JSON data with every request. Our API returns comprehensive data including status codes, timing information, and your remaining credits.

  • Consistent JSON structure
  • Detailed timing metrics
  • Credit usage tracking
  • Error handling built-in
Response
{
  "success": true,
  "data": {
    "url": "https://example.com",
    "finalUrl": "https://example.com/",
    "statusCode": 200,
    "body": "<!DOCTYPE html>...",
    "headers": {
      "content-type": "text/html",
      "server": "nginx"
    },
    "contentLength": 1256,
    "timing": { "total": 842 },
    "creditsUsed": 1,
    "creditsRemaining": 99
  }
}

Use Cases

Common applications for Raw HTML.

Price Monitoring

Track competitor prices across e-commerce sites without getting blocked.

Content Aggregation

Collect articles, reviews, and listings from multiple sources.

API Integration

Access third-party APIs that require specific IP addresses or headers.

Geo-Testing

Test how your website appears from different geographic locations.

Frequently Asked Questions

Everything you need to know about the Raw HTML API.

No, this API performs a direct HTTP request and returns the raw HTML response. JavaScript rendering support for SPA frameworks (Angular, React, Vue, etc.) is coming soon.

Yes, you can pass custom HTTP headers in the options.headers object. This is useful for authenticated requests, custom user agents, or specific accept headers.

If a request fails for any reason, your credit is automatically refunded. You only pay for successful requests.

By default, we follow up to 5 redirects. You can disable this with followRedirects: false or change the limit with maxRedirects (0-10).

Start Using Raw HTML API Today

Get 100 free credits to test the API. No credit card required.