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

# Account

> Returns your plan, how many credits you have left this billing period, and your Stealth Mode bandwidth. Use it from code to check your balance before a large batch or crawl.

`credits.used` includes credits held by jobs that are still running. If a job ends up costing less than what was held, the difference comes back. For usage over time, use [Usage stats](/api-reference/account/usage-stats).




## OpenAPI

````yaml GET /account
openapi: 3.1.0
info:
  title: Spidra API
  version: 1.0.0
  description: >-
    Public API endpoints for web scraping via Spidra. Authenticate with
    `Authorization: Bearer YOUR_API_KEY` or `x-api-key: YOUR_API_KEY`; both work
    on every endpoint.
servers:
  - url: https://api.spidra.io/api
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /account:
    get:
      tags:
        - Account
      summary: Account
      description: >
        Returns your plan, how many credits you have left this billing period,
        and your Stealth Mode bandwidth. Use it from code to check your balance
        before a large batch or crawl.


        `credits.used` includes credits held by jobs that are still running. If
        a job ends up costing less than what was held, the difference comes
        back. For usage over time, use [Usage
        stats](/api-reference/account/usage-stats).
      responses:
        '200':
          description: Your plan, credits and bandwidth.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      plan:
                        type: object
                        properties:
                          name:
                            type: string
                            description: Your current plan.
                      credits:
                        type: object
                        properties:
                          limit:
                            type: integer
                            description: >-
                              Credits available this billing period, including
                              top-ups.
                          used:
                            type: integer
                            description: >-
                              Credits used this period, including credits held
                              by running jobs.
                          remaining:
                            type: integer
                            description: '`limit` minus `used`, never below 0.'
                          billingCycleStart:
                            type:
                              - string
                              - 'null'
                            format: date-time
                            description: When the current billing period started.
                      proxyBandwidth:
                        type: object
                        description: Stealth Mode bandwidth for this period, in MB.
                        properties:
                          limitMb:
                            type: number
                            description: Bandwidth available, including top-ups.
                          usedMb:
                            type:
                              - string
                              - number
                            description: >-
                              Bandwidth used. Currently sent as a string, such
                              as `"1999.998"`, so convert it before doing math.
                          remainingMb:
                            type: number
                            description: '`limitMb` minus `usedMb`, never below 0.'
                      subscription:
                        type:
                          - object
                          - 'null'
                        description: Your subscription, or `null` on the free plan.
                        properties:
                          status:
                            type: string
                            description: >-
                              The subscription's status, such as `active` or
                              `past_due`.
              example:
                status: success
                data:
                  plan:
                    name: Builder
                  credits:
                    limit: 25000
                    used: 17446
                    remaining: 7554
                    billingCycleStart: '2026-10-24T16:38:43.000Z'
                  proxyBandwidth:
                    limitMb: 2000
                    usedMb: '1999.998'
                    remainingMb: 0.0019999999999527063
                  subscription:
                    status: active
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Your plan couldn't be found. Contact support.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: error
                message: Plan not found
        '500':
          description: The account couldn't be loaded. Try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                status: error
                message: Failed to fetch account information
components:
  responses:
    Unauthorized:
      description: The API key is missing, wrong, or turned off.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missing:
              summary: No key sent
              value:
                status: error
                message: Missing authentication
            invalid:
              summary: Wrong or turned-off key
              value:
                status: error
                message: Invalid token or API key
  schemas:
    ErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: What went wrong, as a sentence you can show to a person.
        code:
          type: string
          description: >-
            A stable code for the error, when there is one, such as
            `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on
            `message`.
        errors:
          description: >-
            On validation errors (`422`), every problem with the request.
            Scrape, batch, crawl, map and search return a list of sentences.
            Templates, presets and monitors return `{ field, message }` objects.
          oneOf:
            - type: array
              items:
                type: string
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
        retry_after:
          type: integer
          description: >-
            On `503 SERVICE_BUSY`, how many seconds to wait before sending the
            request again.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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