Assets
Read an exact line range from an asset's text
get/api/v1/assets/{assetId}/text/lines
Request
- Base URL: https://api-docs.busabase.com
- URL: https://api-docs.busabase.com/api/v1/assets/{assetId}/text/lines
- Auth: none declared
Path parameters
assetIdstring required
Query parameters
startLineinteger required
First line to read. 1-indexed, and INCLUSIVE.
endLineinteger required
Last line to read, INCLUSIVE. A range wider than 2000 lines is silently narrowed to the first 2000 rather than rejected — the response reports lineCountCapped when that happened, so check it before concluding the file ends there.
Response
Lines [startLine, endLine] (range capped at 2000 lines / ~2MB response) read via a storage byte-range request — the server never loads the whole object, even for a multi-GB file.
Changes
No recorded changes to this operation across all 1 revision of this API.