DeepSeek Search
Send a request through RunAPI's DeepSeek-compatible Search operation.
Overview
Synchronous search selected by this path. No model is required and streaming is not supported. Unknown fields are accepted but ignored.
Quick start
- Create an API key and set it as RUNAPI_API_KEY.
- Send the documented JSON body; no model is required.
- Read the JSON response and handle the documented protocol errors.
Endpoint
- Base URL
https://runapi.ai- Contract version
v1- Preferred authentication
Authorization: Bearer YOUR_API_TOKEN
Authentication carriers
RunAPI accepts each carrier listed below. Generated samples use the protocol's preferred header.
- header - Preferred
Authorization: Bearer YOUR_API_TOKEN- header
x-api-key: YOUR_API_TOKEN- header
x-goog-api-key: YOUR_API_TOKEN- query
?key=YOUR_API_TOKEN
Compatible models
Open a model page for current pricing, rate limits, and commercial-usage details.
Show 1 compatible model
Request contract
Synchronous search selected by this path. No model is required and streaming is not supported. Unknown fields are accepted but ignored.
JSON body5 fields
countintegerNumber of results requested from 1 to 50.
localizationstringLocalization hint such as the end user's IP address.
need_contentbooleanRequest page content in search results.
ori_question["string", "null"]Original question of 1–128 Unicode characters. Null is treated as omitted.
querystringSearch query of 1–128 Unicode characters; must not consist entirely of whitespace.
Request example
{
"count": 5,
"localization": "203.0.113.7",
"need_content": true,
"ori_question": null,
"query": "DeepSeek V4 release"
}
Synchronous response
Schema
{
"additionalProperties": true,
"properties": {
"results": {
"description": "Search results. An empty array is a successful response and incurs no charge.",
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
}
},
"required": [
"results"
],
"type": "object"
}
Example
{
"results": [
{
"snippet": "Browse DeepSeek models and API documentation.",
"title": "DeepSeek models on RunAPI",
"url": "https://runapi.ai/models/deepseek"
}
]
}
Protocol error: invalid_request
Schema
{
"additionalProperties": true,
"properties": {
"error": {
"additionalProperties": true,
"properties": {
"code": {
"type": [
"string",
"null"
]
},
"message": {
"type": "string"
},
"param": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string"
}
},
"required": [
"message",
"type"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
Example
{
"error": {
"message": "'query' is required",
"type": "invalid_request_error"
}
}
Protocol error: rate_limited
Schema
{
"additionalProperties": true,
"properties": {
"error": {
"additionalProperties": true,
"properties": {
"code": {
"type": [
"string",
"null"
]
},
"message": {
"type": "string"
},
"param": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string"
}
},
"required": [
"message",
"type"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
Example
{
"error": {
"message": "Too many requests, please retry later",
"type": "rate_limit_error"
}
}
Generated Code Samples
Each cURL, JavaScript, and Python sample sends the validated request from this contract without requiring a protocol-specific SDK.
Install
pip install requests
import requests
response = requests.post(
"https://runapi.ai/v1/tools/search",
headers={"Authorization": "Bearer YOUR_API_TOKEN", "Content-Type": "application/json"},
json={"query": "DeepSeek V4 release", "count": 5, "ori_question": None, "localization": "203.0.113.7", "need_content": True}
)
response.raise_for_status()
print(response.json())