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

# Get import status

> Poll an import job until it's completed or failed. Completed jobs carry the download link, file details, and cost.



## OpenAPI

````yaml openapi.yaml GET /import/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 the result to you when the job succeeds.


    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 and speech-to-text provider keys. These calls carry
      secrets, so the docs playground is off for them.
  - name: Webhooks
    description: Requests Importly sends to your `webhookUrl` when a job completes.
paths:
  /import/status:
    get:
      tags:
        - Media
      summary: Get import status
      description: >
        Returns the state of an import job. Poll it every few seconds until
        `status` is `completed`

        (the `result` holds the download link) or `failed` (the `message` says
        why). Free.
      operationId: getImportStatus
      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/ImportStatus'
              examples:
                completed:
                  summary: Completed (audio-only import)
                  value:
                    success: true
                    data:
                      jobId: a824760e-ece1-4415-8838-ce2a7785ea6b
                      status: completed
                      result:
                        mediaUrl: >-
                          https://fly.storage.tigris.dev/cdn-storage/imports/a824760e-ece1-4415-8838-ce2a7785ea6b/Me%20at%20the%20zoo.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=604800&X-Amz-Signature=…
                        title: Me at the zoo
                        duration: 19
                        thumbnailUrl: https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg
                        filename: Me at the zoo.mp3
                        fileSizeBytes: 120621
                        downloadedBytes: 252182
                        costInDollars: 0.03
                      startedAt: '2026-11-16T14:36:05.491+00:00'
                      completedAt: '2026-11-16T14:37:36.956+00:00'
                running:
                  summary: Still running
                  value:
                    success: true
                    data:
                      jobId: a824760e-ece1-4415-8838-ce2a7785ea6b
                      status: running
                      startedAt: '2026-11-16T14:36:05.491+00:00'
                      completedAt: null
                failed:
                  summary: Failed
                  value:
                    success: true
                    data:
                      jobId: a824760e-ece1-4415-8838-ce2a7785ea6b
                      status: failed
                      message: Source video is unavailable.
                      code: VIDEO_UNAVAILABLE
                      documentationUrl: https://www.importly.io/docs/errors/media-unavailable
                      startedAt: '2026-11-16T14:36:05.491+00:00'
                      completedAt: '2026-11-16T14:36:20.102+00:00'
        '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:
    ImportStatus:
      type: object
      required:
        - jobId
        - status
      properties:
        jobId:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/JobStatusValue'
        result:
          $ref: '#/components/schemas/ImportResult'
        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.
            `VIDEO_PRIVATE`, `PLAYLIST_NOT_SUPPORTED` or `FILE_TOO_LARGE`.
        documentationUrl:
          type: string
          format: uri
          description: >-
            Only when `failed` with a known `code`. A page explaining the error
            and how to fix it, e.g.
            `https://www.importly.io/docs/errors/media-unavailable`.
        startedAt:
          type:
            - string
            - 'null'
          format: date-time
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
    JobStatusValue:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
      description: >-
        `queued` and `running` mean keep polling; `completed` and `failed` are
        final.
    ImportResult:
      type: object
      properties:
        mediaUrl:
          type: string
          description: Signed download link on Importly storage. Expires after 7 days.
        title:
          type: string
        duration:
          type: number
          description: Length in seconds.
        thumbnailUrl:
          type: string
          description: The source platform's own thumbnail.
        filename:
          type: string
          description: The delivered file's name, from the media title.
        fileSizeBytes:
          type: integer
          description: Size of the delivered file.
        downloadedBytes:
          type: integer
          description: Bytes downloaded from the source. This is what's billed.
        costInDollars:
          type: number
          description: >-
            What the import cost (the transcript is reported separately in
            `transcript.costInDollars`).
        transcript:
          description: >-
            Only with `includeTranscript`. The transcript, or a skipped marker
            if it couldn't be produced.
          oneOf:
            - $ref: '#/components/schemas/TranscriptFields'
            - $ref: '#/components/schemas/TranscriptSkipped'
        s3Storage:
          $ref: '#/components/schemas/S3Location'
        s3StorageError:
          type: string
          description: >-
            Only with `store`, if the copy to your bucket failed. The import
            itself still succeeds.
    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`, `INVALID_REQUEST`, `NOT_FOUND` or `INTERNAL_ERROR`.
          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
    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.
            concurrentLimit:
              type: integer
              description: >-
                Present instead of `limit` when too many of your jobs are
                already running.
            currentConcurrent:
              type: integer
              description: Present with `concurrentLimit`.
    TranscriptFields:
      type: object
      required:
        - text
        - source
      properties:
        text:
          type: string
          description: The full transcript as plain text.
        source:
          type: string
          enum:
            - platform_captions
            - importly
            - assemblyai
            - deepgram
            - openai
          description: Where the transcript came from.
        language:
          type:
            - string
            - 'null'
        duration:
          type:
            - number
            - 'null'
          description: Media length in seconds.
        data:
          type: object
          description: Timestamped segments, plus any extra fields your provider returns.
          properties:
            segments:
              type: array
              items:
                $ref: '#/components/schemas/TranscriptSegment'
        costInDollars:
          type: number
          description: What the transcription cost.
        downloadCostInDollars:
          type: number
          description: Speech-to-text only. The audio download's share of the cost.
    TranscriptSkipped:
      type: object
      required:
        - status
        - reason
      properties:
        status:
          type: string
          const: skipped
        reason:
          type: string
        costInDollars:
          type: number
          const: 0
    S3Location:
      type: object
      properties:
        url:
          type: string
          description: Full URL of the object in your bucket.
        bucket:
          type: string
        key:
          type: string
          description: Object key (path within the bucket).
    TranscriptSegment:
      type: object
      properties:
        start:
          type: number
          description: Start time in seconds.
        end:
          type: number
          description: End time in seconds.
        text:
          type: string
  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. 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
  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.