REST API Documentation
Complete REST API reference for SearchHive services. Use HTTP requests directly without any SDK dependencies for maximum flexibility and control.
Base URL
https://www.searchhive.dev/api/v1
Authentication
All requests require authentication using your API key in the Authorization header.
Required Authentication Header
# Authentication Header
Authorization: Bearer sk_live_your_api_key_here
# Alternative format (if your client doesn't support Bearer)
Authorization: sk_live_your_api_key_here
Important Notes:
- • Your API key starts with
sk_live_
for production - • Keep your API key secure and never expose it in client-side code
- • Use environment variables to store your API key
- • API keys are tied to your account and billing plan
Core Endpoints
Endpoint | Method | Description | Credits |
---|---|---|---|
/v1/swiftsearch | POST | Real-time web search with automatic result extraction | 1-2 per request |
/v1/scrapeforge | POST | Extract content from any webpage, bypass protections | 2-5 per request |
/v1/deepdive | POST | AI-powered research across multiple sources | 5-15 per request |
/v1/usage | GET | Get current API usage statistics and credits | Free |
/v1/validate | GET | Validate API key and check account status | Free |
SwiftSearch API
https://www.searchhive.dev/api/v1/swiftsearch
Real-time web search with automatic result extraction
Search the web in real-time and get structured results with automatic content extraction.
SwiftSearch Request Example
ScrapeForge API
https://www.searchhive.dev/api/v1/scrapeforge
Extract content from any webpage, bypass protections
Extract content from any webpage with advanced parsing and protection bypassing.
ScrapeForge Request Example
DeepDive API
https://www.searchhive.dev/api/v1/deepdive
AI-powered research across multiple sources
Leverage AI to research topics across multiple sources with automatic summarization.
DeepDive Request Example
Response Format
All successful API responses follow a consistent JSON format:
Successful Response Example
{
"query": "latest AI developments 2025",
"search_results": [
{
"title": "AI Breakthrough: New Language Model Achieves Human-Level Reasoning",
"link": "https://example.com/ai-news",
"snippet": "Researchers announce significant advancement in AI reasoning capabilities...",
"position": 1,
"date": "2025-01-15",
"relevance_score": 0.95
}
],
"credits_used": 1,
"remaining_credits": 4999,
"results_count": 10,
"processing_time_ms": 1250,
"request_id": "req_abc123"
}
Standard Fields
credits_used
- Credits consumed by requestremaining_credits
- Credits left in accountprocessing_time_ms
- Request processing timerequest_id
- Unique request identifierContent Type
application/json
Error Responses
Error responses include detailed information to help debug issues:
Error Response Example
{
"error": "Rate limit exceeded",
"code": "RATE_LIMITED",
"details": "You have exceeded the rate limit for your plan. Please wait before making more requests.",
"retry_after": 60,
"request_id": "req_def456",
"timestamp": "2025-01-15T10:30:00Z",
"documentation_url": "https://docs.searchhive.dev/errors"
}
HTTP Status Codes
Request successful
Example: Normal API response with data
Invalid request parameters
Example: Missing required field or invalid JSON
Invalid or missing API key
Example: API key not found or malformed
Insufficient credits
Example: Account has no remaining credits
Rate limit exceeded
Example: Too many requests per minute for plan
Server error occurred
Example: Temporary service issue
Rate Limiting
All requests include rate limit headers for tracking usage:
x-ratelimit-limit
- Requests allowed per windowx-ratelimit-remaining
- Requests remainingx-ratelimit-reset
- Window reset time (Unix)x-ratelimit-window
- Window duration (seconds)