Fast HTML Fetcher avatar
Fast HTML Fetcher

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Fast HTML Fetcher

Fast HTML Fetcher

From $0.2/1k reqs. Fast HTTP fetcher that returns raw HTML content, HTTP status codes, and response headers for any URL. Supports custom headers, user agent, proxy, redirect control, and SSL bypass. Perfect for web monitoring, content extraction, and API testing.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Rixin Sc

Rixin Sc

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

11 days ago

Last modified

Share

HTTP URL Fetcher

Fetch any webpage and get the complete HTTP response including HTML content, status codes, and response headers. Built for speed and reliability.

What does HTTP URL Fetcher do?

HTTP URL Fetcher is a simple but powerful tool that fetches web pages and returns all the raw data you need:

  • HTML Content: Get the complete page source exactly as the server sends it
  • HTTP Status: Know if requests succeed (200), redirect (3xx), or fail (4xx/5xx)
  • Response Headers: Access all HTTP headers like Content-Type, Cache-Control, Set-Cookie, etc.
  • Redirect Tracking: See both the original URL and final URL after redirects

Features

  • Fetch single or multiple URLs in one run
  • Custom HTTP headers for authentication or special requirements
  • Configurable User-Agent string
  • Follow or ignore HTTP redirects
  • Adjustable timeout and retry settings
  • Apify Proxy support for avoiding blocks
  • SSL certificate validation bypass for testing

Input

FieldTypeRequiredDefaultDescription
urlsarrayYes-List of URLs to fetch
headersobjectNo{}Custom HTTP headers as key-value pairs
userAgentstringNoChrome 144Browser User-Agent string
followRedirectsbooleanNotrueAutomatically follow redirects
timeoutintegerNo10000Request timeout in milliseconds
retriesintegerNo3Number of retry attempts for failed requests
proxyConfigurationobjectNo-Apify Proxy settings
ignoreSslErrorsbooleanNofalseSkip SSL certificate validation

Example Input

{
"urls": [
"https://example.com",
"https://httpbin.org/get"
],
"headers": {
"Accept": "text/html"
},
"followRedirects": true,
"timeout": 10000,
"retries": 3
}

Output

Each fetched URL produces a dataset item with:

FieldDescription
requestedUrlOriginal URL you requested
finalUrlFinal URL after redirects
httpStatusHTTP status code (200, 404, 500, etc.)
httpStatusTextStatus text (OK, Not Found, etc.)
responseHeadersAll response headers as object
htmlContentComplete response body
contentLengthResponse size in bytes
fetchedAtTimestamp of the fetch
errorError message if request failed

Example Output

{
"requestedUrl": "https://example.com",
"finalUrl": "https://example.com/",
"httpStatus": 200,
"httpStatusText": "OK",
"responseHeaders": {
"content-type": "text/html; charset=UTF-8",
"content-length": "1256",
"cache-control": "max-age=604800"
},
"htmlContent": "<!doctype html><html>...</html>",
"contentLength": 1256,
"fetchedAt": "2024-01-15T10:30:00.000Z",
"error": null
}

Pricing

This Actor uses pay-per-event pricing:

EventPriceDescription
URL Fetched$0.0001Charged for each URL fetch attempt
Content Returned$0.0001Charged when response has content

Example costs:

  • 1,000 URLs with content: ~$0.20
  • 10,000 URLs with content: ~$2.00

Use Cases

  • Website Monitoring: Check if pages are up and returning expected status codes
  • Content Extraction: Get raw HTML for parsing with your own tools
  • Header Analysis: Inspect security headers, caching policies, cookies
  • Redirect Mapping: Trace redirect chains from old URLs to new ones
  • API Testing: Fetch API endpoints and inspect responses

Integrations

The Actor integrates with any tool that works with Apify:

  • Apify API: Trigger runs and retrieve results programmatically
  • Webhooks: Get notified when runs complete
  • Integrations: Connect with Zapier, Make, or other automation platforms

FAQ

Q: Can I fetch pages that require JavaScript? A: This Actor fetches raw HTTP responses only. For JavaScript-rendered pages, use a browser-based Actor.

Q: What happens if a URL times out? A: The request is retried according to your retry settings. If all retries fail, an error is recorded in the output.

Q: Does it work with authenticated pages? A: Yes, add your authentication headers (like cookies or Bearer tokens) in the headers input field.

Q: Can I use my own proxy? A: Currently only Apify Proxy is supported. Enable it in the proxy configuration settings.