Get Link Extraction results
Read a Link Extraction job's pages as each one finishes, page through them with a cursor, or download the finished job as JSONL or CSV.
GEThttps://rankfield.dev/v1/html/link-extraction/jobs/{id}/results
Parameters
Headers
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Authorization | string | Yes | – | Bearer followed by your API key. See Authentication. |
Path parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | – | The job id. |
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
cursor | integer | No | 0 | Where to continue: the nextCursor of the previous answer. |
limit | integer | No | 10 | Pages per answer, 1–100. |
wait | integer | No | 0 | Seconds, 0–25, to hold the request until the next page is ready. |
view | string | No | the job's view | unique or occurrences. A job started with occurrences can be read either way. |
type | string | No | all | all, internal or external. |
format | string | No | json | json pages through results. Once the job is completed, jsonl streams one page per line and csv streams one row per link: page_url, page_status, final_url, href, anchor, internal, rel, nofollow, sponsored, ugc, occurrences, error. |
Read pages as they finish
- Start with
cursor=0. - Each answer's
pagesholds the pages finished since your cursor, in the order they finished.positionis the page's index in yoururls, from 0. - Pass
nextCursorback ascursor. WhennextCursorisnull, every page has been delivered andstatusiscompleted. - An empty
pageslist means nothing new yet: ask again afterretryAfterMs, or addwait=20so the request waits for the next page.
A page that failed has "ok": false, its status and an error with message, code and retryable, as in the single-page 422.
Download a finished job
?format=jsonl streams one page per line; ?format=csv streams one row per link: page_url, page_status, final_url, href, anchor, internal, rel, nofollow, sponsored, ugc, occurrences, error. Both answer 409 until the job is completed. A download always starts at the beginning: sending a cursor with it answers 400.
Errors
| Status | When |
|---|---|
| 400 | cursor, limit, wait or format is invalid, or a download was sent with a cursor. |
| 401 | No valid API key. |
| 404 | No job with this id for this key. |
| 409 | format=jsonl or csv before the job is completed. |
| 410 | The job has expired: jobs are kept for 24 hours after they are created. |
MCP
On the MCP server, the tool for this is get_link_extraction_results.