v1

latestOpenAPI 3.1.2Apache-2.02026-07-17241638.7 KB
Reader

Read link objects

Reads link data (LinkDatum) from the Nutch webgraph. Supports reading all rows, a limited number of rows, a row range, or counting the total number of rows.

post/reader/link/read

Query parameters

nrowsinteger

Number of rows to read. If not specified (or -1), all rows are returned.

startinteger

Starting line number for a range read.

endinteger

Ending line number for a range read.

countboolean

If true, returns the number of lines instead of the data itself. When set, the response content type is text/plain.

Request body

pathstring required

The path to the sequence file, link data, or node data to read.

Example request

{
  "path": "crawl-01/crawldb/current/part-00000/data"
}

Response

Link data. Returns application/json when reading rows, or text/plain when count=true.

object[] required