Crawl links
dataforseo.x.on-page-linksThis endpoint will provide you with a list of internal and external links detected on a target website.
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
POSThttps://toolswitch.dev/v1/tools/dataforseo.x.on-page-linksBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
the POST body is a JSON array holding exactly one task object with these fields
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (JSON) | ||||
id | cadena | Opcional | ID of the task required field you can get this ID in the response of the Task POST endpoint example: “07131248-1535-0216-1000-17384017ad04” | 07281559-0695-0216-0000-c269be8b7592 |
tag | cadena | Opcional | user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response | |
limit | entero | Opcional | the maximum number of returned links optional field default value: 100 maximum value: 1000 | 10 |
offset | entero | Opcional | offset in the results array of returned links optional field default value: 0 maximum value: 2000000 if you specify the 10 value, the first ten links in the results array will be omitted and the data will be provided for the successive links | |
filters | matriz | Opcional | array of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, =, <>, in, not_in, like, not_like you can use the % operator with lik | [["dofollow","=",true],"and",["direction","=","external"]] |
page_to | cadena | Opcional | relative page URL optional field if you use this field, the API response will contain only internal links pointing to the specified page note that in this field you can specify relative URLs only | |
page_from | cadena | Opcional | relative page URL optional field if you use this field, the API response will contain only links from the specified page note that in this field you can specify relative URLs only | /apis/google-trends-api |
search_after_token | cadena | Opcional | token for subsequent requests optional field provided in the identical filed of the response to each request; use this parameter to avoid timeouts while trying to obtain over 20,000 results in a single request; by specifying the unique search_after_token value from the response array, you will get t | |
- Cuerpo (JSON)
idcadenaOpcionalID of the task required field you can get this ID in the response of the Task POST endpoint example: “07131248-1535-0216-1000-17384017ad04”
Ejemplo:
07281559-0695-0216-0000-c269be8b7592tagcadenaOpcionaluser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
limitenteroOpcionalthe maximum number of returned links optional field default value: 100 maximum value: 1000
Ejemplo:
10offsetenteroOpcionaloffset in the results array of returned links optional field default value: 0 maximum value: 2000000 if you specify the 10 value, the first ten links in the results array will be omitted and the data will be provided for the successive links
filtersmatrizOpcionalarray of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, =, <>, in, not_in, like, not_like you can use the % operator with lik
Ejemplo:
[["dofollow","=",true],"and",["direction","=","external"]]page_tocadenaOpcionalrelative page URL optional field if you use this field, the API response will contain only internal links pointing to the specified page note that in this field you can specify relative URLs only
page_fromcadenaOpcionalrelative page URL optional field if you use this field, the API response will contain only links from the specified page note that in this field you can specify relative URLs only
Ejemplo:
/apis/google-trends-apisearch_after_tokencadenaOpcionaltoken for subsequent requests optional field provided in the identical filed of the response to each request; use this parameter to avoid timeouts while trying to obtain over 20,000 results in a single request; by specifying the unique search_after_token value from the response array, you will get t
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X POST 'https://toolswitch.dev/v1/tools/dataforseo.x.on-page-links' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/dataforseo.x.on-page-links",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/dataforseo.x.on-page-links", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.