AboutCode · Schema

ResourceAPI

Open SourceSoftware Composition AnalysisVulnerabilitiesLicensesPackage URLSBOMSecurity

Properties

Name Type Description
package string
purl string
path string The full path value of a resource (file or directory) in the archive it is from.
type string
name string File or directory name of this resource with its extension.
extension string File extension for this resource (directories do not have an extension).
size integernull Size in bytes.
md5 stringnull MD5 checksum hex-encoded, as in md5sum.
sha1 stringnull SHA1 checksum hex-encoded, as in sha1sum.
sha256 stringnull SHA256 checksum hex-encoded, as in sha256sum.
sha512 stringnull SHA512 checksum hex-encoded, as in sha512sum.
git_sha1 stringnull git SHA1 checksum hex-encoded
mime_type stringnull MIME type (aka. media type) for this resource. See https://en.wikipedia.org/wiki/Media_type
file_type stringnull Descriptive file type for this resource.
programming_language stringnull Programming language of this resource if this is a code file.
is_binary boolean
is_text boolean
is_archive boolean
is_media boolean
is_key_file boolean
detected_license_expression string TODO
detected_license_expression_spdx string TODO
license_detections object List of license detection details.
license_clues object List of license clues.
percentage_of_license_text numbernull TODO
copyrights object List of detected copyright statements (and related detection details).
holders object List of detected copyright holders (and related detection details).
authors object List of detected authors (and related detection details).
package_data object List of Package data detected from this CodebaseResource
emails object List of detected emails (and related detection details).
urls object List of detected URLs (and related detection details).
extra_data object Optional mapping of extra data key/values.
View JSON Schema on GitHub

JSON Schema

aboutcode-resource-api-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aboutcode/json-schema/aboutcode-resource-api-schema.json",
  "title": "ResourceAPI",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aboutcode-purldb-openapi.yml#/components/schemas/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"
  ]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/aboutcode-resource-api"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.