"browse": {
"format": "json", // "json" (default) or "xml" (see 4.11)
"url": "https://api.example.com/books?page={page}&per_page={limit}",
"method": "GET", // default GET
"headers": { "Authorization": "Bearer {token}", "Accept": "application/json" },
"body": "", // for POST APIs
"items": "data.books", // dotted path to the row array; "" = root
"page_size": 8, // rows per screen page, 1..16 (default 8)
"fields": {
"title": "title", // REQUIRED; rows with an empty title are dropped
"author": "authors.0.name", // subtitle under the title
"id": "id", // -> {id}
"url": "links.epub" // -> {url}
}
}
Dotted paths: a.b.c walks objects, and a numeric segment indexes arrays (authors.0.name). A key that itself contains a dot (for example "application/epub+zip") can't be addressed. Use an id and build the URL in download.url instead.
Field values may be strings or whole numbers. Other types read as empty.
Big responses are fine. The response streams to an SD temp file and is parsed from there, keeping only the mapped fields. A 1 MB cap protects against broken servers.