MetricDuck Research API

The research API from MetricDuck — 2 operation(s) for research.

GitHub OpenAPI

Operations 2

GET /api/v1/research/facts/{account}/sectors Get Fact Sector Benchmarks #
GET /api/v1/research/facts/available List Available Xbrl Accounts #

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-research-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-research-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Metric Duck Research API
  description: 'SEC filing data API: equity fundamentals updated daily from SEC EDGAR'
  version: 2.0.0
tags:
- name: Research
paths:
  /api/v1/research/facts/{account}/sectors:
    get:
      tags:
      - Research
      summary: Get Fact Sector Benchmarks
      description: 'Get sector benchmarks for a raw XBRL fact (account).


        Returns percentile-based benchmarks (P25, Median, P75) by sector,

        computed from the latest consolidated fact for each company.


        **Key Features:**

        - Uses consolidated facts only (is_consolidated=TRUE)

        - Gets most recent fact per company (latest as_of_date)

        - Aggregates by sector using SIC code mapping


        **Common XBRL Accounts:**

        - Revenue: RevenueFromContractWithCustomerExcludingAssessedTax, Revenues

        - Assets: Assets, CurrentAssets, NoncurrentAssets

        - Liabilities: Liabilities, CurrentLiabilities

        - Cash: CashAndCashEquivalentsAtCarryingValue

        - Income: NetIncomeLoss, OperatingIncomeLoss


        **Cache:** Results cached for 6 hours.'
      operationId: get_fact_sector_benchmarks_api_v1_research_facts__account__sectors_get
      security:
      - HTTPBearer: []
      - APIKeyHeader: []
      parameters:
      - name: account
        in: path
        required: true
        schema:
          type: string
          description: XBRL account name (e.g., 'RevenueFromContractWithCustomerExcludingAssessedTax', 'Assets')
          title: Account
        description: XBRL account name (e.g., 'RevenueFromContractWithCustomerExcludingAssessedTax', 'Assets')
      - 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/FactBenchmarkList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/research/facts/available:
    get:
      tags:
      - Research
      summary: List Available Xbrl Accounts
      description: 'List XBRL accounts available for benchmarking.


        Returns accounts that have sufficient data coverage across companies.

        Useful for discovering which XBRL facts can be used for research pages.


        **Note:** Only returns measurement facts (not metadata) from

        consolidated statements (not dimensional breakdowns).'
      operationId: list_available_xbrl_accounts_api_v1_research_facts_available_get
      parameters:
      - name: min_companies
        in: query
        required: false
        schema:
          type: integer
          minimum: 10
          description: Minimum companies required with this fact
          default: 50
          title: Min Companies
        description: Minimum companies required with this fact
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          description: Maximum number of accounts to return
          default: 200
          title: Limit
        description: Maximum number of accounts to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FactBenchmark:
      properties:
        sector_code:
          type: string
          title: Sector Code
          description: Sector code
        sector_name:
          type: string
          title: Sector Name
          description: Human-readable sector name
        median:
          type: number
          title: Median
          description: Median value across companies in sector
        p25:
          type: number
          title: P25
          description: 25th percentile
        p75:
          type: number
          title: P75
          description: 75th percentile
        min_value:
          type: number
          title: Min Value
          description: Minimum value
        max_value:
          type: number
          title: Max Value
          description: Maximum value
        company_count:
          type: integer
          title: Company Count
          description: Number of companies with this fact in sector
        unit:
          type: string
          title: Unit
          description: XBRL unit (USD, shares, pure)
        as_of_date:
          type: string
          title: As Of Date
          description: Data freshness date
      type: object
      required:
      - sector_code
      - sector_name
      - median
      - p25
      - p75
      - min_value
      - max_value
      - company_count
      - unit
      - as_of_date
      title: FactBenchmark
      description: 'Sector benchmark statistics for raw XBRL facts.


        Provides percentile-based benchmarks for XBRL account values.'
    FactBenchmarkList:
      properties:
        account:
          type: string
          title: Account
          description: XBRL account name (concept)
        concept_label:
          type: string
          title: Concept Label
          description: Human-readable concept label
        benchmarks:
          items:
            $ref: '#/components/schemas/FactBenchmark'
          type: array
          title: Benchmarks
          description: List of sector benchmarks
        total_sectors:
          type: integer
          title: Total Sectors
          description: Number of sectors with data
        total_companies:
          type: integer
          title: Total Companies
          description: Total companies across all sectors
        generated_at:
          type: string
          title: Generated At
          description: Timestamp when generated
      type: object
      required:
      - account
      - concept_label
      - benchmarks
      - total_sectors
      - total_companies
      - generated_at
      title: FactBenchmarkList
      description: Response model for XBRL fact sector benchmark endpoint.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key