Home

2 min read

Searching with Spider

Table of Contents

Spider offers lightning-fast search capabilities, delivering results in under 2 seconds depending on the query. This enables instant access to live web data, making it ideal for:


Search Endpoint Usage

POST /search
Use this endpoint to compile a list of relevant websites for crawling and resource collection.

Request Parameters

⚠️ Tip: Set a crawl limit for unknown domains to avoid excessive requests.

Example Request (Python)

import requests, os

headers = {
  'Authorization': f'Bearer {os.getenv("SPIDER_API_KEY")}',
  'Content-Type': 'application/json',
}

json_data = {
  "search": "sports news today",
  "search_limit": 3,
  "limit": 5,
  "return_format": "markdown"
}

response = requests.post('https://api.spider.cloud/search', headers=headers, json=json_data)
print(response.json())

Search Results Format

The API returns structured results as an array of objects:

[
	{
		"title": "ESPN – Serving Sports Fans. Anytime. Anywhere.",
		"description": "Visit ESPN for live scores, highlights and sports news. Stream exclusive games on ESPN+ and play fantasy sports.",
		"url": "https://www.espn.com/"
	},
	{
		"title": "Sports Illustrated",
		"description": "SI.com provides sports news, expert analysis, highlights, stats and scores for the NFL, NBA, MLB, NHL, college football, soccer...",
		"url": "https://www.si.com/"
	}
]

Combo Search and Crawl

Spider allows combo operations — search the web and crawl selected results in a single workflow.

Benefits:

Rate Limits

Build now, scale to millions