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.
Pricing reference
- Metering: Reported response cost.
- Reference request estimate: USD 0.012.
- Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.
Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.
- Type: array (object | null)[]
- filtersType: array (object | null)[] | null
array of results filtering parameters
optional field
you can add several filters at once (8 filters maximum)
you should set a logical operatorand,orbetween the conditions
the following operators are supported:regex,not_regex,=,<>,in,not_in,like,not_like
you can use the%operator withlikeandnot_liketo 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.
Empty object - idType: string
- limitType: integer | null
the maximum number of returned links
optional field
default value:100
maximum value:1000 - offsetType: integer | null
offset in the results array of returned links
optional field
default value:0
maximum value:2000000
if you specify the10value, the first ten links in the results array will be omitted and the data will be provided for the successive links - pageType: string | null
_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 - pageType: string | null
_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 - searchType: string | null
_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 over20,000results in a single request;
by specifying the uniquesearch_after_tokenvalue from the response array, you will get the subsequent results of the initial task;search_after_tokenvalues are unique for each subsequent task ;
Note: if thesearch_after_tokenis specified in the request, all other parameters should be identical to the previous request - tagType: string | null
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 specifiedtagvalue in thedataobject of the response
- Type: object | null · Response36Afe1097B20_OnPageLinksResponseInfo200
- Type: number | null Format: doublecost
total tasks cost, USD
- Type: integer | nullstatus
_code general status code you can find the full list of the response codes here
- Type: string | nullstatus
_message general informational message you can find the full list of general informational messages here
- Type: array (object | null)[] | nulltasks
array of tasks
- Type: object | null · Response36Afe1097B20_OnPageLinksTaskInfo
- costType: number | null Format: double
total tasks cost, USD
- dataType: object | null
contains the same parameters that you specified in the POST request
- propertyType: object | null
Name
- idType: string | null
task identifier unique task identifier in our system in the UUID format
- pathType: array (string | null)[] | null
URL path
- resultType: array (object | null)[] | null
array of results
- crawlType: string | null
_progress status of the crawling session
possible values:in_progress,finished - crawlType: object | null · Response36Afe1097B20_CrawlStatusInfo
_status details of the crawling session
- maxType: integer | null Format: int64
_crawl _pages maximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task
- pagesType: integer | null Format: int64
_crawled number of crawled pages
- pagesType: integer | null Format: int64
_in _queue number of pages that are currently in the crawling queue
- currentType: integer | null
_offset Integer numbers.
- itemsType: array (object | null)[] | null
items array
- directionType: string | null
direction of the link
possible values:internal,external - dofollowType: boolean | null
indicates whether the link is dofollow
if the value istrue, the link doesn't have arel="nofollow"attribute - domainType: string | null
_from referring domain
the link was found on this domain - domainType: string | null
_to referenced domain
the link is pointing to this domain - isType: boolean | null
_broken link is broken
indicates whether a link is directing to a broken page or resource - isType: boolean | null
_link _relation _conflict indicates that the link may have a conflict with another link
iftrue, at least one link pointing tolink_tohas arel="nofollow"attribute and at least one is dofollow - linkType: string | null
_from referring page
absolute URL of the page on which the link was found - linkType: string | null
_to referenced page
absolute URL of the page to which the link is pointing - pageType: string | null
_from referring page
relative URL of the page on which the link was found - pageType: string | null
_from _scheme - pageType: string | null
_to referenced page
relative URL of the page to which the link is pointing - pageType: string | null
_to _scheme - pageType: integer | null
_to _status _code status code of the referenced page
status code of the page to which the link is pointing - typeType: string | null
type of element
- itemsType: integer | null Format: int64
_count number of items in the results array
- searchType: string | null
_after _token - totalType: integer | null Format: int64
_items _count total number of relevant items in the database
- resultType: integer | null Format: int64
_count number of elements in the result array
- statusType: integer | null
_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
- statusType: string | null
_message informational message of the task you can find the full list of general informational messages here
- timeType: string | null
execution time, seconds
- Type: integer | null Format: int64tasks
_count the number of tasks in the tasks array
- Type: integer | null Format: int64tasks
_error the number of tasks in the tasks array returned with an error
- Type: string | nulltime
total execution time, seconds
- Type: string | nullversion
the current version of the API
application/json - 400
The request could not be processed. Check the request parameters.
- 401
A valid Felo API key is required.
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
A request or spending limit has been reached.
- 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
Error response; upstream passthrough responses may use provider formats
application/json
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": "07281559-0695-0216-0000-c269be8b7592",
"page_from": "/apis/google-trends-api",
"filters": [
[
"dofollow",
"=",
true
],
"and",
[
"direction",
"=",
"external"
]
],
"limit": 10
}
]'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"crawl_progress": null,
"crawl_status": {
"max_crawl_pages": null,
"pages_in_queue": null,
"pages_crawled": null
},
"search_after_token": null,
"current_offset": null,
"total_items_count": null,
"items_count": null,
"items": [
{
"type": null,
"domain_from": null,
"domain_to": null,
"page_from": null,
"page_to": null,
"link_from": null,
"link_to": null,
"dofollow": null,
"page_from_scheme": null,
"page_to_scheme": null,
"direction": null,
"is_broken": null,
"is_link_relation_conflict": null,
"page_to_status_code": null
}
]
}
]
}
]
}