Proxy ResolutionPRO
No proxy list to manage. With any API key, the free one included, Microlink can retry blocked page HTML requests through proxy tiers up to residential IPs.
Overview
Automatic for page HTML.
When Microlink detects an antibot block on a page’s HTML, a request with an API key can retry through proxy tiers up to residential IPs. Without a key, it fails with
EPROXYNEEDED. This covers metadata, markdown, text, HTML and extraction. For screenshots and PDFs, set proxy to a country or your own server.- Blocked page HTML requests can escalate through managed proxy tiers
- proxy.location pins the exit to a two-letter country code
- Detects Cloudflare, DataDome, Akamai and similar defenses
- EPROXYNEEDED: a block on page HTML, without an API key
- Automatic for metadata, markdown, text, HTML and extraction
- Screenshots and PDFs: set proxy.location or proxy.url
Parameters
How proxy routing is controlled.
proxystring | object{ location } to pin a country, or { url } for your own proxy. Leave it out for automatic retries on page HTML.proxy.locationstringPin the proxy exit to a two-letter country code.urlstringTarget page reached through the proxy when set.EPROXYNEEDEDerror codeAn antibot block on page HTML, on a request without an API key.ttlstring | numberCache proxied responses so repeat calls skip the proxy.
Examples
Unblock hard targets.
With an API key, blocked page HTML can be retried.
Auto-unblock
import createClient from 'microlink.io'
const microlink = createClient({
apiKey: process.env.MICROLINK_API_KEY
})
const markdown = await microlink.markdown(
'https://hard-target.com/article'
)Use cases