Links
This endpoint will provide you with a list of internal and external links detected on a target website.
Documentation Index
Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
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”
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
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
the maximum number of returned links optional field default value: 100 maximum value: 1000
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
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.
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
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
Response
Successful response
the current version of the API
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
general informational message you can find the full list of general informational messages here
execution time, seconds
total tasks cost, USD
the number of tasks in the tasks array
the number of tasks in the tasks array returned with an error
array of tasks
task identifier unique task identifier in our system in the UUID format
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
informational message of the task you can find the full list of general informational messages here
execution time, seconds
cost of the task, USD
number of elements in the result array
URL path
contains the same parameters that you specified in the POST request
array of results
status of the crawling session possible values: in_progress, finished
details of the crawling session
maximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task
number of pages that are currently in the crawling queue
number of crawled pages
total number of relevant items in the database
number of items in the results array
items array
type of the link = ‘redirect’ HTTP redirect with 3xx status code
referring domain the link was found on this domain
referenced domain the link is pointing to this domain
referring page relative URL of the page on which the link was found
referenced page relative URL of the page to which the link is pointing
referring page absolute URL of the page on which the link was found
referenced page absolute URL of the page to which the link is pointing
link attribute added to external link indicates link attributes added to the link_to on the page_from ["ugc","noopener"]
indicates whether the link is dofollow if the value is true, the link doesn’t have a rel="nofollow" attribute
url scheme of the referring page
url scheme of the referenced page
direction of the link possible values: internal, external
link is broken indicates whether a link is directing to a broken page or resource
image text
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
status code of the referenced page status code of the page to which the link is pointing
alternative text for the image
url of the image
hreflang validity status indicates whether the hreflang attribute is correctly implemented
hreflang attribute value language and optional country code specified in the hreflang attribute example: "en-US", "fr"