SwiftSearch Parameters
Complete parameter reference for the SwiftSearch API
Parameter Validation
Request Parameters
SwiftSearch Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
query | string | Required | The search query to execute. Supports natural language queries, keywords, and search operators. Example: |
max_results | integer | Optional | Maximum number of search results to return. Higher values consume more credits. Example: |
auto_scrape_top | integer | Optional | Number of top results to automatically scrape for content extraction. Example: |
include_contacts | boolean | Optional | Extract contact information (emails, phone numbers) from scraped content. Example: |
include_social | boolean | Optional | Extract social media links and handles from scraped content. Example: |
country | string | Optional | Target country for search results using ISO 3166-1 alpha-2 codes. Example: |
language | string | Optional | Preferred language for search results using ISO 639-1 codes. Example: |
time_range | string | Optional | Filter results by publication time. Example: |
safe_search | string | Optional | Filter explicit content from search results. Example: |
result_type | string | Optional | Type of search results to prioritize. Example: |
And 50+ more countries supported
Response Format
SwiftSearch Response Fields
Field | Type | Description |
---|---|---|
search_results | array | Array of search result objects containing title, URL, snippet, and metadata. Example: |
scraped_content | array | Array of scraped content from auto_scrape_top results (if enabled). Example: |
total_results | integer | Total number of search results found (may exceed max_results). Example: |
search_time | float | Time taken to execute the search query in seconds. Example: |
credits_used | integer | Number of API credits consumed by this request. Example: |
remaining_credits | integer | Number of API credits remaining in your account. Example: |
request_id | string | Unique identifier for this API request (useful for support). Example: |
Example Requests
Minimal Request
The simplest possible request with just a search query:
Minimal SwiftSearch Request
curl -X POST https://www.searchhive.dev/api/v1/swiftsearch \
-H "Authorization": "Bearer: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"query": "latest AI developments"
}'
Advanced Request
Using all available parameters for maximum functionality:
Advanced SwiftSearch Request
curl -X POST https://www.searchhive.dev/api/v1/swiftsearch \
-H "Authorization": "Bearer: sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"query": "enterprise SaaS startups 2025",
"max_results": 20,
"auto_scrape_top": 5,
"include_contacts": true,
"include_social": true,
"country": "US",
"language": "en",
"time_range": "month",
"safe_search": "moderate",
"result_type": "web"
}'
Parameter Tips & Best Practices
Use specific keywords and phrases. Avoid overly broad queries.
Start with max_results=10, increase only if needed to save credits.
Set auto_scrape_top=3-5 for the most valuable content extraction.
Use country parameter for location-specific results.
Always provide a non-empty query string.
Don't set max_results too high for exploratory searches.
Use ISO 3166-1 alpha-2 codes (e.g., "US", not "USA").
Only enable when needed - it increases processing time and costs.