Before You Start
You’ll need:- A CrawlKit account (sign up at the dashboard)
- An API key (create one in the dashboard)
Your API key looks like this:
ck_abc123.... Keep it secret!Step 1: Get Your API Key
- Go to the CrawlKit dashboard
- Navigate to API Keys
- Click Create New Key
- Give it a name (e.g., “My First Key”)
- Copy the key - you’ll only see it once!
Step 2: Make Your First Request
Let’s fetch a simple webpage. Open your terminal and run:ck_your_api_key_here with your actual API key.
Step 3: Understand the Response
You’ll get a JSON response like this:body- The HTML content of the pagestatusCode- HTTP status code (200 = success)timing.total- How long the request took (in milliseconds)creditsUsed- How many credits this cost (always 1)creditsRemaining- Your remaining credits
Try the Other Endpoints
Common Issues
401 Unauthorized
401 Unauthorized
402 Payment Required
402 Payment Required
You’ve run out of credits. Purchase more from the dashboard.
408 Request Timeout
408 Request Timeout
The target website took too long to respond. Try increasing the
timeout option.