AI Search
Web search with natural language understanding
AI Search goes beyond keyword matching. It understands the intent behind your query, finds the most relevant results, and can extract specific information from search results.
POST /ai/searchFull API DocsFeatures
Semantic query understanding
Intent-based results
Relevance ranking
Result summarization
Follow-up extraction
Domain filtering
Example Use Cases
Research
"Find recent research papers about transformer architectures"
Competitor analysis
"Find pricing pages for CRM software companies"
News search
"Latest news about renewable energy investments"
Tutorial finding
"Best tutorials for learning Python web scraping"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | string | required | Natural language search query |
| search_limit | number | optional | Maximum search results (default: 10) |
| return_format | string | optional | Output format for results |
| domain | string | optional | Limit search to specific domain |
Code Examples
cURL
curl -X POST https://api.spider.cloud/ai/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Find the top Python web scraping libraries in 2024",
"search_limit": 10
}'Python
from spider import Spider
spider = Spider()
result = spider.ai_search(
prompt="Find the top Python web scraping libraries in 2024",
search_limit=10
)
for item in result:
print(item['title'], item['url'])JavaScript
import { Spider } from '@spider-cloud/spider-client';
const spider = new Spider();
const result = await spider.aiSearch({
prompt: 'Find the top Python web scraping libraries in 2024',
searchLimit: 10
});
result.forEach(item => console.log(item.title, item.url));