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:markdown- Cleaned, readable markdown contenthtml- Cleaned HTML (main content only)rawHtml- Original unprocessed HTMLmetadata- Page metadata (title, description, og tags, etc.)links- Internal and external links found on the pagestats- Processing time statisticscreditsUsed- How many credits this cost (1 for scrape)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.