Getting Started
Quick Start
Get started with the crawler.dev API in just a few minutes. This guide will walk you through making your first API call to extract text from a document or webpage.
Prerequisites
Before you begin, make sure you have:
- ✅ A crawler.dev account and API key (Get one here)
- ✅ cURL, Postman, or your preferred HTTP client
- ✅ A document file or webpage URL to test with
Step 1: Get Your API Key
If you haven't already, sign up for an account and grab your API key from your dashboard. It should look like something like this:
Code
Step 2: Extract Text from a File
Let's extract text from a document file. Save this as a cURL command:
Code
Response
Code
Step 3: Extract Text from a URL
You can also extract text directly from web pages:
Code
Response
Code
Code Examples
JavaScript/Node.js
Code
Python
Code
PHP
Code
Testing with Postman
- Create a new POST request to
https://api.crawler.dev/v1/extract/file - Add x-api-key header:
YOUR_API_KEY - Select Body → form-data
- Add a key named
filewith type File - Upload your document and click Send
Supported File Types
Our API supports extracting text from:
| Category | File Types |
|---|---|
| Documents | PDF, DOC, DOCX, RTF, TXT |
| Spreadsheets | XLS, XLSX, CSV |
| Presentations | PPT, PPTX |
| Web Content | Any |
| Other | ODT, ODS, ODP |
Common Response Codes
| Status Code | Meaning | Action |
|---|---|---|
200 | Success | Text extracted successfully |
400 | Bad Request | Check your request format |
401 | Unauthorized | Verify your API key |
413 | Payload Too Large | File size exceeds limit |
422 | Unprocessable Entity | Unsupported file type |
429 | Too Many Requests | Rate limit exceeded |
500 | Server Error | Try again or contact support |
Rate Limits
Be aware of rate limits based on your plan:
- Free: 100 requests/hour
- Starter: 1,000 requests/hour
- Pro: 10,000 requests/hour
Next Steps
Now that you've made your first API call, here's what to explore next:
- Browse the full API reference for all available endpoints
- Check out examples for real-world integration patterns
- Learn about error handling for robust applications
- Explore advanced features like batch processing
Need Help?
- 📖 Full API docs: /api/v1
- 💬 Support: Contact us if you get stuck
- 🎯 Examples: See real-world examples
You're all set! Happy text extracting! 🚀
