Proporcionado por DataForSEO
Envía una tarea para recopilar resultados de búsqueda orgánica de Google con DataForSEO
Resultados orgánicos de Google mediante una tarea SERP de DataForSEO: una tarea nativa por Run, enviada una sola vez, completada por el pingback del proveedor y leída desde task_get mediante un Provider Job duradero. Facturado según el coste medido propio de DataForSEO, hasta 700 resultados; un conjunto de resultados vacío se informa como sin resultados.
Cómo ejecutarlo
Paso 1Configurar
Una vez: pega esto en el chat de tu agente. Skill instala el CLI e inicia sesión por sí solo. Si tu agente no puede usar un shell, conéctalo mediante MCP en su lugar.
set up https://glasser.ai/SKILL.md
Show me how to use the DataForSEO endpoint /v3/serp/google/organic/task_post on Glasser.glasser run -p dataforseo -e '/v3/serp/google/organic/task_post' -i '{"keyword":"albert einstein","language_code":"en","location_code":2840}' --endpoint-version 4Usa la versión de endpoint 4. Comprueba el precio actual antes de ejecutar. Instala e inicia sesión primero en Comenzar.
Una vez por Run:
IDEMPOTENCY_KEY=$(uuidgen)Ejecútalo y copia este mismo bloque para volver a enviarlo:
curl -X POST https://api.glasser.ai/v1/runs \
-H "Authorization: Bearer gl_..." \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"provider":"dataforseo","endpoint":"/v3/serp/google/organic/task_post","input":{"keyword":"albert einstein","language_code":"en","location_code":2840},"endpoint_version":4}'Reutiliza la misma Idempotency-Key para volver a enviarlo: el segundo envío es una lectura del primer Run. Una clave nueva crea un Run y un Charge nuevos. Usa la versión de endpoint 4; comprueba el precio actual antes de ejecutar.
Paso 2Prueba una tarea de ejemplo específica
Cuando necesites preparar un briefing de investigación, puedes encontrar publicaciones sobre tu tema y utilizarlas como material de referencia.
Copia este prompt en tu agente para encontrar publicaciones relevantes para tu briefing de investigación.
Use dataforseo:/v3/serp/google/organic/task_post on Glasser.
Find published content about my topic in the returned posts for a research brief.Estructura del endpoint
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"keyword"
],
"properties": {
"os": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"tag": {
"type": "string"
},
"url": {
"type": "string",
"description": "Direct search URL, parsed into the request by DataForSEO. Paging inside it is billed per page."
},
"depth": {
"type": "integer",
"maximum": 700,
"minimum": 1,
"description": "Results to collect (1-700, default 10). DataForSEO bills each page of up to 10 results."
},
"device": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"keyword": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"priority": {
"type": "integer",
"description": "Task priority: 1 normal (default) or 2 high. DataForSEO charges extra for high priority."
},
"se_domain": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"match_type": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"match_value": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"search_param": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"language_code": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"language_name": {
"type": "string"
},
"location_code": {
"type": "integer"
},
"location_name": {
"type": "string"
},
"find_targets_in": {
"type": "array",
"items": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"max_crawl_pages": {
"type": "integer",
"description": "Search result pages to crawl (max 100). DataForSEO bills each page crawled."
},
"remove_from_url": {
"type": "array",
"items": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"ignore_targets_in": {
"type": "array",
"items": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"expand_ai_overview": {
"type": "boolean"
},
"target_search_mode": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"location_coordinate": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"stop_crawl_on_match": {
"type": "array",
"items": {
"type": "string",
"maxLength": 2048,
"minLength": 1
},
"maxItems": 100,
"minItems": 1
},
"browser_screen_width": {
"type": "integer"
},
"calculate_rectangles": {
"type": "boolean",
"description": "Pixel position of each result on the page. DataForSEO charges extra for it ($0.002 on most engines)."
},
"browser_screen_height": {
"type": "integer"
},
"group_organic_results": {
"type": "boolean"
},
"load_async_ai_overview": {
"type": "boolean",
"description": "Also load AI overviews that load asynchronously. Adds $0.002, refunded by DataForSEO when there is none."
},
"people_also_ask_click_depth": {
"type": "integer",
"description": "Expand People Also Ask 1-4 levels. Each click adds $0.00015, refunded when the element is absent."
},
"browser_screen_resolution_ratio": {
"type": "integer"
}
},
"additionalProperties": false
}{
"keyword": "albert einstein",
"language_code": "en",
"location_code": 2840
}Este endpoint no publica ningún esquema de salida. Recibes el cuerpo de respuesta propio del proveedor de datos, sin cambios — no garantizamos una estructura que no podemos asegurar.
Cómo funcionan los precios
| Entrada de tamaño predeterminado | Las entradas más grandes y las opciones de pago varían según el uso del proveedor de datos. El mismo precio con o sin datos coincidentes. | $0.00066 |
|---|---|---|
| Máximo por Run | El cargo total no superará este importe. | $1.3376 |
| Error del proveedor de datos | El proveedor de datos no pudo responder. | $0.00 |
| Tiempo de espera agotado | El Run superó su límite de tiempo. | $0.00 |
| Error interno | Un error interno impidió completar la operación. | $0.00 |