CHAOSS Complexity API

The complexity API from CHAOSS — 6 operation(s) for complexity.

Operations 6

GET /complexity/project_lines Total lines (repo) #
GET /complexity/project_file_complexity File complexity (repo) #
GET /complexity/project_blank_lines Total blank lines (repo) #
GET /complexity/project_comment_lines Total comment lines (repo) #
GET /complexity/project_files Total files (repo) #
GET /complexity/project_languages Project languages (repo) #

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/chaoss-complexity-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

chaoss-complexity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CollectOSS REST Complexity API
  version: 0.60.0
host: example.com
basePath: /api/unstable/
tags:
- name: complexity
paths:
  /complexity/project_lines:
    get:
      description: Returns project line data for all repositories in a CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the total and average number of lines in the project repository.
      operationId: Total Lines (repo)
      parameters:
      - in: query
        name: repo_id
        required: true
        schema:
          type: integer
        type: integer
        description: Repository Id
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                total_lines:
                  description: 'Example: 274734'
                  type: integer
                average_lines:
                  description: 'Example: 1000'
                  type: integer
            type: array
      tags:
      - complexity
      summary: Total lines (repo)
      x-summary-source: derived
  /complexity/project_file_complexity:
    get:
      description: Returns project file complexity data for all repositories in an CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the total and average file complexity of the project repository.
      operationId: File Complexity (repo)
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                sum_code_complexity:
                  description: 'Example: 0'
                  type: integer
                average_code_complexity:
                  description: 'Example: 0'
                  type: integer
            type: array
      tags:
      - complexity
      summary: File complexity (repo)
      x-summary-source: derived
  /complexity/project_blank_lines:
    get:
      description: Returns project blank line data for all repositories in a CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the total and average number of blank lines in the project repository.
      operationId: Total Blank Lines (repo)
      parameters:
      - in: query
        name: repo_id
        required: true
        schema:
          type: integer
        type: integer
        description: Repository Id
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                blank_lines:
                  description: 'Example: 274734'
                  type: integer
                avg_blank_lines:
                  description: 'Example: 923'
                  type: integer
            type: array
      tags:
      - complexity
      summary: Total blank lines (repo)
      x-summary-source: derived
  /complexity/project_comment_lines:
    get:
      description: Returns project comment line data for all repositories in a CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the total and average number of comment lines in the project repository.
      operationId: Total Comment Lines (repo)
      parameters:
      - in: query
        name: repo_id
        required: true
        schema:
          type: integer
        type: integer
        description: Repository Id
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                comment_lines:
                  description: 'Example: 5066'
                  type: integer
                avg_comment_lines:
                  description: 'Example: 345'
                  type: integer
            type: array
      tags:
      - complexity
      summary: Total comment lines (repo)
      x-summary-source: derived
  /complexity/project_files:
    get:
      description: Returns project file data for all repositories in a CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the total number of files in the project repository.
      operationId: Total Files (repo)
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                files:
                  description: 'Example: 207'
                  type: integer
            type: array
      tags:
      - complexity
      summary: Total files (repo)
      x-summary-source: derived
  /complexity/project_languages:
    get:
      description: Returns project language data for all repositories in a CollectOSS instance, using information from a git platform (GitHub, GitLab, etc.). Each record includes the lines and files of a language in a repository.
      operationId: Project Languages (repo)
      responses:
        '200':
          description: OK
          schema:
            items:
              properties:
                repo_id:
                  description: 'Example: 25540'
                  type: integer
                repo_git:
                  description: 'Example: https://github.com/chaoss/collectoss'
                  type: string
                repo_name:
                  description: 'Example: collectoss'
                  type: string
                programming_language:
                  description: 'Example: Python'
                  type: string
                code_lines:
                  description: 'Example: 207'
                  type: integer
                files:
                  description: 'Example: 12'
                  type: integer
            type: array
      tags:
      - complexity
      summary: Project languages (repo)
      x-summary-source: derived
externalDocs:
  description: CHAOSS Metric Definitions
  url: https://chaoss.community/kb-metrics-and-metrics-models/