Read exact lines from a source file within a public package. This is useful for fetching complete file content when you already have the file SHA256 hash (typically obtained from grep or hybrid search results). Maximum 200 lines per request.
API key must be provided in the Authorization header
Package registry containing the file
crates_io, golang_proxy, npm, py_pi "npm"
Name of the package containing the file
"react"
SHA256 hash of the file to read (obtained from grep/hybrid search)
"a1b2c3d4e5f6..."
Starting line number (1-based, inclusive)
x >= 11
Ending line number (1-based, inclusive)
x >= 1100
Specific version of the package (optional, defaults to latest)
"18.2.0"
File content retrieved successfully