MetricDuck Session API

The session API from MetricDuck — 4 operation(s) for session.

GitHub OpenAPI

Operations 4

GET /api/v1/session Get Session #
POST /api/v1/session/anonymous Create Anonymous Session #
POST /api/v1/usage/check Check Usage #
POST /api/v1/usage/increment Increment Usage #

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/metricduck-com:metricduck-com-session-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

metricduck-com-session-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metric Duck Session API
  description: 'SEC filing data API: equity fundamentals updated daily from SEC EDGAR'
  version: 2.0.0
tags:
- name: Session
paths:
  /api/v1/session:
    get:
      tags:
      - Session
      summary: Get Session
      description: Get current session with usage limits and capabilities
      operationId: get_session_api_v1_session_get
      deprecated: true
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
      parameters:
      - name: api_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/session/anonymous:
    post:
      tags:
      - Session
      summary: Create Anonymous Session
      description: Create a new anonymous session with trial limits
      operationId: create_anonymous_session_api_v1_session_anonymous_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
      deprecated: true
  /api/v1/usage/check:
    post:
      tags:
      - Session
      summary: Check Usage
      description: Check if user can make a request before actually making it
      operationId: check_usage_api_v1_usage_check_post
      deprecated: true
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
      parameters:
      - name: api_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsageCheckRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageCheckResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/usage/increment:
    post:
      tags:
      - Session
      summary: Increment Usage
      description: Increment usage counter after successful API call
      operationId: increment_usage_api_v1_usage_increment_post
      deprecated: true
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
      parameters:
      - name: endpoint
        in: query
        required: true
        schema:
          type: string
          title: Endpoint
      - name: api_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UsageData:
      properties:
        trial_calls_used:
          type: integer
          title: Trial Calls Used
          default: 0
        trial_calls_limit:
          type: integer
          title: Trial Calls Limit
          default: 10
        monthly_calls_used:
          type: integer
          title: Monthly Calls Used
          default: 0
        monthly_calls_limit:
          type: integer
          title: Monthly Calls Limit
          default: 100
        reset_date:
          type: string
          format: date-time
          title: Reset Date
      type: object
      title: UsageData
      description: Usage data for a session
    UserCapabilities:
      properties:
        can_access_api:
          type: boolean
          title: Can Access Api
          default: true
        can_export_data:
          type: boolean
          title: Can Export Data
          default: false
        can_view_historical:
          type: boolean
          title: Can View Historical
          default: true
        data_years_limit:
          type: integer
          title: Data Years Limit
          default: 2
        rate_limit_per_minute:
          type: integer
          title: Rate Limit Per Minute
          default: 10
      type: object
      title: UserCapabilities
      description: User capabilities based on tier
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    UsageCheckResponse:
      properties:
        can_proceed:
          type: boolean
          title: Can Proceed
        remaining_calls:
          type: integer
          title: Remaining Calls
        limit_type:
          type: string
          title: Limit Type
          description: 'Type of limit: trial, monthly, or none'
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
      type: object
      required:
      - can_proceed
      - remaining_calls
      - limit_type
      title: UsageCheckResponse
      description: Response for usage check
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UsageCheckRequest:
      properties:
        endpoint:
          type: string
          title: Endpoint
      type: object
      required:
      - endpoint
      title: UsageCheckRequest
      description: Request to check if user can make an API call
    SessionResponse:
      properties:
        id:
          type: string
          title: Id
        tier:
          type: string
          title: Tier
          description: 'User tier: anonymous, trial, free, pro, enterprise'
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
        usage:
          $ref: '#/components/schemas/UsageData'
        capabilities:
          $ref: '#/components/schemas/UserCapabilities'
      type: object
      required:
      - id
      - tier
      - usage
      - capabilities
      title: SessionResponse
      description: Session information response
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key