api-stock-com Account Management API

The Account Management API from api-stock-com — 2 operation(s) for account management.

Operations 2

GET /api/v1/user/me Request to get current user #
GET /api/v1/stats Usage and spend statistics for the current user #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-stock-com:api-stock-com-account-management-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-stock-com-account-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stock Com Account Management API
  version: '1.0'
  contact: {}
  description: 'Operations tagged Account Management across 2 of this provider''s published API definitions: api-stock-com-openapi.json, api-stock-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.api-stock.com
  description: Production
tags:
- name: Account Management
paths:
  /api/v1/user/me:
    get:
      operationId: UserController_getUser
      parameters: []
      responses:
        '200':
          description: Current user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponseDto'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedErrorResponseDto'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundErrorResponseDto'
        '500':
          description: Internal Server Error - Server error occurred
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponseDto'
      security:
      - apiKey: []
      summary: Request to get current user
      tags:
      - Account Management
    servers:
    - url: https://api.api-stock.com
      description: Production
  /api/v1/stats:
    get:
      operationId: StatsController_getStats
      parameters:
      - name: range
        required: false
        in: query
        description: Preset period; use `custom` together with from/to
        schema:
          default: today
          type: string
          enum:
          - today
          - 7d
          - 30d
          - custom
      - name: from
        required: false
        in: query
        description: Start of a custom period (ISO 8601 calendar date)
        schema:
          type: string
      - name: to
        required: false
        in: query
        description: End of a custom period (ISO 8601 calendar date)
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponseDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedErrorResponseDto'
      security:
      - apiKey: []
      summary: Usage and spend statistics for the current user
      tags:
      - Account Management
    servers:
    - url: https://api.api-stock.com
      description: Production
components:
  schemas:
    StatsBucketDto:
      type: object
      properties:
        key:
          type: string
          description: Bucket key — a date (YYYY-MM-DD) or model id
        count:
          type: number
          description: Number of generations in the bucket
        cost:
          type: number
          description: Amount spent in the bucket, in cents; refunded failures excluded
      required:
      - key
      - count
      - cost
    UnauthorizedErrorResponseDto:
      type: object
      properties:
        code:
          type: number
          description: HTTP status code
          example: 401
        error:
          description: Error details
          allOf:
          - $ref: '#/components/schemas/ErrorDetails'
      required:
      - code
      - error
    StatsResponseDto:
      type: object
      properties:
        from:
          type: string
          description: Period start actually used (ISO 8601)
        to:
          type: string
          description: Period end actually used (ISO 8601)
        totals:
          $ref: '#/components/schemas/StatsTotalsDto'
        byDay:
          description: Spend per day, ascending, gaps filled with zeroes
          type: array
          items:
            $ref: '#/components/schemas/StatsBucketDto'
        byModel:
          description: Spend per model, most expensive first
          type: array
          items:
            $ref: '#/components/schemas/StatsBucketDto'
        byType:
          description: Spend per generation type
          type: array
          items:
            $ref: '#/components/schemas/StatsBucketDto'
      required:
      - from
      - to
      - totals
      - byDay
      - byModel
      - byType
    NotFoundErrorResponseDto:
      type: object
      properties:
        code:
          type: number
          description: HTTP status code
          example: 404
        error:
          description: Error details
          allOf:
          - $ref: '#/components/schemas/ErrorDetails'
      required:
      - code
      - error
    ErrorDetails:
      type: object
      properties:
        message:
          type: string
          description: Human-readable cause. English, stable — safe to log, not meant for display to end users in other languages.
        type:
          type: string
          description: Error type
        code:
          type: string
          description: Stable machine-readable code. Match on this rather than on `message` — clients use it to render their own localized wording.
          example: insufficient_balance
      required:
      - message
      - type
      - code
    UserResponseDto:
      type: object
      properties:
        code:
          type: number
          description: HTTP status code
          example: 200
        data:
          description: Response data
          allOf:
          - $ref: '#/components/schemas/UserData'
      required:
      - code
      - data
    StatsTotalsDto:
      type: object
      properties:
        balance:
          type: number
          description: Current balance, in cents
        spent:
          type: number
          description: Spent within the selected period, in cents. Failed generations are refunded, so they are not counted here even though they count as requests
        spentAllTime:
          type: number
          description: Spent since registration, in cents; refunded failures excluded
        requests:
          type: number
          description: Generations created within the period
        succeeded:
          type: number
          description: Generations finished successfully
        failed:
          type: number
          description: Generations that ended in an error
        inProgress:
          type: number
          description: Generations still running
        llmRequests:
          type: number
          description: LLM chat requests within the period
        llmTokens:
          type: number
          description: LLM tokens consumed within the period
      required:
      - balance
      - spent
      - spentAllTime
      - requests
      - succeeded
      - failed
      - inProgress
      - llmRequests
      - llmTokens
    UserData:
      type: object
      properties:
        id:
          type: string
          description: Internal user ID in the system
          example: 01234567-89ab-cdef-0123-456789abcdef
        balance:
          type: number
          description: Current user balance in integer USD cents
          format: int32
          example: 15075
        createdAt:
          type: string
          description: User creation date
          example: '2026-02-28T11:22:33.000Z'
      required:
      - id
      - balance
      - createdAt
    InternalServerErrorResponseDto:
      type: object
      properties:
        code:
          type: number
          description: HTTP status code
          example: 500
        error:
          description: Error details
          allOf:
          - $ref: '#/components/schemas/ErrorDetails'
      required:
      - code
      - error
  securitySchemes:
    apiKey:
      scheme: bearer
      bearerFormat: API Key
      type: http
      description: Enter your API key
externalDocs:
  description: API Stock documentation
  url: https://docs.api-stock.com
x-refined-from:
- api-stock-com-openapi.json
- api-stock-com-openapi.json