# Crawler API
Source: https://docs.crawleo.dev/api-reference/endpoint/crawler
GET https://api.crawleo.dev/crawl
Direct URL crawling API with JavaScript rendering, automatic content extraction, multiple output formats (HTML, Markdown, plain text), and intelligent data cleanup. Ideal for web scraping and content extraction.
## Overview
The Crawler API performs direct crawling of specified URLs with JavaScript rendering support. Ideal for extracting content from single pages or multiple URLs in a single request.
## Endpoint
```
GET https://api.crawleo.dev/crawl
```
## Parameters
### Required Headers
Your Crawleo API key for authentication. (Alternatively, use the `Authorization: Bearer YOUR_API_KEY` header.)
Example: `x-api-key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`
### Required Parameters
URL(s) to crawl. Can be a single URL or comma-separated list.
Example: `https://example.com` or `https://example.com,https://example.org`
### Rendering Options
Enable browser rendering for JavaScript-heavy sites.
* `true` - Browser rendering (10 credits/URL)
* `false` - HTTP request (1 credit/URL)
ISO 3166-1 alpha-2 country code for geolocation (e.g., `us`, `gb`, `de`).
Example: `geolocation=us`
### Output Format Parameters
Return the raw HTML as-is from the page source.
Return cleaned/sanitized HTML with ads, scripts, and tracking removed.
Return plain-text extraction of the page content.
Return markdown conversion (recommended for RAG/LLM applications).
### Screenshot Options
Capture a screenshot of the page. Only available when `render_js=true`.
Capture full-page screenshot vs viewport only.
Screenshots are only available when `render_js=true`. Setting `screenshot=true` without JavaScript rendering will be ignored.
## Example Requests
### Basic Crawl with Markdown Output
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&markdown=true" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://example.com",
"markdown": True
},
headers={"x-api-key": "YOUR_API_KEY"}
)
data = response.json()
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/crawl?urls=https://example.com&markdown=true",
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
```
### Crawl Multiple URLs
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com,https://example.org&markdown=true" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
urls = [
"https://example.com",
"https://example.org"
]
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": ",".join(urls),
"markdown": True
},
headers={"x-api-key": "YOUR_API_KEY"}
)
data = response.json()
```
```javascript JavaScript theme={null}
const urls = [
"https://example.com",
"https://example.org"
].join(",");
const response = await fetch(
`https://api.crawleo.dev/crawl?urls=${encodeURIComponent(urls)}&markdown=true`,
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
```
### Crawl with JavaScript Rendering
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&render_js=true&markdown=true" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://example.com",
"render_js": True,
"markdown": True
},
headers={"x-api-key": "YOUR_API_KEY"}
)
data = response.json()
```
### Crawl with Screenshot and Geolocation
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&render_js=true&screenshot=true&screenshot_full_page=true&geolocation=gb" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://example.com",
"render_js": True,
"screenshot": True,
"screenshot_full_page": True,
"geolocation": "gb"
},
headers={"x-api-key": "YOUR_API_KEY"}
)
data = response.json()
```
### Get Multiple Output Formats
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&raw_html=true&enhanced_html=true&markdown=true&page_text=true" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://example.com",
"raw_html": True,
"enhanced_html": True,
"markdown": True,
"page_text": True
},
headers={"x-api-key": "YOUR_API_KEY"}
)
data = response.json()
```
## Response
A successful response returns crawled content for each URL:
```json theme={null}
{
"results": [
{
"url": "https://example.com",
"status_code": 200,
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"enhanced_html": "..."
}
],
"credits": 1,
"successful_pages": 1
}
```
Array of crawl result objects.
The crawled URL.
HTTP status code of the crawled page.
Full HTML source (if `raw_html=true`).
Cleaned/sanitized HTML (if `enhanced_html=true`).
Markdown content (if `markdown=true`).
Plain-text extraction (if `page_text=true`).
Base64-encoded screenshot (if `screenshot=true`).
Error message if the crawl failed for this URL.
Number of credits consumed by this request. Varies based on rendering:
* HTTP request (render\_js=false): 1 credit per URL
* Browser rendering (render\_js=true): 10 credits per URL
* Failed requests: 0 credits
Number of URLs that were successfully crawled.
## Use Cases
Crawl documentation pages or knowledge bases and convert to Markdown for vector database ingestion.
```python theme={null}
# Example: Crawl docs for RAG
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://docs.example.com/guide,https://docs.example.com/api",
"markdown": True
},
headers={"x-api-key": "YOUR_API_KEY"}
)
for result in response.json()["results"]:
# Add to vector database
vector_db.add(result["markdown"], metadata={"url": result["url"]})
```
Extract clean content from web pages for analysis or processing.
Scrape multiple pages in a single API call with JavaScript rendering support.
Provide AI agents with the ability to read and understand web pages.
## Tips
**For LLM applications**, always use `markdown=true` to get clean, structured content that minimizes token usage. The markdown format is enabled by default.
Ensure you have permission to crawl the target URLs. Respect robots.txt and website terms of service.
# Google Maps API
Source: https://docs.crawleo.dev/api-reference/endpoint/google-maps
GET https://api.crawleo.dev/google-maps
Search for businesses, places, landmarks, and locations on Google Maps. Retrieve structured place data including addresses, ratings, phone numbers, coordinates, and more. Ideal for local search, business discovery, and place lookups.
## Overview
The Google Maps API lets you search for businesses, places, landmarks, and locations on Google Maps and retrieve structured place data. Use it for local search, business discovery, and place lookups.
**When should I use this vs. the Google Search API?** Use the **Google Maps API** when you need structured place data (addresses, ratings, phone numbers, coordinates). Use the [Google Search API](/api-reference/endpoint/google-search) with `type=places` for lighter local results within a general SERP workflow.
## Endpoint
```
GET https://api.crawleo.dev/google-maps
```
**Cost:** 30 credits per request
## Parameters
### Required Headers
Your Crawleo API key for authentication. (Alternatively, use the `Authorization: Bearer YOUR_API_KEY` header.)
Example: `x-api-key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`
### Required Parameters
Search query. Accepts business names, landmarks, addresses, keywords, and category + location queries.
Examples:
* `restaurants in Paris`
* `Eiffel Tower`
* `hotels near Times Square New York`
* `coffee shops Berlin`
### Optional Parameters
Language code for returned text. ISO 639-1 language code that affects localization of place names, categories, and other text fields in the response.
Examples: `en`, `ar`, `fr`, `de`
Location bias in the format `@latitude,longitude,zoomz`. Biases results toward the specified geographic area without strictly limiting them.
| Example | Description |
| ----------------------- | -------------------------------- |
| `@48.8566,2.3522,15z` | Central Paris, street-level zoom |
| `@40.7580,-73.9855,14z` | Times Square, New York |
The zoom level (`z`) ranges from `1z` (world) to `21z` (building). Higher zoom values narrow the geographic bias.
Google Place ID for looking up a specific place directly. When provided, returns data for that exact place.
Example: `ChIJLU7jZClu5kcR4PcOOO6p3I0`
Google numeric business/customer ID for targeting a specific business listing.
Example: `10311848498909477344`
## Parameter Combinations / Behavior
| Combination | Behavior |
| ------------------ | -------------------------------------------------------- |
| `q` only | General Google Maps search for the query term. |
| `q + hl` | Maps search with localized result text. |
| `q + ll` | Maps search biased toward the specified geographic area. |
| `q + ll + hl` | Location-biased search with localized text. |
| `q + placeId` | Direct place lookup; `q` may be used for validation. |
| `q + placeId + hl` | Direct place lookup with localized text. |
| `q + cid` | Direct business lookup by customer ID. |
| `q + cid + hl` | Business lookup by customer ID with localized text. |
## Example Requests
### Basic Search
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/google-maps?q=restaurants+in+Paris&hl=fr" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-maps",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "restaurants in Paris",
"hl": "fr"
}
)
data = response.json()
for place in data["google_maps_results"]:
print(place["title"], place["address"])
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-maps?" + new URLSearchParams({
q: "restaurants in Paris",
hl: "fr",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
console.log(data.google_maps_results);
```
### Location-Biased Search
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/google-maps?q=coffee+shops&ll=%4048.8566%2C2.3522%2C15z&hl=fr" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-maps",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "coffee shops",
"ll": "@48.8566,2.3522,15z",
"hl": "fr"
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-maps?" + new URLSearchParams({
q: "coffee shops",
ll: "@48.8566,2.3522,15z",
hl: "fr",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
console.log(data);
```
### Place ID Lookup
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/google-maps?q=Le+Comptoir&placeId=ChIJLU7jZClu5kcR4PcOOO6p3I0" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-maps",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "Le Comptoir",
"placeId": "ChIJLU7jZClu5kcR4PcOOO6p3I0"
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-maps?" + new URLSearchParams({
q: "Le Comptoir",
placeId: "ChIJLU7jZClu5kcR4PcOOO6p3I0",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
console.log(data);
```
## Response
A successful response returns structured place data:
```json theme={null}
{
"parameters": {
"q": "coffee in Paris",
"num": 10,
"page": 1
},
"google_maps_results": [
{
"position": 1,
"title": "Terres de Café",
"address": "150 Rue Saint-Honoré, 75001 Paris, France",
"rating": 4.7,
"ratingCount": 1213,
"priceLevel": "€1–10",
"type": "Coffee shop",
"types": ["Coffee shop", "Cafe"],
"website": "http://www.terresdecafe.com/",
"phoneNumber": "+33 9 86 51 02 00",
"openingHours": {
"Monday": "8 AM–7 PM",
"Tuesday": "8 AM–7 PM"
},
"thumbnailUrl": "https://lh3.googleusercontent.com/...",
"latitude": 48.8620039,
"longitude": 2.3403462,
"placeId": "ChIJ-UiBUYlv5kcRWrWf7RBf4V4",
"cid": "6836850235635905882"
}
],
"credits": 30
}
```
### Top-Level Response Fields
Echo of the query parameters used for this request.
Array of place result objects.
Ranking position in the results list.
Name of the place or business.
Full street address.
Average user rating (e.g. 4.7).
Total number of user ratings.
Phone number of the business.
Website URL.
Primary business or place category (e.g. "Coffee shop").
All categories associated with the place.
Price range indicator (e.g. "€1–10" or "\$\$").
Google Place ID.
Google business/customer ID.
Latitude coordinate.
Longitude coordinate.
Opening hours keyed by day of week (e.g. `{"Monday": "8 AM–7 PM"}`).
URL of the place thumbnail image.
Number of credits consumed by this request (30 per request).
## Error Responses
| Status Code | Description |
| ----------- | ----------------------------------------------------- |
| `400` | Missing required query parameter `q` |
| `401` | Invalid or missing API key |
| `403` | Inactive account or expired subscription |
| `429` | Credits exhausted or concurrent request limit reached |
| `500` | Internal server error |
## Limits / Notes
* Each request costs **30 credits** regardless of result count.
* Requests are subject to concurrent request limits based on your subscription plan.
* Results depend on Google Maps data availability and query phrasing.
* Localized output varies by `hl` language code.
* `ll` biases results geographically but does not strictly limit them.
# Google Search API
Source: https://docs.crawleo.dev/api-reference/endpoint/google-search
GET https://api.crawleo.dev/google-search
Real-time Google search results with structured SERP data including organic results, knowledge graphs, People Also Ask, news, images, shopping, and more. Ideal for SEO monitoring, lead generation, and competitor research.
## Overview
The Google Search API delivers real-time Google search results powered by Serper. Get structured SERP data including organic results, knowledge graphs, People Also Ask, news, images, shopping, and more.
**Which Search API should I use?** Use the [Bing Search API](/api-reference/endpoint/search) for LLM and RAG pipelines (with auto-crawling and content extraction). Use the **Google Search API** for SEO monitoring, lead generation, competitor research, and structured SERP analysis.
## Endpoint
```
GET https://api.crawleo.dev/google-search
```
**Cost:** 10 credits per request
## Parameters
### Required Headers
Your Crawleo API key for authentication. (Alternatively, use the `Authorization: Bearer YOUR_API_KEY` header.)
Example: `x-api-key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`
### Required Parameters
The search query.
### Optional Parameters
Country for search results. ISO 3166-1 alpha-2 code (e.g. `us`, `gb`, `eg`, `de`, `fr`).
Language for results. IETF language tag (e.g. `en`, `ar`, `fr`, `de`).
Time-based filter for results freshness.
| Value | Meaning |
| ------- | ---------- |
| `qdr:h` | Past hour |
| `qdr:d` | Past day |
| `qdr:w` | Past week |
| `qdr:m` | Past month |
| `qdr:y` | Past year |
Page number of results (1-indexed).
Number of results per page (1–100).
Search type. Controls which vertical of Google results to query.
| Value | Description |
| ---------- | ------------------------------------ |
| `search` | Standard web search |
| `news` | Google News results |
| `images` | Google Images |
| `places` | Google Maps / local business results |
| `shopping` | Google Shopping product listings |
## Example Requests
### Basic Search
```bash cURL theme={null}
curl -G "https://api.crawleo.dev/google-search" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "q=best CRM software" \
-d "gl=us" \
-d "hl=en" \
-d "num=10"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "best CRM software",
"gl": "us",
"hl": "en",
"num": 10
}
)
data = response.json()
results = data["google_search_results"]
for r in results:
print(r["title"], r["link"])
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-search?" + new URLSearchParams({
q: "best CRM software",
gl: "us",
hl: "en",
num: "10",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
console.log(data["google_search_results"]);
```
### News Search
```bash cURL theme={null}
curl -G "https://api.crawleo.dev/google-search" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "q=artificial intelligence" \
-d "type=news" \
-d "tbs=qdr:d" \
-d "num=10"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "artificial intelligence",
"type": "news",
"tbs": "qdr:d",
"num": 10
}
)
data = response.json()
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-search?" + new URLSearchParams({
q: "artificial intelligence",
type: "news",
tbs: "qdr:d",
num: "10",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
```
### Local Business Search
```bash cURL theme={null}
curl -G "https://api.crawleo.dev/google-search" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "q=coffee shops" \
-d "type=places" \
-d "gl=gb"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "coffee shops",
"type": "places",
"gl": "gb"
}
)
data = response.json()
```
### Shopping Search
```bash cURL theme={null}
curl -G "https://api.crawleo.dev/google-search" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "q=wireless headphones" \
-d "type=shopping" \
-d "num=20"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "wireless headphones",
"type": "shopping",
"num": 20
}
)
data = response.json()
```
## Response
A successful response returns structured SERP data:
```json theme={null}
{
"parameters": {
"q": "best CRM software",
"gl": "us",
"hl": "en",
"num": 10,
"page": 1
},
"google_search_results": [
{
"title": "Result Title",
"link": "https://example.com",
"snippet": "Description of the result...",
"position": 1
}
],
"knowledgeGraph": {
"title": "Entity Name",
"type": "Category",
"description": "...",
"attributes": {}
},
"peopleAlsoAsk": [
{
"question": "Related question?",
"snippet": "Answer snippet...",
"link": "https://example.com"
}
],
"relatedSearches": [
{ "query": "related query" }
],
"answerBox": {
"answer": "Direct answer text",
"snippet": "..."
}
}
```
Echo of the query parameters used for this request.
Array of organic search result objects.
Title of the search result.
URL of the search result.
Description snippet from Google.
Ranking position in the SERP.
Google Knowledge Graph data (when available).
Entity name.
Entity category.
Entity description.
Key-value pairs of entity attributes.
"People Also Ask" questions and answers (when available).
Related search query suggestions (when available).
Direct answer box content (when available).
`knowledgeGraph`, `peopleAlsoAsk`, `relatedSearches`, `answerBox`, and other enriched fields are only present when Google returns them for the query.
## MCP Integration
The Google Search API is available as an MCP tool named `google_search`. It works with your existing Crawleo MCP configuration — no extra setup needed.
**Tool name:** `google_search`
**Inputs:** Same parameters as the HTTP API (`q`, `gl`, `hl`, `tbs`, `page`, `num`, `type`)
Already configured Crawleo MCP? The `google_search` tool is automatically available.
## Error Responses
| Status Code | Description |
| ----------- | ------------------------------ |
| `400` | Missing required parameter `q` |
| `401` | Invalid or missing API key |
| `402` | Insufficient credits |
| `429` | Rate limit exceeded |
| `500` | Internal server error |
## Use Cases
Track keyword rankings, featured snippets, and People Also Ask blocks for your target queries. Compare positions over time using the `tbs` time filter.
Use `type=places` to surface local businesses in a target region. Combine with `gl` to geo-target specific markets and extract business names, addresses, and URLs.
Search for competitor brand names or product categories to see what SERP features they own — knowledge graphs, answer boxes, shopping results.
Use `type=news` with `tbs=qdr:d` to get today's news coverage for any topic, brand, or keyword. Ideal for PR monitoring pipelines.
Use `type=shopping` to fetch product listings, prices, and merchant names across Google Shopping results.
Feed real-time search results into LLMs via MCP to ground responses with current information. The `google_search` MCP tool is drop-in compatible with Claude, Cursor, and GitHub Copilot.
Retrieve `peopleAlsoAsk` data to discover content gaps, FAQ opportunities, and audience questions at scale.
# Headful Browser API
Source: https://docs.crawleo.dev/api-reference/endpoint/headful-browser
GET https://api.crawleo.dev/headful-browser
Premium headed browser crawling with advanced anti-bot evasion, SOAX residential proxies, screenshot capture, and multiple output formats. Ideal for scraping Cloudflare, Akamai, and DataDome-protected sites.
## Overview
The Headful Browser API provides high-fidelity crawling using a **real headed browser** running on dedicated GPU hardware with **SOAX residential proxies**. It uses advanced human-like behavior simulation to bypass bot-detection systems including Cloudflare, Akamai, DataDome, and PerimeterX.
**Cost:** 50 credits per URL. Always try the [Crawler API](/api-reference/endpoint/crawler) first — use the Headful Browser API only when standard crawling is blocked. Failed requests cost 0 credits.
## When to Use Headful Browser
Use when a site is protected by Cloudflare, Akamai, DataDome, PerimeterX, or similar bot-detection systems that return CAPTCHA or empty responses to standard crawlers.
For single-page applications that require full browser rendering including deferred JavaScript execution, not just basic JS rendering.
Sites with aggressive fingerprinting (e.g., Amazon, LinkedIn, Instagram) that require a realistic browser fingerprint to return content.
Any time you need a visual screenshot of a page for verification or monitoring purposes.
## Endpoint
```
GET https://api.crawleo.dev/headful-browser
```
**Cost:** 50 credits per URL
## Parameters
### Required Headers
Your Crawleo API key for authentication. Alternatively, use `Authorization: Bearer YOUR_API_KEY`.
Example: `x-api-key: YOUR_API_KEY`
### Required Parameters
One or more URLs to crawl. Accepts a single URL or a comma-separated list.
Examples:
* `urls=https://example.com`
* `urls=https://example.com,https://example.org`
### Optional Parameters
ISO 3166-1 alpha-2 country code for residential proxy geolocation. Routes requests through a proxy server in the specified country.
Supported values: `us`, `gb`, `de`, `fr`, `jp`, `in`, `br`, `ca`, `au`, and more.
Output format for the crawled page content.
| Value | Description | Best For |
| --------------- | ------------------------------ | ------------------------- |
| `markdown` | Structured markdown (default) | LLMs, RAG pipelines |
| `enhanced_html` | Clean HTML without ads/scripts | Processing pipelines |
| `raw_html` | Complete original HTML source | Full content preservation |
| `page_text` | Plain extracted text | Simple text extraction |
Set to `true` to capture a full-page screenshot of the rendered page. Screenshot is returned as a URL.
## Example Requests
### Basic Usage
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/headful-browser?urls=https://example.com&output_format=markdown" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/headful-browser",
params={
"urls": "https://example.com",
"output_format": "markdown"
},
headers={
"x-api-key": "YOUR_API_KEY"
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/headful-browser?urls=https://example.com&output_format=markdown",
{
headers: {
"x-api-key": "YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
```
### With Screenshot & Geo-Routing
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/headful-browser?urls=https://example.com&output_format=markdown&screenshot=true&country=gb" \
-H "x-api-key: YOUR_API_KEY"
```
## Response
A successful response returns an array of results for each URL:
```json theme={null}
{
"status": "success",
"data": [
{
"url": "https://example.com",
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"raw_html": "...",
"enhanced_html": "...",
"page_text": "Example Domain\nThis domain is for use...",
"screenshot": "https://storage.crawleo.dev/screenshots/abc123.png",
"blocked": false
}
],
"credits_used": 50,
"credits_remaining": 49950
}
```
`"success"` on a successful response.
Array of result objects, one per URL.
The crawled URL.Markdown content (if `output_format=markdown`).Raw HTML source (if `output_format=raw_html`).Cleaned HTML (if `output_format=enhanced_html`).Plain text content (if `output_format=page_text`).URL to the captured screenshot image (if `screenshot=true`).Whether the crawl was ultimately blocked. Failed/blocked requests cost 0 credits.
Number of credits consumed by this request (50 per successful URL).
Credits remaining in your monthly allowance after this request.
## MCP Usage
The `headful_browser` tool is available when using Crawleo via MCP. AI assistants automatically use it when standard crawling fails:
```
headful_browser(url="https://protected-site.com", output_format="markdown", country="us")
```
The MCP tool accepts a **single URL** (not a comma-separated list). For multiple pages, call the tool once per URL.
Connect AI assistants like Claude, Cursor, and GitHub Copilot to Crawleo via MCP.
## Error Handling
| HTTP Status | Meaning |
| ----------- | ----------------------------------------------------- |
| `200` | Success — content returned |
| `400` | Invalid parameters (missing `urls`, invalid format) |
| `401` | Invalid or missing API key |
| `429` | Credits exhausted or concurrent request limit reached |
| `500` | Headful browser service unavailable |
If the headful browser service is temporarily unavailable, you will receive a `500` response. No credits are charged for failed requests.
# Bing Search API
Source: https://docs.crawleo.dev/api-reference/endpoint/search
GET https://api.crawleo.dev/search
Bing-powered real-time web search API with auto-crawling, page content extraction, and multiple output formats. Optimized for RAG pipelines, LLM context, and AI agents.
## Overview
The Bing Search API provides real-time web search powered by Bing, with optional automatic crawling and content extraction of search results. It supports granular control over SERP enrichments and multiple output formats (HTML, Markdown, plain text) — making it the ideal choice for **LLM applications, RAG pipelines, and AI agents**.
**Which Search API should I use?** Use the **Bing Search API** for LLM/RAG workflows — it supports auto-crawling and returns page content in Markdown. Use the [Google Search API](/api-reference/endpoint/google-search) for SEO monitoring, lead generation, and structured SERP analysis.
## Endpoint
```
GET https://api.crawleo.dev/search
```
## Parameters
### Required Headers
Your Crawleo API key for authentication. (Alternatively, use the `Authorization: Bearer YOUR_API_KEY` header.)
Example: `x-api-key: YOUR_API_KEY` or `Authorization: Bearer YOUR_API_KEY`
### Required Parameters
The search query string.
### Pagination Parameters
Maximum number of search result pages to fetch. **Each page costs 10 credits.**
### Localization Parameters
Language code for search results (e.g., `en`, `es`, `fr`, `de`).
Country code for search results (e.g., `US`, `GB`, `DE`).
Geographic location for localized results. Use `random` for randomized geolocation.
### Device Simulation
Device type to simulate. Options: `desktop`, `mobile`, `tablet`.
### SERP Enrichment Toggles
Include Copilot AI-generated answers in the SERP results.
Include "People Also Ask" question-and-answer cards in the results.
Include related search queries suggestions.
Include sidebar data (knowledge panels, local results, etc.).
Include direct answer boxes and instant answers.
### Page Content Format Parameters
Return the original HTML source of each result page.
Return clean HTML with ads, scripts, and tracking removed.
Return plain text content extracted from each result page.
Return content as structured Markdown (recommended for RAG/LLM).
### Auto-Crawling
Automatically crawl each search result URL and include page content.
## Example Requests
### Basic Search
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/search?query=machine%20learning&count=10" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "machine learning",
"count": 10
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=machine%20learning&count=10",
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
console.log(data);
```
### Search with Auto-Crawling and Markdown Output
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/search?query=python%20tutorials&count=5&auto_crawling=true&markdown=true" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "python tutorials",
"count": 5,
"auto_crawling": True,
"markdown": True
}
)
data = response.json()
for page in data["pages"].values():
for result in page["search_results"]:
print(result["title"], result["link"])
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=python%20tutorials&count=5&auto_crawling=true&markdown=true",
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
console.log(data);
```
### Full-Featured Search
```bash cURL theme={null}
curl -X GET \
"https://api.crawleo.dev/search?query=Who+is+Elon+Musk%3F&max_pages=1&device=desktop&setLang=en&geolocation=random&enhanced_html=true&raw_html=false&page_text=false&markdown=true&auto_crawling=true&copilot_answer=true&questions_answers=true&related_queries=true&sidebar=true&direct_answer=true" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "Who is Elon Musk?",
"max_pages": 1,
"device": "desktop",
"setLang": "en",
"geolocation": "random",
"enhanced_html": True,
"markdown": True,
"auto_crawling": True,
"copilot_answer": True,
"questions_answers": True,
"related_queries": True,
"sidebar": True,
"direct_answer": True
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const params = new URLSearchParams({
query: "Who is Elon Musk?",
max_pages: "1",
device: "desktop",
setLang: "en",
geolocation: "random",
enhanced_html: "true",
markdown: "true",
auto_crawling: "true",
copilot_answer: "true",
questions_answers: "true",
related_queries: "true",
sidebar: "true",
direct_answer: "true"
});
const response = await fetch(
`https://api.crawleo.dev/search?${params}`,
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
console.log(data);
```
### Localized Search
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/search?query=news&setLang=de&cc=DE&count=10" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "news",
"setLang": "de",
"cc": "DE",
"count": 10
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=news&setLang=de&cc=DE&count=10",
{
headers: { "x-api-key": "YOUR_API_KEY" }
}
);
const data = await response.json();
console.log(data);
```
## Response
A successful response returns search results with optional crawled content:
```json theme={null}
{
"query": "Now in Android",
"pages_fetched": 1,
"pages": {
"1": {
"total_results": "About 41,100 results",
"search_results": [
{
"title": "GitHub - android/nowinandroid: A fully functional Android app built ...",
"link": "https://github.com/android/nowinandroid",
"date": null,
"snippet": "Learn how this app was designed and built in the design case study, architecture learning journey and modularization learning journey.",
"source": "Github"
},
{
"title": "Now in Android | Android Developers",
"link": "https://developer.android.com/series/now-in-android",
"date": "Aug 8, 2025",
"snippet": "Learn about the latest features and best practices of Android development with Now in Android app and podcast.",
"source": "Android Developers"
}
],
"related_queries": [
"latest Android now",
"Android now gg",
"what's new in Android development"
],
"page_content": {
"enhanced_html": "
...",
"page_markdown": "# Search Results\n..."
}
}
},
"credits": 10
}
```
The search query that was executed.
Number of pages fetched from the search engine.
Object containing results keyed by page number (e.g., "1", "2").
Estimated total number of results from the search engine.
Array of search result objects.
Title of the search result.
URL of the search result.
Publication date (if available).
Short description/snippet from the search engine.
Source name or domain of the result.
Array of suggested related search queries (if `related_queries=true`).
Page content (when page content format options are enabled).
Clean HTML with ads/scripts removed (if `enhanced_html=true`).
Markdown formatted content (if `markdown=true`).
Number of credits consumed by this request.
Page content (when page content format options are enabled).
Clean HTML with ads/scripts removed (if `enhanced_html=true`).
Markdown formatted content (if `markdown=true`).
## Important Updates
This endpoint provides granular control over SERP enrichments through five boolean query parameters:
* `copilot_answer` - Control AI-generated answer cards
* `questions_answers` - Control People Also Ask suggestions
* `related_queries` - Control related search queries
* `sidebar` - Control sidebar data and knowledge panels
* `direct_answer` - Control instant answer boxes
Advanced SERP features default to `true`, allowing you to selectively disable them as needed.
**Breaking Change**: `enhanced_html` and `markdown` now default to `false`. To receive page content, explicitly set `enhanced_html=true` and/or `markdown=true` in your request. This makes default responses leaner and more focused on core search results.
## Use Cases
Use `auto_crawling=true` with `markdown=true` to fetch search results and their full content in a single request, formatted for LLM consumption. This is the primary advantage over the Google Search API.
Feed real-time Bing search results with extracted page content directly into LLM agents. The auto-crawling and Markdown output minimize token usage and post-processing.
Combine with localization parameters to gather region-specific information for AI research agents.
Use `enhanced_html=true` to collect clean content from multiple sources without ads and scripts.
Use the SERP enrichment toggles to customize which advanced search features are extracted. For example, set `questions_answers=false` if you only need core results and related queries.
Use the Google Search API for SEO monitoring, lead generation, competitor research, and structured SERP analysis.
# API Introduction
Source: https://docs.crawleo.dev/api-reference/introduction
Complete technical reference for Crawleo's REST API. Learn about base URLs, authentication, error handling, rate limits, and best practices for integration.
## Base URL
All API requests should be made to:
```
https://api.crawleo.dev
```
## Authentication
All endpoints require authentication using your API key. You can provide it in one of two ways:
**Option 1: Authorization Header**
```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```
**Option 2: X-API-Key Header**
```bash theme={null}
x-api-key: YOUR_API_KEY
```
Sign up and subscribe to get your API key.
## Available Endpoints
Crawleo provides four API endpoints:
**GET /search**
Bing-powered web search with auto-crawling and content extraction. Optimized for LLM and RAG pipelines.
**GET /google-search**
Google SERP data with knowledge graphs, news, images, places, and shopping. Ideal for SEO and lead generation.
**GET /crawl**
Direct URL crawling with JavaScript rendering support.
**GET /headful-browser**
Premium headed browser crawling with advanced anti-bot evasion. For sites that block standard crawlers.
**Which Search API should I use?** Use the **Bing Search API** for LLM/RAG workflows — it supports auto-crawling and returns page content in Markdown. Use the **Google Search API** for SEO monitoring, lead generation, and structured SERP analysis.
## Output Formats
Both APIs support multiple output formats optimized for different use cases:
| Format | Crawler Parameter | Description | Best For |
| ----------------- | ------------------------------ | ---------------------------- | ------------------------- |
| **Raw HTML** | `raw_html=true` | Original page source | Full content preservation |
| **Enhanced HTML** | `enhanced_html=true` (default) | Clean HTML (no ads, scripts) | Cleaner processing |
| **Markdown** | `markdown=true` (default) | Structured markdown | RAG pipelines, LLMs |
Use **Markdown** output (enabled by default) for AI/LLM applications to minimize token usage.
## Response Format
All responses are returned as JSON. Successful responses include the requested data, while errors return an error object:
```json theme={null}
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}
```
## HTTP Status Codes
| Code | Description |
| ----- | ----------------------------------------------------- |
| `200` | Success |
| `400` | Bad Request - Invalid parameters |
| `401` | Unauthorized - Invalid or missing API key |
| `403` | Forbidden - Insufficient permissions |
| `429` | Credits exhausted or concurrent request limit reached |
| `500` | Internal Server Error |
## Credits System
API usage is tracked using credits. Each API call deducts credits from your monthly allowance based on your subscription plan.
### Credit Costs by Endpoint
| API Endpoint | Credits Cost |
| --------------------------------- | ------------------------------ |
| **Bing Search API** | 10 credits per page of results |
| **Google Search API** | 10 credits per request |
| **Crawl API** (HTTP request) | 1 credit per URL |
| **Crawl API** (browser rendering) | 10 credits per URL |
### Subscription Plans
| Plan | Credits/Month | Concurrent Requests | Price |
| --------- | ------------- | ------------------- | ----------- |
| Free | 10,000 | 5 | \$0/month |
| Developer | 100,000 | 20 | \$20/month |
| Pro | 1,000,000 | 50 | \$100/month |
| Scale | 2,500,000 | 100 | \$200/month |
View detailed pricing, usage examples, and optimization tips.
## Concurrent Request Limits
Each plan has a maximum number of concurrent requests. If you exceed this limit, you'll receive a `429` response with the message:
```
Concurrent request limit reached ({limit}). Please wait for other requests to finish.
```
## MCP Integration
For AI assistants and IDEs, Crawleo also provides a Model Context Protocol (MCP) endpoint:
```
https://api.crawleo.dev/mcp
```
Learn how to connect AI assistants directly to Crawleo.
# Authentication
Source: https://docs.crawleo.dev/authentication
Learn how to authenticate your Crawleo API requests, manage API keys securely, and handle authentication errors.
## API Key Authentication
All Crawleo API requests require authentication using your API key.
### Getting Your API Key
Sign up at [crawleo.dev/login](https://www.crawleo.dev/login).
Subscribe to a plan at [crawleo.dev/pricing](https://www.crawleo.dev/pricing).
Access your API key from the [dashboard](https://www.crawleo.dev/dashboard).
### Using Your API Key
Include your API key in one of the following headers — both methods are equivalent:
| Method | Header | Format |
| ---------------- | --------------- | --------------------- |
| **Bearer Token** | `Authorization` | `Bearer YOUR_API_KEY` |
| **X-API-Key** | `x-api-key` | `YOUR_API_KEY` |
### Example Requests
```bash cURL (Authorization Header) theme={null}
curl -X GET "https://api.crawleo.dev/search?query=hello" \
-H "Authorization: Bearer YOUR_API_KEY"
```
```bash cURL (x-api-key Header) theme={null}
curl -X GET "https://api.crawleo.dev/search?query=hello" \
-H "x-api-key: YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
params={"query": "hello"},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=hello",
{
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
```
## Security Best Practices
Never expose your API key in client-side code or public repositories.
Store your API key in environment variables rather than hardcoding it:
```bash theme={null}
export CRAWLEO_API_KEY="your_api_key_here"
```
```python theme={null}
import os
api_key = os.environ.get("CRAWLEO_API_KEY")
```
```javascript theme={null}
const apiKey = process.env.CRAWLEO_API_KEY;
```
Make API calls from your backend server, not from browser-based JavaScript. Client-side requests would expose your API key to anyone inspecting the page source.
Periodically rotate your API keys, especially if you suspect they may have been compromised. You can regenerate keys from the [dashboard](https://www.crawleo.dev/dashboard).
## Error Responses
When authentication fails, you'll receive one of these error responses:
| Status Code | Description | Cause |
| ----------- | ----------------- | --------------------------------------------- |
| `401` | Unauthorized | Invalid or missing API key |
| `403` | Forbidden | API key doesn't have access to this resource |
| `429` | Too Many Requests | Credits exhausted or concurrent limit reached |
```json theme={null}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key."
}
}
```
Learn about credit costs, plans, and rate limits.
See the full API documentation.
# Output Formats
Source: https://docs.crawleo.dev/concepts/output-formats
Learn about Crawleo's output format options: raw HTML, enhanced HTML, plain text, and Markdown. Choose the best format for your use case with RAG pipelines, LLMs, and AI applications.
## Overview
Crawleo provides multiple output formats optimized for different use cases. Choose the format that best fits your application's needs.
## Available Formats
Original page source with all elements intact.
Clean HTML with ads, scripts, and tracking removed (default).
Extracted text content without HTML markup.
Structured Markdown optimized for LLMs (default).
## Format Details
### Raw HTML
Returns the complete, unmodified HTML source of the page.
**Parameter:** `raw_html=true`
**Best for:**
* Full page preservation
* Custom parsing and extraction
* When you need exact page structure
**Example output:**
```html theme={null}
Example Page
Welcome
Content here...
```
***
### Enhanced HTML
Returns cleaned HTML with ads, tracking scripts, and unnecessary elements removed. **Enabled by default.**
**Parameter:** `enhanced_html=true` (default)
**Best for:**
* Cleaner content processing
* Reduced noise in extraction
* When you want HTML structure without clutter
**Example output:**
```html theme={null}
Welcome
Content here...
```
***
### Plain Text
Returns extracted text content without any HTML markup.
**Parameter:** `page_text=true`
**Best for:**
* Simple text processing
* Search and analysis tasks
* When HTML structure isn't needed
**Example output:**
```
Welcome
Content here...
```
***
### Markdown
Returns content converted to structured Markdown format. **Enabled by default.**
**Parameter:** `markdown=true` (default)
**Best for:**
* RAG pipelines
* LLM consumption
* Vector database ingestion
* Minimal token usage
**Example output:**
```markdown theme={null}
# Welcome
Content here...
## Section Title
More content with [links](https://example.com) and **formatting**.
```
## Format Comparison
| Format | Token Usage | Structure | Noise Level | Best For |
| ------------- | ----------- | --------- | ----------- | ----------------- |
| Raw HTML | High | Full | High | Custom parsing |
| Enhanced HTML | Medium | Partial | Low | Clean extraction |
| Plain Text | Low | None | Low | Simple processing |
| Markdown | Low | Preserved | Minimal | LLM/RAG |
## Recommendations by Use Case
Use **Markdown** format for optimal results:
* Preserves document structure (headers, lists, links)
* Minimal token usage
* Clean content ready for embedding
```python theme={null}
response = requests.get(
"https://api.crawleo.dev/crawl",
params={"urls": url, "markdown": True},
headers={"Authorization": f"Bearer {api_key}"}
)
```
Use **Markdown** or **Plain Text**:
* Markdown if structure matters (enabled by default)
* Plain text for maximum token efficiency
```python theme={null}
# For structured content (default)
params = {"urls": url, "markdown": True}
# For simple text
params = {"urls": url, "page_text": True, "markdown": False}
```
Use **Raw HTML** or **Enhanced HTML**:
* Raw HTML for full control
* Enhanced HTML for cleaner starting point (default)
```python theme={null}
# Get both formats
params = {"urls": url, "raw_html": True, "enhanced_html": True}
```
Use **Plain Text** or **Markdown**:
* Easy to process with NLP tools
* No HTML parsing required
## Multiple Formats
You can request multiple formats in a single request:
```bash theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&raw_html=true&enhanced_html=true&markdown=true&page_text=true" \
-H "Authorization: Bearer YOUR_API_KEY"
```
The response will include all requested formats.
**Pro tip:** Markdown and Enhanced HTML are enabled by default. You only need to explicitly set parameters if you want to disable them or add additional formats.
# Privacy & Data Handling
Source: https://docs.crawleo.dev/concepts/privacy
Understand Crawleo's privacy-first approach. Learn about our zero retention policy, data encryption, compliance with GDPR & CCPA, and commitment to protecting your data and user privacy.
## Our Privacy Commitment
Crawleo is built from the ground up with privacy as a core principle. We believe you should be able to access web data without compromising your privacy or your users' privacy.
We do not persistently store your search queries, target URLs, or retrieved web content.
## What We Don't Do
We never sell, rent, or share your data for advertising or profiling.
We never use your queries or crawled content to train AI models.
We don't maintain logs of what you searched or crawled.
Your data is never shared with third parties for their purposes.
## Data We Process
We only process minimal data necessary for service operation:
| Data Type | Purpose | Retention |
| ------------- | ------------------------ | ------------------------- |
| API Key | Authentication | Until account deletion |
| Credits Usage | Billing & usage tracking | Aggregated monthly |
| Error Logs | Service debugging | Short-term (auto-deleted) |
We do **not** log your search queries, URLs, or the content we crawl for you.
## Technical Implementation
### Stateless Architecture
Crawleo runs on a serverless architecture using Google Cloud Functions:
* **Stateless execution:** Each request is independent
* **No persistent storage:** Content flows through, not stored
* **Automatic scaling:** No data accumulation
* **Ephemeral processing:** Content discarded after response
### Secure Communication
* All API traffic uses **HTTPS encryption**
* API keys transmitted securely
* No plaintext data transmission
## Compliance
Crawleo's privacy-first design is built to be compatible with:
European General Data Protection Regulation
California Consumer Privacy Act
### Your Rights
You have the right to:
* **Access:** Know what data we have about you (minimal account info only)
* **Deletion:** Request deletion of your account and associated data
* **Portability:** Export your account information
* **Objection:** Object to processing (contact support)
## Comparison with Competitors
| Feature | Crawleo | Typical Web APIs |
| ------------------- | ------- | ---------------- |
| Query logging | ❌ No | ✅ Yes |
| Content storage | ❌ No | Often yes |
| AI training on data | ❌ Never | Sometimes |
| Data selling | ❌ Never | Sometimes |
| Usage history | ❌ No | ✅ Yes |
## Responsible Use
While we protect your privacy, we also expect responsible use:
Do not use Crawleo to:
* Scrape personal data without consent
* Violate website terms of service
* Engage in illegal activities
* Circumvent access controls
## Questions?
Read our full privacy policy.
Questions about privacy? Contact us.
# Credits & Pricing
Source: https://docs.crawleo.dev/credits-pricing
Understand Crawleo's credits-based pricing system, API costs per endpoint, subscription plans, and how to optimize your usage.
## Overview
Crawleo uses a **credits-based billing system** that gives you flexibility and predictability in your API usage. Credits are deducted from your monthly allowance based on which API endpoints you use and their configuration.
## Credit Costs
### Bing Search API
Optimized for LLM and RAG pipelines with auto-crawling and content extraction.
| Operation | Credits Cost |
| ---------------------------- | -------------- |
| Search (per page of results) | **10 credits** |
Each page of search results (controlled by `max_pages` parameter) costs 10 credits. For example, searching with `max_pages=3` will cost 30 credits.
### Google Search API
Structured Google SERP data for SEO, lead generation, and competitor research.
| Operation | Credits Cost |
| --------------------- | -------------- |
| Google search request | **10 credits** |
Each Google Search request costs a flat 10 credits regardless of result count. Supports web, news, images, places, and shopping search types.
### Crawl API
| Rendering Mode | Credits Cost |
| ------------------------------------ | ---------------------- |
| HTTP request (`render_js=false`) | **1 credit** per URL |
| Browser rendering (`render_js=true`) | **10 credits** per URL |
Failed requests cost **0 credits**. You only pay for successful responses.
Use browser rendering (`render_js=true`) only for JavaScript-heavy sites that require dynamic content. Default HTTP requests are the most cost-effective.
### Headful Browser API
Premium crawling using a real headed browser with advanced anti-bot evasion, dedicated GPU rendering, and SOAX residential proxies.
| Operation | Credits Cost |
| --------------------------------- | -------------- |
| Headful browser request (per URL) | **50 credits** |
The Headful Browser API is designed for sites protected by Cloudflare, Akamai, DataDome, or other advanced bot-detection systems where the standard Crawl API is insufficient.
At 50 credits per URL, use the Headful Browser API only when necessary. Always try the standard Crawl API (`render_js=false` or `render_js=true`) first. Failed requests cost **0 credits**.
## Subscription Plans
**\$0/month**
* 500 credits/month
* 500 page crawls
* 50 searches
* Email support
* Zero data retention
\*\*$20/month** (or $200/year)
* 100,000 credits/month
* 20 concurrent requests
* Email support
* Zero data retention
\*\*$100/month** (or $1,000/year)
* 1,000,000 credits/month
* 50 concurrent requests
* Email + Dedicated support
* Zero data retention
\*\*$200/month** (or $2,000/year)
* 2,500,000 credits/month
* 100 concurrent requests
* Email + Dedicated support
* Zero data retention
Compare plans and subscribe at crawleo.dev/pricing
## Usage Examples
### Bing Search API Examples
| Use Case | Parameters | Credits Used |
| ------------------- | --------------------------------------- | ------------ |
| Basic search | `query="AI news"` (1 page) | 10 credits |
| Deep search | `query="AI news"&max_pages=5` | 50 credits |
| Multi-page research | `query="machine learning"&max_pages=10` | 100 credits |
### Google Search API Examples
| Use Case | Parameters | Credits Used |
| ---------------- | --------------------------------------- | ------------ |
| Basic search | `q="best CRM software"` | 10 credits |
| News search | `q="AI news"&type=news` | 10 credits |
| Local businesses | `q="coffee shops"&type=places&gl=gb` | 10 credits |
| Shopping | `q="wireless headphones"&type=shopping` | 10 credits |
### Crawl API Examples
| Use Case | Parameters | Credits Used |
| -------------------------- | ---------------------------------------------- | ------------ |
| Single page crawl | `urls=https://example.com` | 1 credit |
| Crawl with JavaScript | `urls=https://example.com&render_js=true` | 10 credits |
| 5 pages, HTTP only | `urls=url1,url2,url3,url4,url5` | 5 credits |
| 5 pages, with JS rendering | `urls=url1,url2,url3,url4,url5&render_js=true` | 50 credits |
### Headful Browser API Examples
| Use Case | Parameters | Credits Used |
| ---------------------- | ------------------------------------------------- | ------------ |
| Crawl a protected site | `urls=https://protected-site.com` | 50 credits |
| With screenshot | `urls=https://protected-site.com&screenshot=true` | 50 credits |
| With country proxy | `urls=https://protected-site.com&country=gb` | 50 credits |
When using Crawleo via MCP (Model Context Protocol), the same credit costs apply:
| MCP Tool | Credits Cost |
| ------------------------------- | ---------------------- |
| `search_web` | 10 credits per page |
| `google_search` | 10 credits per request |
| `google_maps` | 10 credits per request |
| `crawl_web` (HTTP request) | 1 credit per URL |
| `crawl_web` (browser rendering) | 10 credits per URL |
| `headful_browser` | 50 credits per URL |
## Response Fields
Every API response includes credit usage information:
```json theme={null}
{
"success": true,
"data": { ... },
"credits_used": 10,
"credits_remaining": 9990
}
```
Number of credits consumed by this API call.
Your remaining credit balance for the current billing period.
## Monitoring Your Usage
Track your credit usage in the [Crawleo Dashboard](https://www.crawleo.dev/dashboard):
* View current credit balance
* See usage history and trends
* Set up usage alerts
* Monitor API call patterns
## Optimizing Credit Usage
* Start with **HTTP requests** (1 credit) for most static sites
* Use **browser rendering** (10 credits) only for JavaScript-heavy sites
* Test with HTTP first before enabling JavaScript rendering
Only request the number of search pages you need. Each additional page costs 10 credits.
Crawl multiple URLs in a single request when possible to reduce overhead.
Cache crawled content on your side to avoid re-crawling the same URLs.
## Rate Limits
In addition to credits, each plan has concurrent request limits:
| Plan | Concurrent Requests |
| --------- | ------------------- |
| Free | 5 |
| Developer | 20 |
| Pro | 50 |
| Scale | 100 |
If you exceed your concurrent request limit, you'll receive a `429` response:
```json theme={null}
{
"error": {
"code": "CONCURRENT_LIMIT_EXCEEDED",
"message": "Concurrent request limit reached (5). Please wait for other requests to finish."
}
}
```
## Upgrading Your Plan
Need more credits? [Upgrade your plan](https://www.crawleo.dev/pricing) at any time:
* Upgrades take effect immediately
* Unused credits don't roll over
* Pro-rated billing for mid-cycle upgrades
Need a custom plan or have questions? Contact our sales team.
# Introduction to Crawleo
Source: https://docs.crawleo.dev/index
Privacy-first, real-time web search and crawling API for AI applications. Build RAG pipelines, AI agents, and automation workflows with clean, structured data.
## What is Crawleo?
Crawleo is a **privacy-first, real-time web search and crawling API** built specifically for:
* AI developers
* LLM-powered applications
* Retrieval-Augmented Generation (RAG) pipelines
* AI agents and automation workflows
We deliver **clean, AI-ready web data** with **strict privacy guarantees** and **cost-efficient pricing**.
Set up your first API call in under 5 minutes.
## Core Features
LLM-optimized web search with auto-crawling and content extraction. Best for RAG pipelines and AI agents.
Structured Google SERP data with knowledge graphs, news, images, places, and shopping. Best for SEO and lead generation.
Direct URL crawling with JavaScript rendering support.
Premium headed browser with advanced anti-bot evasion. For sites protected by Cloudflare, Akamai, and DataDome.
Native Model Context Protocol support for AI assistants.
## Why Crawleo?
No selling user data, no training models on your data, no persistent storage of your queries or crawled content.
Multiple output formats (HTML, Markdown, plain text) designed for reduced token usage and minimal post-processing.
Live web access, not cached datasets. Get the freshest data available.
Simple APIs, fast setup, predictable subscription-based pricing.
## Integration Options
Direct HTTP integration. Perfect for custom applications, backends, and scripts.
Connect AI assistants directly to Crawleo. Works with Claude, Cursor, GitHub Copilot, and more.
## Quick Links
Complete API documentation
View subscription plans
Examples and integrations
# LangChain Integration
Source: https://docs.crawleo.dev/integrations/langchain
Integrate Crawleo with LangChain to add real-time web search and crawling to your LLM applications. Perfect for building RAG systems, research agents, and AI assistants with live web data.
## Overview
Crawleo provides a dedicated LangChain integration package that makes it easy to use Crawleo's web search and crawling capabilities in your LangChain applications.
## Installation
Install the `langchain-crawleo` package:
```bash theme={null}
pip install langchain-crawleo
```
## Available Tools
The package provides two LangChain tools:
Web search tool powered by Crawleo's Search API.
URL crawling tool powered by Crawleo's Crawler API.
## Quick Start
### Basic Setup
```python theme={null}
from langchain_crawleo import CrawleoSearch, CrawleoCrawler
# Initialize tools with your API key
search_tool = CrawleoSearch(api_key="YOUR_API_KEY")
crawler_tool = CrawleoCrawler(api_key="YOUR_API_KEY")
```
### Using Environment Variables
```python theme={null}
import os
from langchain_crawleo import CrawleoSearch, CrawleoCrawler
# Set environment variable
os.environ["CRAWLEO_API_KEY"] = "YOUR_API_KEY"
# Tools will automatically use the environment variable
search_tool = CrawleoSearch()
crawler_tool = CrawleoCrawler()
```
## CrawleoSearch Tool
Perform web searches using the Search API:
```python theme={null}
from langchain_crawleo import CrawleoSearch
search = CrawleoSearch(api_key="YOUR_API_KEY")
# Basic search
results = search.invoke("latest AI news")
print(results)
# Search with options
results = search.invoke({
"query": "machine learning tutorials",
"count": 5,
"get_page_text_markdown": True
})
```
### Parameters
| Parameter | Type | Description |
| ------------------------ | ---- | ----------------------- |
| `query` | str | Search query (required) |
| `count` | int | Number of results |
| `get_page_text_markdown` | bool | Return Markdown content |
| `auto_crawling` | bool | Crawl result pages |
## CrawleoCrawler Tool
Crawl specific URLs:
```python theme={null}
from langchain_crawleo import CrawleoCrawler
crawler = CrawleoCrawler(api_key="YOUR_API_KEY")
# Crawl a single URL
content = crawler.invoke("https://example.com")
print(content)
# Crawl with Markdown output
content = crawler.invoke({
"urls": "https://example.com",
"markdown": True
})
```
### Parameters
| Parameter | Type | Description |
| --------------- | ---- | --------------------------------------------- |
| `urls` | str | URL(s) to crawl (required) |
| `markdown` | bool | Return Markdown format (default: true) |
| `enhanced_html` | bool | Return cleaned HTML (default: true) |
| `raw_html` | bool | Return raw HTML source |
| `page_text` | bool | Return plain text |
| `render_js` | bool | Enable browser rendering (10 credits vs 1) |
| `geolocation` | str | ISO country code (e.g., 'us', 'gb') |
| `screenshot` | bool | Capture screenshot (requires render\_js=true) |
## Using with LangChain Agents
### Create an Agent with Crawleo Tools
```python theme={null}
from langchain_openai import ChatOpenAI
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_core.prompts import ChatPromptTemplate
from langchain_crawleo import CrawleoSearch, CrawleoCrawler
# Initialize LLM
llm = ChatOpenAI(model="gpt-4")
# Initialize Crawleo tools
tools = [
CrawleoSearch(api_key="YOUR_CRAWLEO_API_KEY"),
CrawleoCrawler(api_key="YOUR_CRAWLEO_API_KEY")
]
# Create prompt
prompt = ChatPromptTemplate.from_messages([
("system", "You are a helpful research assistant with access to web search and crawling tools."),
("human", "{input}"),
("placeholder", "{agent_scratchpad}")
])
# Create agent
agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
# Run agent
response = agent_executor.invoke({
"input": "Search for the latest Python 3.12 features and summarize them"
})
print(response["output"])
```
## RAG Pipeline Example
Build a RAG pipeline with Crawleo:
```python theme={null}
from langchain_crawleo import CrawleoCrawler
from langchain_openai import OpenAIEmbeddings, ChatOpenAI
from langchain_community.vectorstores import Chroma
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough
# 1. Crawl documentation
crawler = CrawleoCrawler(api_key="YOUR_CRAWLEO_API_KEY")
docs_content = crawler.invoke({
"urls": "https://docs.example.com/guide,https://docs.example.com/api",
"markdown": True
})
# 2. Split into chunks
text_splitter = RecursiveCharacterTextSplitter(
chunk_size=1000,
chunk_overlap=200
)
chunks = text_splitter.split_text(docs_content)
# 3. Create vector store
embeddings = OpenAIEmbeddings()
vectorstore = Chroma.from_texts(chunks, embeddings)
retriever = vectorstore.as_retriever()
# 4. Create RAG chain
llm = ChatOpenAI(model="gpt-4")
prompt = ChatPromptTemplate.from_template("""
Answer based on the following context:
{context}
Question: {question}
""")
rag_chain = (
{"context": retriever, "question": RunnablePassthrough()}
| prompt
| llm
)
# 5. Query
response = rag_chain.invoke("How do I authenticate with the API?")
print(response.content)
```
## Best Practices
Always enable Markdown output (`markdown=True`, which is the default) for LLM applications to minimize token usage.
Implement retry logic for credits exhaustion errors:
```python theme={null}
from tenacity import retry, stop_after_attempt, wait_exponential
@retry(stop=stop_after_attempt(3), wait=wait_exponential())
def search_with_retry(query):
return search_tool.invoke(query)
```
Cache crawled content to avoid redundant API calls:
```python theme={null}
from langchain.globals import set_llm_cache
from langchain_community.cache import InMemoryCache
set_llm_cache(InMemoryCache())
```
## Resources
View on PyPI
Code examples and samples
# Claude Desktop
Source: https://docs.crawleo.dev/mcp/claude-desktop
Connect Crawleo to Claude Desktop application using Model Context Protocol. Give Claude AI real-time web search, live data retrieval, and URL crawling capabilities for enhanced research and analysis.
## Overview
Connect Crawleo to Anthropic's Claude Desktop application to give Claude real-time web search and crawling capabilities.
## Prerequisites
* Claude Desktop installed ([download](https://claude.ai/download))
* Active Crawleo subscription with API key
MCP tools use the same credits as the REST API. `search_web` costs 10 credits per page, and `crawl_web` costs 1-10 credits per page based on proxy settings. [View pricing](/credits-pricing)
## Configuration
Open Claude Desktop and navigate to **Settings** → **Developer** → **Edit Config**.
This opens the `claude_desktop_config.json` file.
Add the Crawleo MCP configuration to your config file:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Replace `YOUR_API_KEY` with your actual Crawleo API key.
Close and reopen Claude Desktop to load the new configuration.
Look for the MCP tools icon (hammer) in the chat interface. Click it to see the available Crawleo tools:
* `search_web`
* `crawl_web`
## Example Prompts
Once connected, try these prompts with Claude:
```
Search the web for the latest developments in quantum computing
and summarize the top 5 results.
```
```
Crawl https://docs.python.org/3/tutorial/index.html and create
a study guide based on the content.
```
```
Research the top 3 JavaScript frameworks in 2025. Search for
recent articles and compare their features.
```
```
Crawl this blog post [URL] and analyze the author's main arguments.
```
## Configuration File Location
The Claude Desktop config file is located at:
| OS | Path |
| ------- | ----------------------------------------------------------------- |
| macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
| Linux | `~/.config/Claude/claude_desktop_config.json` |
## Full Configuration Example
Here's a complete example with Crawleo configured:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer crl_abc123xyz789"
}
}
}
}
```
## Video Tutorial
## Troubleshooting
1. Verify your API key is correct
2. Ensure the JSON syntax is valid
3. Restart Claude Desktop completely
4. Check that you have an active Crawleo subscription
* Verify your API key is valid at [crawleo.dev](https://www.crawleo.dev)
* Ensure the `Authorization` header includes `Bearer ` prefix
* Check for extra spaces or formatting issues in the config
* Check your internet connection
* Verify the MCP URL is exactly `https://api.crawleo.dev/mcp`
* Try regenerating your API key if issues persist
Contact support if you're still having issues.
# Cursor IDE
Source: https://docs.crawleo.dev/mcp/cursor
Integrate Crawleo with Cursor IDE to enhance AI-assisted coding with real-time web search, live documentation lookup, and URL crawling capabilities while you develop.
## Overview
Connect Crawleo to Cursor IDE to give the AI assistant real-time web search and crawling capabilities while you code.
## Prerequisites
* Cursor IDE installed ([download](https://cursor.sh))
* Active Crawleo subscription with API key
MCP tools use the same credits as the REST API. `search_web` costs 10 credits per page, and `crawl_web` costs 1-10 credits per page based on proxy settings. [View pricing](/credits-pricing)
## Configuration
Open Cursor and go to **Settings** → **Cursor Settings** → **MCP**.
Or press `Cmd+Shift+P` (macOS) / `Ctrl+Shift+P` (Windows/Linux) and search for "MCP".
Click **Add MCP Server** and configure:
* **Name:** `crawleo`
* **URL:** `https://api.crawleo.dev/mcp`
* **Headers:**
```
Authorization: Bearer YOUR_API_KEY
```
Save the configuration. The Crawleo tools should now be available in your AI conversations.
## Alternative: Manual Configuration
You can also edit the MCP configuration file directly:
Edit `~/.cursor/mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Edit `%USERPROFILE%\.cursor\mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Edit `~/.cursor/mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
## Example Use Cases
Once connected, use Crawleo with Cursor for:
```
Search for the best Python libraries for data validation in 2025
and compare their features.
```
```
Crawl the FastAPI documentation at https://fastapi.tiangolo.com
and show me how to set up authentication.
```
```
Search for the Stripe API documentation and show me how to
create a subscription.
```
```
Search for solutions to "React hydration mismatch error"
and summarize the best fixes.
```
## Workflow Tips
Combine Crawleo web search with Cursor's codebase understanding for powerful research and implementation workflows.
**Example workflow:**
1. Ask Cursor to search for best practices using Crawleo
2. Have Cursor analyze your current code
3. Get suggestions that combine web knowledge with your codebase context
## Video Tutorial
## Troubleshooting
1. Restart Cursor after configuration changes
2. Verify the URL is exactly `https://api.crawleo.dev/mcp`
3. Check your API key is valid
* Open a new chat window after configuring MCP
* Check the MCP status indicator in Cursor settings
* Verify your Crawleo subscription is active
Contact support if you're still having issues.
# GitHub Copilot
Source: https://docs.crawleo.dev/mcp/github-copilot
Connect Crawleo to GitHub Copilot in VS Code using MCP. Enhance GitHub Copilot with real-time web search, live API documentation, and URL crawling for better code generation and development assistance.
## Overview
Connect Crawleo to GitHub Copilot to enhance it with real-time web search and crawling capabilities.
## Prerequisites
* GitHub Copilot subscription
* VS Code with GitHub Copilot extension
* Active Crawleo subscription with API key
MCP tools use the same credits as the REST API. `search_web` costs 10 credits per page, and `crawl_web` costs 1-10 credits per page based on proxy settings. [View pricing](/credits-pricing)
## Configuration
Open VS Code and go to **Settings** (`Cmd+,` on macOS or `Ctrl+,` on Windows/Linux).
Search for "MCP" or navigate to the GitHub Copilot extension settings.
Add the Crawleo MCP server configuration:
```json theme={null}
{
"github.copilot.chat.mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Restart VS Code to apply the configuration changes.
## Manual Configuration
Edit your VS Code `settings.json` directly:
1. Open Command Palette (`Cmd+Shift+P` / `Ctrl+Shift+P`)
2. Search for "Preferences: Open User Settings (JSON)"
3. Add the Crawleo configuration:
```json theme={null}
{
"github.copilot.chat.mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
## Example Use Cases
Once connected, use Crawleo with GitHub Copilot Chat:
```
@workspace Search for the OpenAI API documentation and show me
how to use function calling.
```
```
Search for the best TypeScript validation libraries and
compare Zod vs Yup vs Joi.
```
```
Search for solutions to "CORS error in fetch request"
and explain the fixes.
```
```
Crawl https://expressjs.com/en/guide/routing.html and
create a cheat sheet for Express routing.
```
## Using with @workspace
Combine Crawleo's web capabilities with Copilot's workspace understanding:
```
Search for best practices for the framework used in my project
and suggest improvements to my codebase.
```
This allows Copilot to:
1. Understand your project context
2. Search for relevant best practices
3. Apply suggestions to your specific code
## Video Tutorial
## Troubleshooting
* Ensure you have the latest GitHub Copilot extension
* MCP support may require Copilot Chat preview features
* Check GitHub Copilot release notes for MCP availability
1. Verify JSON syntax is correct
2. Check for typos in the URL or headers
3. Restart VS Code completely
4. Try clearing Copilot cache
* Verify your Crawleo API key is valid
* Ensure the `Bearer ` prefix is included
* Check your Crawleo subscription is active
GitHub Copilot MCP support may be in preview. Check the [GitHub Copilot documentation](https://docs.github.com/en/copilot) for the latest information on MCP capabilities.
Contact support if you're still having issues.
# MCP Overview
Source: https://docs.crawleo.dev/mcp/overview
Model Context Protocol (MCP) integration for Claude, GitHub Copilot, Cursor, and other AI assistants. Give your AI tools real-time web search and URL crawling capabilities.
## What is MCP?
The **Model Context Protocol (MCP)** is an open standard that enables AI assistants to connect directly to external tools and data sources. Crawleo provides native MCP support, allowing AI assistants to search the web and crawl URLs without custom integration code.
## MCP Endpoint
```
https://api.crawleo.dev/mcp
```
## Available Tools
When connected via MCP, AI assistants have access to five tools:
Bing-powered web search with auto-crawling. Best for LLM and RAG use cases.
**Cost:** 10 credits per page of results
Google SERP data with knowledge graphs, news, images, places, and shopping.
**Cost:** 10 credits per request
Search for businesses, places, and landmarks on Google Maps.
**Cost:** 10 credits per request
Crawl specific URLs and extract content.
**Cost:** 1-10 credits per page
Premium headed browser crawling with advanced anti-bot evasion. For sites that block standard crawlers.
**Cost:** 50 credits per URL
### Credit Costs for MCP Tools
| Tool | Credits Cost |
| ------------------------------- | ---------------------- |
| `search_web` | 10 credits per page |
| `google_search` | 10 credits per request |
| `google_maps` | 10 credits per request |
| `crawl_web` (HTTP request) | 1 credit per URL |
| `crawl_web` (browser rendering) | 10 credits per URL |
| `headful_browser` | 50 credits per URL |
The AI will automatically choose the right tool for your request. `headful_browser` is only invoked when a site blocks standard crawling — the AI tries `crawl_web` first to save credits.
View full pricing details and subscription plans.
## Compatible Platforms
Crawleo MCP works with all major AI assistants and development environments:
Anthropic's Claude desktop application.
AI-powered code editor.
Codeium's AI development environment.
GitHub's AI pair programmer.
## Why Use MCP?
Connect AI assistants to Crawleo without writing any integration code. Just configure and go.
AI assistants can naturally decide when to search the web or crawl pages based on your requests.
Give your AI assistant access to live web data, not just its training data.
Same strict privacy guarantees as the REST API - no data retention, no training on your data.
## Quick Setup
The basic configuration pattern is the same across all platforms:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Select your platform from the navigation to see detailed setup instructions.
## Example Usage
Once configured, you can ask your AI assistant things like:
* *"Search for the latest news about artificial intelligence"*
* *"Crawl this documentation page and summarize it"*
* *"Find and compare pricing from these three websites"*
* *"Research the top Python web frameworks and their features"*
The AI will automatically use Crawleo's tools to fetch real-time web data.
## Video Tutorials
Step-by-step video guides for setting up Crawleo MCP across different platforms:
### IDE Integrations
### AI Assistants
### Tools & Automation
## Resources
View Crawleo on MCP.so directory.
Code examples and integrations.
# Windsurf IDE
Source: https://docs.crawleo.dev/mcp/windsurf
Integrate Crawleo with Codeium's Windsurf IDE to give Cascade AI assistant real-time web search, live data access, and URL crawling capabilities for enhanced AI-assisted development.
## Overview
Connect Crawleo to Codeium's Windsurf IDE to give Cascade AI real-time web search and crawling capabilities.
## Prerequisites
* Windsurf IDE installed ([download](https://codeium.com/windsurf))
* Active Crawleo subscription with API key
MCP tools use the same credits as the REST API. `search_web` costs 10 credits per page, and `crawl_web` costs 1-10 credits per page based on proxy settings. [View pricing](/credits-pricing)
## Configuration
Open Windsurf and navigate to **Settings** → **Cascade** → **MCP Servers**.
Add a new MCP server with the following configuration:
```json theme={null}
{
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
```
Replace `YOUR_API_KEY` with your actual Crawleo API key.
Save the configuration and restart Windsurf to apply the changes.
## Manual Configuration
You can also edit the configuration file directly:
Edit `~/.windsurf/mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Edit `%USERPROFILE%\.windsurf\mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
Edit `~/.windsurf/mcp.json`:
```json theme={null}
{
"mcpServers": {
"crawleo": {
"url": "https://api.crawleo.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
```
## Example Use Cases
Use Crawleo with Windsurf's Cascade AI for:
```
Search for comparisons between Next.js and Remix in 2025.
What are the pros and cons of each?
```
```
Crawl the Prisma documentation and show me how to set up
database migrations.
```
```
Search for "TypeError: Cannot read property of undefined"
in React and find the common causes.
```
```
Search for Node.js security best practices and summarize
the key recommendations.
```
## Cascade AI Integration
Cascade can automatically use Crawleo tools when you:
* Ask questions about current technologies or trends
* Need to look up documentation
* Want to research solutions to coding problems
* Need real-time information not in training data
Be specific in your requests. Instead of "search for React", try "search for React 19 new features and breaking changes".
## Video Tutorial
## Troubleshooting
1. Verify your API key is correct
2. Ensure the URL is exactly `https://api.crawleo.dev/mcp`
3. Restart Windsurf completely
4. Check your internet connection
* Start a new Cascade conversation
* Verify MCP is enabled in Windsurf settings
* Check the Cascade status indicator
Contact support if you're still having issues.
# Quickstart
Source: https://docs.crawleo.dev/quickstart
Start using Crawleo in under 5 minutes. Learn how to get your API key, make search and crawl requests, and integrate with your applications.
## Get Your API Key
Sign up at [crawleo.dev/login](https://www.crawleo.dev/login) to create your account.
Select a subscription plan at [crawleo.dev/pricing](https://www.crawleo.dev/pricing).
Once subscribed, you'll receive your API key from the dashboard.
## Authentication
All Crawleo API endpoints require authentication. You can use either:
* `x-api-key` header: `-H "x-api-key: YOUR_API_KEY"`
* `Authorization` header: `-H "Authorization: Bearer YOUR_API_KEY"`
Both are supported for all endpoints. Choose whichever fits your integration best.
***
## Make Your First Request
### Search the Web (Bing — for LLM/RAG)
Use the Bing Search API for LLM-optimized results with optional auto-crawling and content extraction:
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/search?query=artificial%20intelligence&count=5" \
-H "x-api-key: YOUR_API_KEY"
```
```bash cURL (alt) theme={null}
curl -X GET "https://api.crawleo.dev/search?query=artificial%20intelligence&count=5" \
-H "Authorization: Bearer YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
params={
"query": "artificial intelligence",
"count": 5
},
headers={
"x-api-key": "YOUR_API_KEY"
}
)
data = response.json()
print(data)
```
```python Python (alt) theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/search",
params={
"query": "artificial intelligence",
"count": 5
},
headers={
"Authorization": "Bearer YOUR_API_KEY"
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=artificial%20intelligence&count=5",
{
headers: {
"x-api-key": "YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
```
```javascript JavaScript (alt) theme={null}
const response = await fetch(
"https://api.crawleo.dev/search?query=artificial%20intelligence&count=5",
{
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
```
### Search the Web (Google — for SEO & Lead Gen)
Use the Google Search API for structured SERP data, knowledge graphs, news, images, places, and shopping:
```bash cURL theme={null}
curl -G "https://api.crawleo.dev/google-search" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "q=best CRM software" \
-d "gl=us" \
-d "num=10"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/google-search",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"q": "best CRM software",
"gl": "us",
"num": 10
}
)
data = response.json()
results = data["google search results"]
for r in results:
print(r["title"], r["link"])
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/google-search?" + new URLSearchParams({
q: "best CRM software",
gl: "us",
num: "10",
}),
{
headers: { "x-api-key": "YOUR_API_KEY" },
}
);
const data = await response.json();
console.log(data["google search results"]);
```
### Crawl a URL
Use the Crawler API to extract content from specific URLs:
```bash cURL theme={null}
curl -X GET "https://api.crawleo.dev/crawl?urls=https://example.com&markdown=true" \
-H "Authorization: Bearer YOUR_API_KEY"
```
```python Python theme={null}
import requests
response = requests.get(
"https://api.crawleo.dev/crawl",
params={
"urls": "https://example.com",
"markdown": True
},
headers={
"Authorization": "Bearer YOUR_API_KEY"
}
)
data = response.json()
print(data)
```
```javascript JavaScript theme={null}
const response = await fetch(
"https://api.crawleo.dev/crawl?urls=https://example.com&markdown=true",
{
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
const data = await response.json();
console.log(data);
```
## Choose Your Output Format
Crawleo supports multiple output formats optimized for different use cases:
| Format | Parameter | Best For |
| ------------- | -------------------- | ---------------------------------- |
| Raw HTML | `raw_html=true` | Full page source with all elements |
| Enhanced HTML | `enhanced_html=true` | Clean HTML without ads and scripts |
| Markdown | `markdown=true` | RAG pipelines and LLM consumption |
For RAG and LLM applications, use **Markdown** output to minimize token usage and improve processing efficiency.
## Next Steps
LLM-optimized search with auto-crawling and content extraction.
Structured SERP data for SEO, lead gen, and competitor research.
Explore Crawler API capabilities.
Connect AI assistants to Crawleo.