# 9001-Paginated Query API

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /common/next-page:
    get:
      summary: 9001-Paginated Query API
      deprecated: false
      description: >-
        Pagination API Notes

        Paginated query APIs return the "next" field in one of two formats:

        1. Format 1: No pagination data

        "next": null

        2. Format 2: With pagination data

        "next": {
          "taskId": "c95097f2-a7d9-4883-9c70-a6858c4b7906",
          "pageKey": "2"  // indicates fetching page 2
        }


        Notes:

        When next is empty/null, there is no next page and the query is
        complete.

        When next has a value, call this paginated API again with the returned
        parameters.
      operationId: 9001_Paginated Query API
      tags:
        - II. List of Interfaces/9. Other Services
      parameters:
        - name: taskId
          in: query
          description: ''
          required: true
          example: task-abc123
          schema:
            type: string
            examples:
              - task-abc123
        - name: pageKey
          in: query
          description: ''
          required: true
          example: page-key-001
          schema:
            type: string
            examples:
              - page-key-001
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apifox-orders: []
          headers: {}
          x-apifox-name: Success
      security:
        - apikey-header-x-openapi-key: []
      x-apifox-folder: II. List of Interfaces/9. Other Services
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4128055/apis/api-478038444-run
components:
  schemas: {}
  securitySchemes:
    apikey-header-x-openapi-key:
      type: apiKey
      in: header
      name: x-openapi-key
servers:
  - url: https://api.foxdata.com/apiv1/open-api
    description: Api Server
security:
  - apikey-header-x-openapi-key: []

```
