Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.discovr.media/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves a paginated list of rows for a specific page. Rows are created on-demand if they don’t exist.

Parameters

NameTypeRequiredDescription
pageIdstringYesThe unique identifier of the page
nextPageTokenstringNoOpaque pagination token returned from the previous page
limitintegerNoMaximum number of rows to return

Returns

GetRowsResponse — List of rows retrieved successfully
{
  "rows": [
{
  "id": "string",
  "title": "string",
  "pageId": "string",
  "type": "media" /* RowType: "media", "navigation", "provider", "top_n" */,
  "createdAt": "string" /* date-time */
}
],
  "hasMore": false,
  "nextPageToken": "string"
}

Example

import { DiscovrClient } from "discovr";
import type { GetRowsResponse } from "discovr";

const discovr = new DiscovrClient("your-client-id", {
  basePath: "https://api.discovr.media",
});

// After sign-in and profile selection …
const response: GetRowsResponse = await discovr.getRows("example", { nextPageToken: "example", limit: 5 });
console.log(response);