---
title: DeepSeek Search | RunAPI
description: Envía una solicitud mediante la operación Search compatible con DeepSeek
  de RunAPI.
url: https://runapi.ai/es/docs/api/deepseek/search.md
canonical: https://runapi.ai/es/docs/api/deepseek/search
locale: es
---

> Versión HTML: https://runapi.ai/es/docs/api/deepseek/search
> Índice del sitio para agentes: https://runapi.ai/llms.txt

# DeepSeek Search

## Descripción general

Búsqueda síncrona seleccionada por esta ruta. No requiere modelo ni admite streaming. Los campos desconocidos se aceptan, pero se ignoran.

### Inicio rápido

1. Cree una Clave de API y establézcala como RUNAPI_API_KEY.
2. Envía el cuerpo JSON documentado; no se requiere modelo.
3. Lee la respuesta JSON y gestiona los errores de protocolo documentados.

## Endpoint

POST /v1/tools/search

URL base: https://runapi.ai

Versión del contrato: v1

Autenticación preferida: Authorization: Bearer YOUR_API_TOKEN

## Portadores de autenticación

RunAPI acepta cada uno de los carriers indicados a continuación. Los ejemplos generados utilizan el encabezado preferido del protocolo.

- `Authorization: Bearer YOUR_API_TOKEN` (Preferido)
- `x-api-key: YOUR_API_TOKEN`
- `x-goog-api-key: YOUR_API_TOKEN`
- `?key=YOUR_API_TOKEN`

## Modelos compatibles

Abra una página de modelo para conocer los precios actuales, los límites de velocidad y los detalles de uso comercial.

- [deepseek-search](https://runapi.ai/es/models/deepseek-search)

## Contrato de solicitud

Búsqueda síncrona seleccionada por esta ruta. No requiere modelo ni admite streaming. Los campos desconocidos se aceptan, pero se ignoran.

### Cuerpo JSON

Obligatorio: `query`

```json
{
  "count": {
    "description": "Número de resultados solicitados de 1 a 50.",
    "maximum": 50,
    "minimum": 1,
    "type": "integer"
  },
  "localization": {
    "description": "Indicación de localización, como la dirección IP del usuario final.",
    "type": "string"
  },
  "need_content": {
    "description": "Solicitar contenido de las páginas en los resultados de búsqueda.",
    "type": "boolean"
  },
  "ori_question": {
    "description": "Pregunta original de 1–128 caracteres Unicode. Null se considera omitido.",
    "maxLength": 128,
    "minLength": 1,
    "type": [
      "string",
      "null"
    ]
  },
  "query": {
    "description": "Consulta de 1–128 caracteres Unicode; no puede contener solo espacios en blanco.",
    "maxLength": 128,
    "minLength": 1,
    "type": "string"
  }
}
```

### Ejemplo de solicitud

```json
{
  "count": 5,
  "localization": "203.0.113.7",
  "need_content": true,
  "ori_question": null,
  "query": "DeepSeek V4 release"
}
```

## Respuesta síncrona

HTTP 200

### Esquema

```json
{
  "additionalProperties": true,
  "properties": {
    "results": {
      "description": "Resultados de búsqueda. Un array vacío es una respuesta correcta y no genera cargos.",
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "results"
  ],
  "type": "object"
}
```

### Ejemplo

```json
{
  "results": [
    {
      "snippet": "Browse DeepSeek models and API documentation.",
      "title": "DeepSeek models on RunAPI",
      "url": "https://runapi.ai/models/deepseek"
    }
  ]
}
```

## Error de protocolo: invalid_request

HTTP 400

### Esquema

```json
{
  "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"
}
```

### Ejemplo

```json
{
  "error": {
    "message": "'query' is required",
    "type": "invalid_request_error"
  }
}
```

## Error de protocolo: rate_limited

HTTP 429

### Esquema

```json
{
  "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"
}
```

### Ejemplo

```json
{
  "error": {
    "message": "Too many requests, please retry later",
    "type": "rate_limit_error"
  }
}
```

## Error de protocolo: unavailable

HTTP 503

### Esquema

```json
{
  "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"
}
```

### Ejemplo

```json
{
  "error": {
    "message": "Service temporarily unavailable",
    "type": "service_unavailable"
  }
}
```

## Ejemplos de código generados

Cada muestra de cURL, JavaScript y Python envía la solicitud validada de este contrato sin requerir un SDK específico del protocolo.

### curl

```curl
curl -X POST https://runapi.ai/v1/tools/search \
  -H Authorization:\ Bearer\ YOUR_API_TOKEN \
  -H Content-Type:\ application/json \
  -d \{\"query\":\"DeepSeek\ V4\ release\",\"count\":5,\"ori_question\":null,\"localization\":\"203.0.113.7\",\"need_content\":true\}
```

### javascript

```javascript
const response = await fetch("https://runapi.ai/v1/tools/search", {
  method: "POST",
  headers: {
  "Authorization": "Bearer YOUR_API_TOKEN",
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "query": "DeepSeek V4 release",
  "count": 5,
  "ori_question": null,
  "localization": "203.0.113.7",
  "need_content": true
})
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
console.log(data);
```

### python

#### Instalar

```bash
pip install requests
```

```python
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())
```

## Guías relacionadas

- [Autenticación](https://runapi.ai/es/docs/guides/authentication.md)

---

## Más de RunAPI

- [Inicio](https://runapi.ai/es/.md)
- [Catálogo de modelos](https://runapi.ai/es/models.md)
- [Precios](https://runapi.ai/es/pricing.md)
- [Proveedores](https://runapi.ai/es/models)
- [Documentación](https://runapi.ai/es/docs/guides)
- [SDKs](https://runapi.ai/es/sdk.md)
- [CLI](https://runapi.ai/es/cli.md)
- [Servidor MCP](https://runapi.ai/es/mcp.md)
- [x402](https://runapi.ai/es/x402.md)
- [Claude Code vs Cursor](https://runapi.ai/es/claude-code-vs-cursor.md)
- [Configuración de Cursor API](https://runapi.ai/es/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/es/openrouter-alternative.md)
- [Enterprise](https://runapi.ai/es/contact.md)
- [Contacto](https://runapi.ai/es/contact.md)
- [Términos](https://runapi.ai/es/terms.md)
- [Privacidad](https://runapi.ai/es/privacy.md)
- [Índice del sitio para agentes](https://runapi.ai/llms.txt)

Contacto: contact@runapi.ai

## Datos estructurados

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "es",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/es",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/es/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "es",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/es",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/esicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "es",
    "@type": "TechArticle",
    "headline": "DeepSeek Search",
    "description": "Envía una solicitud mediante la operación Search compatible con DeepSeek de RunAPI.",
    "url": "https://runapi.ai/es/docs/api/deepseek/search",
    "mainEntityOfPage": "https://runapi.ai/es/docs/api/deepseek/search"
  }
]
```
