Get started with Yep API
To get started, sign up for free. Once you have your API key, you’re ready to make your first API call.
All API requests require authentication using your API key and secret. These should be passed as HTTP headers:
X-API-Key: {API Key} X-API-Secret: {API Secret}
You can manage your API keys in the API Keys section.
To ensure optimal performance for all users, the API enforces the following rate limits:
If you exceed these limits, you'll receive a 429 Too Many Requests
response.
The API uses standard HTTP status codes and returns error details in the response body:
Status Code | Description |
---|---|
200 | Success |
400 | Bad Request - Missing or invalid parameters |
401 | Unauthorized - Invalid API credentials |
402 | Payment Required - Insufficient account balance |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Error response format
{ "error": "Error message describing the issue" }
GET /api/search
Search for content across the platform. Returns a list of matching items by proxying to our advanced search service.
Each call to this endpoint costs $0.0001.
Parameter | Type | Required | Description |
---|---|---|---|
query | string | Yes | Search query string |
type | string | No | Type of search: "basic" (default) or "include_content". The basic search includes URL, meta titles, and meta descriptions. The include_content search additionally includes markdown content. |
limit | integer | No | Maximum number of results to return (default: 10, max: 100) |
Example Request
curl -X GET "https://platform.yep.com/api/search?query=saratoga%20spring%20water&type=basic&limit=10" \ -H "X-API-Key: {API Key}" \ -H "X-API-Secret: {API Secret}"
Example Responses
{ "success": true, "query": "saratoga spring water", "type": "basic", "results": [ // Array of search results from our backend search service ], "response_time_ms": 145.67 }
{ "error": "Search query (query) is required." }
{ "error": "Type parameter must be either \"basic\" or \"include_content\"." }
{ "error": "Insufficient funds. Please add funds to your account.", "balance": 0.05, "required": 0.0001 }