Complete setup guide for Zenrows Fetch including API key configuration, authentication, and first scraping request.
Zenrows’ Fetch enables fast, efficient, and hassle-free data extraction from web pages by providing versatile scraping modes. Whether you’re new to scraping or already experienced, Zenrows adapts to your needs, making it easy to collect data from the web while overcoming the common challenges posed by modern websites, including CAPTCHAs and anti-bot mechanisms.
Enable Zenrows parameters like blocking unnecessary resources or specifying JavaScript instructions.
Select a programming language (e.g., Python) and a connection mode. For general use, select “cURL” to generate the full API endpoint that works with any HTTP client.
Test the request by clicking “Try It” to execute the request in the browser.
Copy the generated code and integrate it into your Python script.
Zenrows Fetch accommodates different needs through three flexible connection methods:
API Mode: Ideal for quick and easy scraping with all the processing handled by Zenrows. Just pass your API key and URL, and get the data back.
Proxy Mode: For users who want to maintain control over their scraping logic but need Zenrows’ powerful proxy network, this mode allows you to use Zenrows as a proxy. You can integrate it into your existing system, enabling access to residential, datacenter, and rotating proxies to avoid IP bans and anti-bot systems.
SDK: Zenrows offers dedicated SDKs for Python and Node.js to simplify integration for developers. These SDKs abstract many low-level details, like request handling, retries, and response processing, making it easy for both beginners and experienced developers to get started quickly.
Concurrency-Limit: Your maximum concurrent request limit based on your plan
Concurrency-Remaining: Number of additional concurrent requests you can make
X-Request-Cost: The cost of this request
X-Key-Credits-Remaining: The lowest remaining credits across your API key’s credit caps. Sent only for keys with at least one cap
X-Request-Id: Unique identifier for the request, crucial for troubleshooting
Zr-Final-Url: The final URL after any redirects, ensuring you always know the last page accessed.
When contacting support about any issues, always include the X-Request-Id from your response. This identifier allows our team to quickly trace your specific request in our logs.
Your API Key is the gateway to the Zenrows Fetch, functioning as both an authentication tool and an identifier for all your requests. Without it, you won’t be able to access Zenrows’ features or receive any scraped data.You can easily create your API Key by signing up for an account.
The URL you want to scrape must be URL-encoded to prevent issues with special characters like spaces, question marks, and ampersands. Encoding ensures that servers interpret the URL correctly, avoiding common issues like broken requests or misinterpretation of the data.Always double-check your URLs for proper encoding. If you’re using Zenrows SDKs or common HTTP libraries like requests in Python or axios in Node.js, they often handle this for you.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.