AboutCode Resources API

The resources API from AboutCode — 3 operation(s) for resources.

GitHub OpenAPI

Operations 3

GET /api/resources/ Resources list #
GET /api/resources/{sha1}/ Resources retrieve #
POST /api/resources/filter_by_checksums/ Resources filter by checksums create #

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/aboutcode:aboutcode-resources-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

aboutcode-resources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aboutcode Resources API
  version: 7.1.0
  description: 'Operations tagged resources across 2 of this provider''s published API definitions: purldb-openapi.yml, aboutcode-purldb-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://public.purldb.io
tags:
- name: Resources
paths:
  /api/resources/:
    get:
      operationId: resources_list
      parameters:
      - in: query
        name: md5
        schema:
          type: array
          items:
            type:
            - string
            - 'null'
        description: Exact MD5. Multi-value supported.
        explode: true
        style: form
      - in: query
        name: package
        schema:
          type: integer
        description: Package UUID
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: query
        name: purl
        schema:
          type: string
        description: Package pURL
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      - in: query
        name: sha1
        schema:
          type: array
          items:
            type:
            - string
            - 'null'
        description: Exact SHA1. Multi-value supported.
        explode: true
        style: form
      tags:
      - Resources
      security:
      - tokenAuth: []
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResourceAPIList'
          description: ''
      summary: Resources list
      x-summary-source: derived
  /api/resources/{sha1}/:
    get:
      operationId: resources_retrieve
      parameters:
      - in: path
        name: sha1
        schema:
          type: string
          description: SHA1 checksum hex-encoded, as in sha1sum.
        required: true
      tags:
      - Resources
      security:
      - tokenAuth: []
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAPI'
          description: ''
      summary: Resources retrieve
      x-summary-source: derived
  /api/resources/filter_by_checksums/:
    post:
      operationId: resources_filter_by_checksums_create
      description: 'Take a mapping, where the keys are the names of the checksum algorithm

        and the values is a list of checksum values and query those values

        against the packagedb.


        Supported checksum fields are:


        - md5

        - sha1


        Example:

        -------

        {

        "sha1": [

        "b55fd82f80cc1bd0bdabf9c6e3153788d35d7911",

        "27afff2610b5a94274a2311f8b15e514446b0e76

        ]

        }


        Multiple checksums algorithms can be passed together:


        {

        "sha1": [

        "b55fd82f80cc1bd0bdabf9c6e3153788d35d7911",

        "27afff2610b5a94274a2311f8b15e514446b0e76

        ],

        "md5": [

        "e927df60b093456d4e611ae235c1aa5b"

        ]

        }


        This will return Resources whose sha1 or md5 matches those values.'
      tags:
      - Resources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResourceAPI'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ResourceAPI'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ResourceAPI'
        required: true
      security:
      - tokenAuth: []
      - {}
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAPI'
          description: ''
      summary: Resources filter by checksums create
      x-summary-source: derived
components:
  schemas:
    PaginatedResourceAPIList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/ResourceAPI'
    ResourceAPI:
      type: object
      properties:
        package:
          type: string
          format: uri
          readOnly: true
        purl:
          type: string
        path:
          type: string
          readOnly: true
          description: The full path value of a resource (file or directory) in the archive it is from.
        type:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
          description: File or directory name of this resource with its extension.
        extension:
          type: string
          readOnly: true
          description: File extension for this resource (directories do not have an extension).
        size:
          type:
          - integer
          - 'null'
          readOnly: true
          description: Size in bytes.
        md5:
          type:
          - string
          - 'null'
          readOnly: true
          description: MD5 checksum hex-encoded, as in md5sum.
        sha1:
          type:
          - string
          - 'null'
          readOnly: true
          description: SHA1 checksum hex-encoded, as in sha1sum.
        sha256:
          type:
          - string
          - 'null'
          readOnly: true
          description: SHA256 checksum hex-encoded, as in sha256sum.
        sha512:
          type:
          - string
          - 'null'
          readOnly: true
          description: SHA512 checksum hex-encoded, as in sha512sum.
        git_sha1:
          type:
          - string
          - 'null'
          readOnly: true
          description: git SHA1 checksum hex-encoded
        mime_type:
          type:
          - string
          - 'null'
          readOnly: true
          description: MIME type (aka. media type) for this resource. See https://en.wikipedia.org/wiki/Media_type
        file_type:
          type:
          - string
          - 'null'
          readOnly: true
          description: Descriptive file type for this resource.
        programming_language:
          type:
          - string
          - 'null'
          readOnly: true
          description: Programming language of this resource if this is a code file.
        is_binary:
          type: boolean
          readOnly: true
        is_text:
          type: boolean
          readOnly: true
        is_archive:
          type: boolean
          readOnly: true
        is_media:
          type: boolean
          readOnly: true
        is_key_file:
          type: boolean
          readOnly: true
        detected_license_expression:
          type: string
          readOnly: true
          description: TODO
        detected_license_expression_spdx:
          type: string
          readOnly: true
          description: TODO
        license_detections:
          readOnly: true
          description: List of license detection details.
        license_clues:
          readOnly: true
          description: List of license clues.
        percentage_of_license_text:
          type:
          - number
          - 'null'
          format: double
          readOnly: true
          description: TODO
        copyrights:
          readOnly: true
          description: List of detected copyright statements (and related detection details).
        holders:
          readOnly: true
          description: List of detected copyright holders (and related detection details).
        authors:
          readOnly: true
          description: List of detected authors (and related detection details).
        package_data:
          readOnly: true
          description: List of Package data detected from this CodebaseResource
        emails:
          readOnly: true
          description: List of detected emails (and related detection details).
        urls:
          readOnly: true
          description: List of detected URLs (and related detection details).
        extra_data:
          readOnly: true
          description: Optional mapping of extra data key/values.
      required:
      - authors
      - copyrights
      - detected_license_expression
      - detected_license_expression_spdx
      - emails
      - extension
      - extra_data
      - file_type
      - git_sha1
      - holders
      - is_archive
      - is_binary
      - is_key_file
      - is_media
      - is_text
      - license_clues
      - license_detections
      - md5
      - mime_type
      - name
      - package
      - package_data
      - path
      - percentage_of_license_text
      - programming_language
      - purl
      - sha1
      - sha256
      - sha512
      - size
      - type
      - urls
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"
x-refined-from:
- purldb-openapi.yml
- aboutcode-purldb-openapi.yml