New in 2.4: Test runs you can trust See what's new →

分页方式

同一个 100 条的数据集,以六种常见的分页方式提供,方便客户端逐一测试:offset/limit、Spring 分页信封、Stripe 游标、GitHub Link 响应头、keyset(after_id)和 HAL(_links)。

请求示例

Page with an opaque cursor (Stripe style). 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/pagination/cursor?limit=3"
在 Studio 中运行
响应 · 200 OK
{
  "object": "list",
  "url": "/api/pagination/cursor",
  "data": [
    {
      "id": 1,
      "name": "Smart Headset",
      "category": "electronics",
      "price": 42.01,
      "createdAt": "2026-01-01T21:00:00Z"
    },
    {
      "id": 2,
      "name": "Compact Speaker",
… (15 more lines)