Beta API. See the stability policy.

Pagination

A list in the API comes back a page at a time, so a long list doesn't make one huge response. This article shows how to get the next page, and how to walk through a whole list.

How a page looks

json
{
  "object": "list",
  "data": [...],
  "has_more": true,
  "next_cursor": "proj_xxx"
}

data holds this page of items. If has_more is true, there are more. To get them, send the same request again with cursor set to the next_cursor you just got:

curl -G https://thrustlab.com/v1/projects -H "Authorization: Bearer $THRUSTLAB_API_KEY" -d 'limit=20' -d 'cursor=proj_xxx'

When has_more is false, you've reached the end. Treat the cursor as a ticket you pass back. Don't build or change one yourself.

How many items you get

Use limit to set the page size. Most lists give 25 items if you don't say, and let you ask for up to 100. These are the lists for projects, parts, your own part submissions, starred parts, airfoils and compute unit transactions.

The lists of simulations, sweeps, flights over time and the points of a sweep are bigger. They give 100 items by default, and let you ask for up to 1,000.