REST API Documentation
Complete REST API reference for Venym Search services. Use HTTP requests directly without any SDK dependencies for maximum flexibility and control.
Base URL
https://www.search.venym.io/api/v1Authentication
All requests require authentication using your API key in the Authorization header.
Required Authentication Header
# Authentication Header
Authorization: Bearer sk_live_YOUR_API_KEY_API_KEY_api_key_here
# Alternative format (if your client doesn't support Bearer)
Authorization: sk_live_YOUR_API_KEY_API_KEY_api_key_hereImportant Notes:
- • Your API key starts with
sk_live_YOUR_API_KEY_API_KEYfor 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/search | POST | Real-time web search with automatic result extraction | 1-2 per request |
| /v1/scrape | POST | Extract content from any webpage, bypass protections | 2-5 per request |
| /v1/usage | GET | Get current API usage statistics and credits | Free |
| /v1/validate | GET | Validate API key and check account status | Free |
Search API
https://www.search.venym.io/api/v1/searchReal-time web search with automatic result extraction
Search the web in real-time and get structured results with automatic content extraction.
Search Request Example
Scrape API
https://www.search.venym.io/api/v1/scrapeExtract content from any webpage, bypass protections
Extract content from any webpage with advanced parsing and protection bypassing.
Scrape Request Example
Response Format
All successful API responses follow a consistent JSON format:
Successful Response Example
{
"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/jsonError 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.search.venym.io/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)