To use the ZenCrawl API, you need an API key. You can create and manage your API keys in the Dashboard.
Getting your API Key
- Log in to your ZenCrawl Dashboard.
- Navigate to the Settings > Credential section.
- Click Create, then type the name of your Credential(API key).
- Submit the form.
- Copy the key immediately. For security reasons, it may not be shown again.
Keep your API keys secure. Do not share them in publicly accessible areas such as GitHub, client-side code, or front-end applications.
Authenticating Requests
Authenticate your API requests by including your API key in the Authorization header.
Authorization: Bearer <YOUR_API_KEY>
Example Request
curl --request POST \
--url https://api.zencrawl.com/v1/datasuite/fetch \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{"unblocker":false,"proxy":{"type":"none"},"mobile":false,"block_ads":false,"wait_until":"domcontentloaded","timeout_ms":30000,"sync_mode":true,"url":"https://ipapi.co/json/","browser_render":false,"minify_html":true,"base":"api.fetch.request"}'