If you find Scrapely useful, please consider giving our Python SDK a star on GitHub ⭐!
1. Get your API Key
Before you can make any requests, you need an API key.- Go to the Scrapely Dashboard and log in or create an account.
- Navigate to the API Keys section.
- Click Create New Key and copy it to a secure location.
2. Install the SDK
While you can interact with Scrapely using any HTTP client (like cURL or Postman), we highly recommend using our official Python SDK for the best developer experience. It provides typed responses, built-in polling, and automatic error handling. Install the package via pip:3. Make your first request
Now let’s write a simple script to scrape a website. Create a new file calledscrape.py and add the following code. Replace "YOUR_API_KEY" with the key you generated in step 1.
https://example.com printed to your terminal. Behind the scenes, Scrapely spun up a headless browser, bypassed any necessary anti-bot protections, rendered the JavaScript, and returned the clean HTML.
Next Steps
Now that you’ve made your first request, explore what else Scrapely can do:Browser Instructions
Learn how to click buttons, type in forms, and scroll before extracting data.
Solve CAPTCHAs
Bypass reCAPTCHA and Cloudflare Turnstile easily.

