DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Links
Every link found during a crawl, by id. Filter with page_from and page_to to get the links out of or into one page. Returns total_items_count, items_count, items, and a search_after_token for paging - use that rather than offset past the first pages. Reads a finished crawl, so it needs the id from post_dataforseo_on_page_submit and returns crawl_progress plus a crawl_status of max_crawl_pages, pages_in_queue and pages_crawled - check those before trusting a small result, because a crawl still running simply has less to report. 💰 Free upstream: querying a finished crawl costs nothing, only the crawl itself does.
- 型: array object[]
- id型: string必須
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”
- filters型: array
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 like and not_like to match any string of zero or more characters example: ["direction","=","external"] [["domain_to","","example.com"], "and", ["link_from","not_like","%example.com/blog%"]] [["direction","=","external"], "and", [["link_from","like","%example.com/blog%"],"or",["link_from","like","%example.com/help%"]]] The full list of possible filters is available by this link.
- limit型: integer
the maximum number of returned links optional field default value: 100 maximum value: 1000
- offset型: integer
offset in the results array of returned links optional field default value: 0 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
- page型: string
_from 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
- page型: string
_to 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
- search型: string
_after _token 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 the subsequent results of the initial task; search_after_token values are unique for each subsequent task ; Note: if the search_after_token is specified in the request, all other parameters should be identical to the previous request
- tag型: string
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
- 型: object200
Successful response
- 型: numbercost
total tasks cost, USD
- 型: integerstatus
_code general status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
- 型: stringstatus
_message general informational message you can find the full list of general informational messages here
- 型: array string[]tasks
array of tasks
- 型: integertasks
_count the number of tasks in the tasks array
- 型: integertasks
_error the number of tasks in the tasks array returned with an error
- 型: numbertasks
.cost cost of the task, USD
- 型: objecttasks
.data contains the same parameters that you specified in the POST request
- 型: stringtasks
.id task identifier unique task identifier in our system in the UUID format
- 型: array string[]tasks
.path URL path
- 型: array string[]tasks
.result array of results
- 型: integertasks
.result _count number of elements in the result array
- 型: stringtasks
.result .crawl _progress status of the crawling session possible values: in_progress, finished
- 型: objecttasks
.result .crawl _status details of the crawling session
- 型: integertasks
.result .crawl _status .max _crawl _pages maximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task
- 型: integertasks
.result .crawl _status .pages _crawled number of crawled pages
- 型: integertasks
.result .crawl _status .pages _in _queue number of pages that are currently in the crawling queue
- 型: array string[]tasks
.result .items items array
- 型: integertasks
.result .items _count number of items in the results array
- 型: stringtasks
.result .items .direction direction of the link possible values: internal, external
- 型: booleantasks
.result .items .dofollow indicates whether the link is dofollow if the value is true, the link doesn’t have a rel="nofollow" attribute
- 型: stringtasks
.result .items .domain _from referring domain the link was found on this domain
- 型: stringtasks
.result .items .domain _to referenced domain the link is pointing to this domain
- 型: stringtasks
.result .items .hreflang hreflang attribute value language and optional country code specified in the hreflang attribute example: "en-US", "fr"
- 型: stringtasks
.result .items .image _alt alternative text for the image
- 型: stringtasks
.result .items .image _src url of the image
- 型: booleantasks
.result .items .is _broken link is broken indicates whether a link is directing to a broken page or resource
- 型: booleantasks
.result .items .is _link _relation _conflict indicates that the link may have a conflict with another link if true, at least one link pointing to link_to has a rel="nofollow" attribute and at least one is dofollow
- 型: booleantasks
.result .items .is _valid _hreflang hreflang validity status indicates whether the hreflang attribute is correctly implemented
- 型: array string[]tasks
.result .items .link _attribute link attribute added to external link indicates link attributes added to the link_to on the page_from ["ugc","noopener"]
- 型: stringtasks
.result .items .link _from referring page absolute URL of the page on which the link was found
- 型: stringtasks
.result .items .link _to referenced page absolute URL of the page to which the link is pointing
- 型: stringtasks
.result .items .page _from referring page relative URL of the page on which the link was found
- 型: stringtasks
.result .items .page _from _scheme url scheme of the referring page
- 型: stringtasks
.result .items .page _to referenced page relative URL of the page to which the link is pointing
- 型: stringtasks
.result .items .page _to _scheme url scheme of the referenced page
- 型: integertasks
.result .items .page _to _status _code status code of the referenced page status code of the page to which the link is pointing
- 型: stringtasks
.result .items .text image text
- 型: stringtasks
.result .items .type type of the link = ‘redirect’ HTTP redirect with 3xx status code
- 型: integertasks
.result .total _items _count total number of relevant items in the database
- 型: integertasks
.status _code status code of the task generated by DataForSEO; can be within the following range: 10000-60000 you can find the full list of the response codes here
- 型: stringtasks
.status _message informational message of the task you can find the full list of general informational messages here
- 型: stringtasks
.time execution time, seconds
- 型: stringtime
execution time, seconds
- 型: stringversion
the current version of the API
application/json - 400
Bad request
- 401
Unauthorized
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
Rate limit exceeded
- 500
Internal server error
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl https://openapi.felo.ai/v1/beta/dataforseo/on_page/links \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"id": "",
"page_from": "",
"page_to": "",
"limit": 1,
"offset": 1,
"filters": [],
"search_after_token": "",
"tag": ""
}
]'
{
"version": "string",
"status_code": 1,
"status_message": "string",
"time": "string",
"cost": 1,
"tasks_count": 1,
"tasks_error": 1,
"tasks": [
"string"
],
"tasks.id": "string",
"tasks.status_code": 1,
"tasks.status_message": "string",
"tasks.time": "string",
"tasks.cost": 1,
"tasks.result_count": 1,
"tasks.path": [
"string"
],
"tasks.data": {},
"tasks.result": [
"string"
],
"tasks.result.crawl_progress": "string",
"tasks.result.crawl_status": {},
"tasks.result.crawl_status.max_crawl_pages": 1,
"tasks.result.crawl_status.pages_in_queue": 1,
"tasks.result.crawl_status.pages_crawled": 1,
"tasks.result.total_items_count": 1,
"tasks.result.items_count": 1,
"tasks.result.items": [
"string"
],
"tasks.result.items.type": "string",
"tasks.result.items.domain_from": "string",
"tasks.result.items.domain_to": "string",
"tasks.result.items.page_from": "string",
"tasks.result.items.page_to": "string",
"tasks.result.items.link_from": "string",
"tasks.result.items.link_to": "string",
"tasks.result.items.link_attribute": [
"string"
],
"tasks.result.items.dofollow": true,
"tasks.result.items.page_from_scheme": "string",
"tasks.result.items.page_to_scheme": "string",
"tasks.result.items.direction": "string",
"tasks.result.items.is_broken": true,
"tasks.result.items.text": "string",
"tasks.result.items.is_link_relation_conflict": true,
"tasks.result.items.page_to_status_code": 1,
"tasks.result.items.image_alt": "string",
"tasks.result.items.image_src": "string",
"tasks.result.items.is_valid_hreflang": true,
"tasks.result.items.hreflang": "string"
}