OpenCapital Companies API

The Companies API from OpenCapital — 5 operation(s) for companies.

GitHub OpenAPI

Operations 5

GET /v1/companies Search company names and tickers, or browse companies #
GET /v1/companies/lookup Resolve company summaries for a bounded list of tickers #
GET /v1/companies/resolve Resolve company identity by ticker or CIK #
GET /v1/companies/{ticker} Company identity and related share classes #
GET /v1/companies/{ticker}/market-cap Stored market capitalization, newest observations first #

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/opencapital-sh:opencapital-sh-companies-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

opencapital-sh-companies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenCapital Data Companies API
  version: 1.0.0
  description: Shared REST data contract for the OpenCapital website, SDK, and external clients. Public operations support anonymous access; credentials select a caller's allowance.
tags:
- name: Companies
paths:
  /v1/companies:
    get:
      operationId: listCompanies
      tags:
      - Companies
      summary: Search company names and tickers, or browse companies
      description: Returns company summaries from the existing search index. marketCap is the indexed USD snapshot used for display and ranking; marketCapChange1yPct is its approximate one-year change as a fraction (0.1 means 10%). Both may lag the market-cap resource. Unknown values remain null.
      security:
      - {}
      - bearerAuth: []
      - applicationKey: []
      parameters:
      - name: query
        in: query
        description: Trimmed search text; an empty query browses companies
        schema:
          default: ''
          type: string
          maxLength: 200
      - name: page
        in: query
        description: One-based result page
        schema:
          default: 1
          type: integer
          minimum: 1
          maximum: 100
      - name: limit
        in: query
        description: Maximum companies per page
        schema:
          default: 20
          type: integer
          minimum: 1
          maximum: 100
      responses:
        '200':
          description: Paginated company summaries; no matches returns an empty companies array
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyList'
        '400':
          description: Invalid path or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid supplied credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Caller does not have permission for this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Request body exceeds 4 MiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate or concurrency allowance exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: Seconds before retrying the request
              schema:
                type: integer
                minimum: 1
        '500':
          description: Unexpected server failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Request exceeded its execution deadline
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /v1/companies/lookup:
    get:
      operationId: lookupCompanies
      tags:
      - Companies
      summary: Resolve company summaries for a bounded list of tickers
      description: Results retain the normalized requested ticker alongside the canonical company identity, including share-class aliases. Unknown tickers are omitted. Duplicate requests may be deduplicated. Indexed marketCap and marketCapChange1yPct have the same snapshot semantics as company search.
      security:
      - {}
      - bearerAuth: []
      - applicationKey: []
      parameters:
      - name: tickers
        in: query
        required: true
        description: One to 50 comma-separated ticker symbols, case-insensitive. Entries are trimmed and normalized to uppercase; duplicates count toward the 50-entry input limit.
        schema:
          type: string
      responses:
        '200':
          description: Requested-to-canonical company associations; no matches returns empty results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyLookup'
        '400':
          description: Invalid path or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid supplied credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Caller does not have permission for this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Request body exceeds 4 MiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate or concurrency allowance exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: Seconds before retrying the request
              schema:
                type: integer
                minimum: 1
        '500':
          description: Unexpected server failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Request exceeded its execution deadline
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /v1/companies/resolve:
    get:
      operationId: resolveCompany
      tags:
      - Companies
      summary: Resolve company identity by ticker or CIK
      description: 'Supply exactly one query parameter: ticker or cik. Both identifiers together, neither identifier, and unknown query parameters are rejected. CompanySelector documents the exclusive selector contract. Tickers are case-insensitive. A CIK contains 1 to 10 digits, must be greater than zero, and is normalized to ten digits with leading zeros.'
      security:
      - {}
      - bearerAuth: []
      - applicationKey: []
      parameters:
      - name: ticker
        in: query
        description: Company ticker; mutually exclusive with cik
        schema:
          type: string
          minLength: 1
          maxLength: 16
          pattern: ^[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?$
      - name: cik
        in: query
        description: Positive SEC CIK, padded or unpadded; mutually exclusive with ticker
        schema:
          type: string
          pattern: ^(?!0+$)\d{1,10}$
      responses:
        '200':
          description: Stored company identity with ISO 8601 timestamps
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyIdentity'
        '400':
          description: Invalid path or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid supplied credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Caller does not have permission for this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: 'RESOURCE_NOT_FOUND: no company exists for this selector'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Request body exceeds 4 MiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate or concurrency allowance exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: Seconds before retrying the request
              schema:
                type: integer
                minimum: 1
        '500':
          description: Unexpected server failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Request exceeded its execution deadline
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /v1/companies/{ticker}:
    get:
      operationId: getCompany
      tags:
      - Companies
      summary: Company identity and related share classes
      description: Compatibility ticker route. New identity clients use /v1/companies/resolve with exactly one ticker or cik selector.
      security:
      - {}
      - bearerAuth: []
      - applicationKey: []
      parameters:
      - name: ticker
        in: path
        required: true
        description: Company ticker, case-insensitive; responses use stored company identity
        schema:
          type: string
          minLength: 1
          maxLength: 16
          pattern: ^[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?$
      responses:
        '200':
          description: Stored company identity with ISO 8601 timestamps
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyIdentity'
        '400':
          description: Invalid path or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid supplied credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Caller does not have permission for this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: 'RESOURCE_NOT_FOUND: no company exists for this ticker'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Request body exceeds 4 MiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate or concurrency allowance exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: Seconds before retrying the request
              schema:
                type: integer
                minimum: 1
        '500':
          description: Unexpected server failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Request exceeded its execution deadline
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /v1/companies/{ticker}/market-cap:
    get:
      operationId: getCompanyMarketCap
      tags:
      - Companies
      summary: Stored market capitalization, newest observations first
      description: Use limit=1 for the latest observation. Date bounds are inclusive. Daily resolution returns stored daily observations. Chart resolution is limited to the last ten years, retains daily observations for the most recent 400 days, and uses the last trading observation in each epoch-week bucket for older data. Only stored observations are returned, without filling missing dates.
      security:
      - {}
      - bearerAuth: []
      - applicationKey: []
      parameters:
      - name: ticker
        in: path
        required: true
        description: Company ticker, case-insensitive; responses use stored company identity
        schema:
          type: string
          minLength: 1
          maxLength: 16
          pattern: ^[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?$
      - name: limit
        in: query
        description: Maximum number of observations, applied after sampling
        schema:
          default: 365
          type: integer
          minimum: 1
          maximum: 5000
      - name: from
        in: query
        description: Earliest observation date, inclusive (YYYY-MM-DD)
        schema:
          type: string
          format: date
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
      - name: to
        in: query
        description: Latest observation date, inclusive (YYYY-MM-DD); must be on or after from
        schema:
          type: string
          format: date
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
      - name: resolution
        in: query
        description: 'Daily observations, or chart sampling over at most ten years: daily for the last 400 days and weekly before that'
        schema:
          default: daily
          type: string
          enum:
          - daily
          - chart
      responses:
        '200':
          description: USD market capitalization series; asOf is the newest returned observation date. A known company without observations has empty points and null asOf.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketCapSeries'
        '400':
          description: Invalid path or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid supplied credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Caller does not have permission for this operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: 'RESOURCE_NOT_FOUND: no company exists for this ticker'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '413':
          description: Request body exceeds 4 MiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate or concurrency allowance exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: Seconds before retrying the request
              schema:
                type: integer
                minimum: 1
        '500':
          description: Unexpected server failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Request exceeded its execution deadline
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CompanyLookup:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              requestedTicker:
                type: string
              company:
                type: object
                properties:
                  id:
                    type: string
                  ticker:
                    type: string
                  name:
                    type: string
                  iconUrl:
                    anyOf:
                    - type: string
                    - type: 'null'
                  marketCap:
                    anyOf:
                    - type: number
                    - type: 'null'
                    description: Indexed market capitalization in USD used for display and ranking; may lag the market-cap resource.
                  marketCapChange1yPct:
                    anyOf:
                    - type: number
                    - type: 'null'
                    description: Indexed approximate one-year market-cap change as a fraction (0.1 means 10%); may lag the market-cap resource.
                  preIpo:
                    type: boolean
                required:
                - id
                - ticker
                - name
                - iconUrl
                - marketCap
                - marketCapChange1yPct
                - preIpo
                additionalProperties: false
            required:
            - requestedTicker
            - company
            additionalProperties: false
      required:
      - results
      additionalProperties: false
    CompanyList:
      type: object
      properties:
        companies:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              ticker:
                type: string
              name:
                type: string
              iconUrl:
                anyOf:
                - type: string
                - type: 'null'
              marketCap:
                anyOf:
                - type: number
                - type: 'null'
                description: Indexed market capitalization in USD used for display and ranking; may lag the market-cap resource.
              marketCapChange1yPct:
                anyOf:
                - type: number
                - type: 'null'
                description: Indexed approximate one-year market-cap change as a fraction (0.1 means 10%); may lag the market-cap resource.
              preIpo:
                type: boolean
            required:
            - id
            - ticker
            - name
            - iconUrl
            - marketCap
            - marketCapChange1yPct
            - preIpo
            additionalProperties: false
        page:
          type: integer
          minimum: 1
          maximum: 9007199254740991
        pageCount:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        totalCount:
          type: integer
          minimum: 0
          maximum: 9007199254740991
      required:
      - companies
      - page
      - pageCount
      - totalCount
      additionalProperties: false
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
          additionalProperties: false
      required:
      - error
      additionalProperties: false
    CompanyIdentity:
      type: object
      properties:
        id:
          type: string
        ticker:
          type: string
        name:
          type: string
        displayName:
          anyOf:
          - type: string
          - type: 'null'
        description:
          anyOf:
          - type: string
          - type: 'null'
        logoUrl:
          anyOf:
          - type: string
          - type: 'null'
        iconUrl:
          anyOf:
          - type: string
          - type: 'null'
        exchange:
          type: string
        sector:
          anyOf:
          - type: string
          - type: 'null'
        industry:
          anyOf:
          - type: string
          - type: 'null'
        totalEmployees:
          anyOf:
          - type: number
          - type: 'null'
        homepageUrl:
          anyOf:
          - type: string
          - type: 'null'
        cik:
          anyOf:
          - type: string
          - type: 'null'
        cusip:
          anyOf:
          - type: string
          - type: 'null'
        listDate:
          anyOf:
          - type: string
            format: date-time
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
          - type: 'null'
        type:
          anyOf:
          - type: string
          - type: 'null'
        tickerRoot:
          anyOf:
          - type: string
          - type: 'null'
        preIpo:
          type: boolean
        address:
          anyOf:
          - type: object
            properties:
              street:
                anyOf:
                - type: string
                - type: 'null'
              street2:
                anyOf:
                - type: string
                - type: 'null'
              city:
                anyOf:
                - type: string
                - type: 'null'
              state:
                anyOf:
                - type: string
                - type: 'null'
              zip:
                anyOf:
                - type: string
                - type: 'null'
              country:
                anyOf:
                - type: string
                - type: 'null'
            required:
            - street
            - street2
            - city
            - state
            - zip
            - country
            additionalProperties: false
          - type: 'null'
        relatedStockClasses:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              ticker:
                type: string
              name:
                type: string
            required:
            - id
            - ticker
            - name
            additionalProperties: false
      required:
      - id
      - ticker
      - name
      - displayName
      - description
      - logoUrl
      - iconUrl
      - exchange
      - sector
      - industry
      - totalEmployees
      - homepageUrl
      - cik
      - cusip
      - listDate
      - type
      - tickerRoot
      - preIpo
      - address
      additionalProperties: false
    MarketCapSeries:
      type: object
      properties:
        ticker:
          type: string
        currency:
          type: string
          const: USD
        resolution:
          type: string
          enum:
          - daily
          - chart
        asOf:
          anyOf:
          - type: string
            format: date
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
          - type: 'null'
        points:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
                format: date
                pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
              marketCap:
                type: number
            required:
            - date
            - marketCap
            additionalProperties: false
      required:
      - ticker
      - currency
      - resolution
      - asOf
      - points
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    applicationKey:
      type: apiKey
      in: header
      name: x-api-key