> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get collection listing status

> Poll a collection listing job until it's completed or failed. Completed jobs carry the page of items and the cursor for the next one.



## OpenAPI

````yaml openapi.yaml GET /collection/status
openapi: 3.1.0
info:
  title: Importly API
  version: 1.0.0
  summary: Download media, get transcripts, and read metadata from a URL.
  description: >
    Importly turns a public media URL (YouTube, TikTok, podcasts and more) into
    a downloadable file,

    a transcript, or metadata.


    Every job is asynchronous. A `POST` returns a `jobId` right away. Then
    either poll the matching

    `/status` endpoint until `status` is `completed` or `failed`, or pass a
    `webhookUrl` and Importly

    posts to you once when the job finishes: the result when it succeeds, or
    `success: false` with

    `code` and `message` when it fails.


    Every response uses one envelope: `{ "success": true, "data": … }` on
    success and

    `{ "success": false, "error": "…" }` on failure. Responses carry
    `X-RateLimit-Limit`,

    `X-RateLimit-Remaining`, `X-RateLimit-Reset` (Unix time in ms) and
    `X-RateLimit-Window` headers.


    Billing is pay-as-you-go from a credit balance. New accounts get $3.00 in
    free credits, no card required.
  contact:
    name: Importly support
    email: support@importly.io
    url: https://www.importly.io/docs
servers:
  - url: https://api.importly.io
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Media
    description: Download video or audio from a URL.
  - name: Transcripts
    description: Turn a media URL into text with timestamped segments.
  - name: Metadata
    description: >-
      Read a URL's title, duration, thumbnail, formats and more without
      downloading the media.
  - name: Account
    description: Your credit balance.
  - name: Account settings
    description: >-
      Stored S3 credentials. These calls carry secrets, so the docs playground
      is off for them.
  - name: Webhooks
    description: Requests Importly sends to your `webhookUrl` when a job succeeds or fails.
paths:
  /collection/status:
    get:
      tags:
        - Metadata
      summary: Get collection items status
      description: >
        Returns the state of a collection job. Poll it until `status` is
        `completed` (the `result` has the page of

        `items` and the `nextCursor` for the next one) or `failed`. Free.
      operationId: getCollectionStatus
      parameters:
        - $ref: '#/components/parameters/JobId'
      responses:
        '200':
          description: >-
            The job's current state. A failed job still returns 200, with
            `status` set to `failed`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/CollectionStatus'
              examples:
                completed:
                  summary: Completed
                  value:
                    success: true
                    data:
                      jobId: 0f8c2a51-6b0e-4c39-9d1f-2b7a4e6c9a10
                      status: completed
                      result:
                        collection:
                          id: PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI
                          url: >-
                            https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI
                          title: Popular Music Videos
                          uploader: Music
                          itemCount: 182
                        items:
                          - id: fOT0BUpITw8
                            url: https://www.youtube.com/watch?v=fOT0BUpITw8
                            title: BELLAKEO (Video Oficial) - Peso Pluma, Anitta
                            duration: 235
                            isLive: false
                            isCollection: false
                        nextCursor: >-
                          eyJ2IjoxLCJoIjoiOWI1ZTc0ZDMwYWY4ZjQ5MCIsIm8iOjEwMH0.3qv2rQ0dYw8m4cWb1uT7hA
                        truncated: false
                        costInDollars: 0.003
                failed:
                  summary: Failed
                  value:
                    success: true
                    data:
                      jobId: 0f8c2a51-6b0e-4c39-9d1f-2b7a4e6c9a10
                      status: failed
                      message: >-
                        This link is a single item, not a collection. Send it to
                        /import, /metadata or /transcribe.
                      code: NOT_A_COLLECTION
                      documentationUrl: https://www.importly.io/docs/errors/invalid-url
                      retryable: false
        '400':
          $ref: '#/components/responses/MissingJobId'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/JobNotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    JobId:
      name: id
      in: query
      required: true
      description: The `jobId` returned when you started the job.
      schema:
        type: string
        format: uuid
      example: a824760e-ece1-4415-8838-ce2a7785ea6b
  schemas:
    CollectionStatus:
      type: object
      required:
        - jobId
        - status
      properties:
        jobId:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/JobStatusValue'
        result:
          $ref: '#/components/schemas/CollectionResult'
        message:
          type: string
          description: Only when `failed`. Why the job failed.
        code:
          type: string
          description: >
            Only when `failed`, usually. A stable error code, e.g.
            `NOT_A_COLLECTION` (the link is a single item),

            `COLLECTION_TOO_LARGE` (a feed too large to list right now) or
            `VIDEO_UNAVAILABLE`.
        documentationUrl:
          type: string
          format: uri
          description: >-
            Only when `failed` with a known `code`. A page explaining the error
            and how to fix it.
        retryable:
          type: boolean
          description: >-
            Only when `failed`. Whether sending the same request again can
            succeed.
        retryAfterSeconds:
          type: integer
          description: >-
            Only when `failed` and `retryable`, when known. How long to wait
            before trying again.
        balanceDollars:
          type: number
          description: >-
            Only with `INSUFFICIENT_BALANCE` and `heldDollars`. Your free
            balance when the job was checked, in dollars, without what imports
            still running hold.
        heldDollars:
          type: number
          description: >-
            Only with `INSUFFICIENT_BALANCE`, when your imports still running
            hold money on top of `balanceDollars`, in dollars. Retry after
            `retryAfterSeconds`.
        webhook:
          $ref: '#/components/schemas/WebhookDelivery'
    JobStatusValue:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
      description: >-
        `queued` and `running` mean keep polling; `completed` and `failed` are
        final.
    CollectionResult:
      type: object
      required:
        - collection
        - items
        - nextCursor
        - truncated
        - costInDollars
      properties:
        collection:
          type: object
          required:
            - id
            - url
            - title
            - uploader
            - itemCount
          properties:
            id:
              type:
                - string
                - 'null'
            url:
              type: string
              format: uri
              description: The link you sent.
            title:
              type:
                - string
                - 'null'
            uploader:
              type:
                - string
                - 'null'
            itemCount:
              type:
                - integer
                - 'null'
              description: >-
                How many items the collection lists (up to 5,000), when known.
                `null` when the site doesn't say and the end hasn't been reached
                yet.
        items:
          type: array
          description: This page's items, in the collection's order. Empty past the end.
          items:
            $ref: '#/components/schemas/CollectionItem'
        nextCursor:
          type:
            - string
            - 'null'
          description: >-
            Send it as `cursor`, with the same `url`, for the next page. `null`
            on the last page.
        truncated:
          type: boolean
          description: >
            `true` when the collection has more items than can be listed: past
            5,000, or past how far a very large

            collection could be read in one go. The pages end there.
        costInDollars:
          type: number
          description: What this page cost, in US dollars.
    WebhookDelivery:
      type: object
      description: >
        Only on a finished job that has a `webhookUrl`. How the delivery of its
        `completed` or `failed` webhook is

        going. See [Retries](https://www.importly.io/docs/webhooks#retries).
      required:
        - status
        - attempts
        - lastHttpStatus
        - lastAttemptAt
      properties:
        status:
          type: string
          enum:
            - pending
            - retrying
            - delivered
            - failed
          description: >
            `pending`: queued, not tried yet. `retrying`: an attempt failed and
            another is scheduled. `delivered`: your

            endpoint answered with a 2xx. `failed`: no more attempts (all 7
            used, or a response that ends the retries).
        attempts:
          type: integer
          description: Delivery attempts made so far, up to 7.
        lastHttpStatus:
          type:
            - integer
            - 'null'
          description: >-
            Your endpoint's HTTP status on the last attempt; `null` after a
            timeout or connection error, or before the first attempt.
        lastAttemptAt:
          type:
            - string
            - 'null'
          format: date-time
        lastError:
          type: string
          description: >
            Only on a `failed` delivery that was never sent: why it was refused,
            e.g. `Webhook URL resolves to a

            private or internal address`. A refusal ends the delivery, so send a
            public `https://` URL next time.
      example:
        status: delivered
        attempts: 1
        lastHttpStatus: 200
        lastAttemptAt: '2026-11-16T14:37:37.402+00:00'
    Error:
      type: object
      required:
        - success
        - error
        - code
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: What went wrong, in plain English.
        code:
          type: string
          description: >
            A stable, machine-readable error code: `UNAUTHORIZED`,
            `INSUFFICIENT_BALANCE`, `RATE_LIMITED`,

            `INVALID_URL`, `PLAYLIST_NOT_SUPPORTED`, `INVALID_REQUEST`,
            `NOT_FOUND` or `INTERNAL_ERROR`, and on

            `POST /collection` also `NOT_A_COLLECTION`,
            `COLLECTION_NOT_SUPPORTED` or `INVALID_CURSOR`.
          examples:
            - INVALID_URL
        documentationUrl:
          type: string
          format: uri
          description: A page explaining this error and how to fix it.
          examples:
            - https://www.importly.io/docs/errors/invalid-url
        requestId:
          type: string
          description: >-
            Only on `5xx` errors. The request's id, also sent on every response
            as the `X-Request-Id` header. Quote it to support@importly.io and we
            can find the request.
          examples:
            - req_3f9a1c7e2b8d4a60
    RateLimitError:
      allOf:
        - $ref: '#/components/schemas/Error'
        - type: object
          properties:
            limit:
              type: integer
              description: Requests allowed per window.
            remaining:
              type: integer
              description: Requests left in the window.
            reset:
              type: integer
              description: When the window resets, as Unix time in milliseconds.
            retryAfter:
              type: integer
              description: Seconds to wait before retrying.
            endpoint:
              type: string
              description: The rate-limit bucket the request counted against.
            outstandingLimit:
              type: integer
              description: >-
                Present instead of `limit` when too many of your jobs of this
                kind are queued or running; the most allowed at once.
            outstanding:
              type: integer
              description: >-
                Present with `outstandingLimit`. How many of your jobs of this
                kind are queued or running.
    CollectionItem:
      type: object
      required:
        - id
        - url
        - title
        - duration
        - isLive
        - isCollection
      properties:
        id:
          type: string
          description: >-
            The item's id on the site. For a podcast episode without one, a
            stable id made from its link.
        url:
          type: string
          format: uri
          description: >
            The item's link, ready to send to `/import`, `/transcribe` or
            `/metadata` as it is. For a podcast

            episode it's the episode's audio file. When `isCollection` is `true`
            it's a collection's link: list it

            with `POST /collection` instead.
        title:
          type:
            - string
            - 'null'
          description: >-
            `null` when the collection doesn't give it (SoundCloud sets, Vimeo
            showcases).
        duration:
          type:
            - number
            - 'null'
          description: >
            Length in seconds, when the collection gives it: YouTube videos (not
            shorts), TikTok and podcast feeds.

            `null` otherwise, and for a live stream; get it with `POST
            /metadata/basic`.
        isLive:
          type:
            - boolean
            - 'null'
          description: >-
            `true` for a YouTube live stream that hasn't ended. `null` on sites
            that don't say.
        isCollection:
          type: boolean
          description: >
            `true` when the item is itself a collection, e.g. an album on a
            Bandcamp artist page or a tab of a

            YouTube channel. List it with `POST /collection`, not `/import`.
  responses:
    MissingJobId:
      description: The `id` query parameter is missing.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Missing id
            code: INVALID_REQUEST
            documentationUrl: https://www.importly.io/docs/errors/invalid-request
    Unauthorized:
      description: The API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingHeader:
              summary: No Authorization header
              value:
                success: false
                error: >-
                  Missing or invalid Authorization header. Must be in format:
                  Bearer YOUR_API_KEY
                code: UNAUTHORIZED
                documentationUrl: https://www.importly.io/docs/errors/unauthorized
            invalidKey:
              summary: Unknown key
              value:
                success: false
                error: Invalid API key
                code: UNAUTHORIZED
                documentationUrl: https://www.importly.io/docs/errors/unauthorized
    JobNotFound:
      description: No job with that `id` belongs to your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Import job not found
            code: NOT_FOUND
            documentationUrl: https://www.importly.io/docs/errors/not-found
    TooManyRequests:
      description: >-
        You hit the hourly rate limit for this endpoint, or have too many jobs
        queued or running (`outstanding` and `outstandingLimit` are set). Wait
        `retryAfter` seconds and retry.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-RateLimit-Window:
          $ref: '#/components/headers/X-RateLimit-Window'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            success: false
            error: 'Rate limit exceeded. Limit: 240 requests per 1 h'
            code: RATE_LIMITED
            limit: 240
            remaining: 0
            reset: 1763200000000
            retryAfter: 1800
            endpoint: /import
            documentationUrl: https://www.importly.io/docs/errors/rate-limited
    InternalError:
      description: Unexpected server error. Retry with exponential backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error: Internal server error
            code: INTERNAL_ERROR
            documentationUrl: https://www.importly.io/docs/errors/server-error
            requestId: req_3f9a1c7e2b8d4a60
  headers:
    X-RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: When the window resets, as Unix time in milliseconds.
      schema:
        type: integer
    X-RateLimit-Window:
      description: Window length, e.g. `1 h`.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key from the dashboard, sent as `Authorization: Bearer <api
        key>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.