---
title: "get CodeMeta metadata for a version"
method: GET
path: "/registries/{registryName}/packages/{packageName}/versions/{versionNumber}/codemeta"
tags: ["packages"]
---

# get CodeMeta metadata for a version

`GET /registries/{registryName}/packages/{packageName}/versions/{versionNumber}/codemeta`

## Request

- Base URL: `https://packages.ecosyste.ms/api/v1`
- URL: `https://packages.ecosyste.ms/api/v1/registries/{registryName}/packages/{packageName}/versions/{versionNumber}/codemeta`
- Auth: none declared

## Path parameters

- `registryName` string, required
- `packageName` string, required
- `versionNumber` string, required

## Response `200`

OK

- CodeMeta: CodeMeta JSON-LD metadata format for software packages, compatible with Software Heritage
  - `@context` string, required: JSON-LD context URL
  - `@type` string, required: Type of software artifact
  - `identifier` string, required: Package URL (purl) identifier
  - `name` string, required: Package name
  - `description` string, nullable: Package description
  - `version` string, nullable: Version number
  - `softwareVersion` string, nullable: Software version
  - `license` union: SPDX license URL(s)
    - string
    - string[]
  - `codeRepository` string, nullable: Source code repository URL
  - `issueTracker` string, nullable: Issue tracker URL
  - `url` string, nullable: Homepage URL
  - `keywords` string[], nullable: Keywords and tags
  - `programmingLanguage` object, nullable: Programming language information
    - `@type` string
    - `name` string
  - `maintainer` object[], nullable: Package maintainers
    - `@type` string
    - `name` string
    - `url` string, nullable
  - `author` object[], nullable: Package authors
    - `@type` string
    - `name` string
    - `url` string, nullable
  - `copyrightHolder` object[], nullable: Copyright holders
    - `@type` string
    - `name` string
    - `url` string, nullable
  - `dateCreated` string, date-time, nullable: Creation date (ISO 8601)
  - `dateModified` string, date-time, nullable: Last modification date (ISO 8601)
  - `datePublished` string, date-time, nullable: Publication date (ISO 8601)
  - `copyrightYear` integer, nullable: Copyright year
  - `downloadUrl` string, nullable: Package download URL
  - `softwareHelp` object, nullable: Documentation/help resources
    - `@type` string
    - `url` string
  - `applicationCategory` string, nullable: Package ecosystem/category
  - `runtimePlatform` string, nullable: Runtime platform/ecosystem
  - `developmentStatus` string, nullable: Development status
  - `sameAs` string[], nullable: Alternative identifiers/URLs
  - `funder` object[], nullable: Funding sources
    - `@type` string
    - `url` string
  - `https://www.w3.org/ns/activitystreams#likes` integer, nullable: Star/like count (ActivityStreams)
  - `https://forgefed.org/ns#forks` integer, nullable: Fork count (ForgeFed)

## Changes

- **2025-11-22** (v1) `7acaf0550652`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ecosyste-ms/apis/ecosyste-ms-packages/changes/registries/:registryName/packages/:packageName/versions/:versionNumber/codemeta/get.md)

---

[API](https://skmtc.dev/ecosyste-ms/apis/ecosyste-ms-packages.md) - [All operations](https://skmtc.dev/ecosyste-ms/apis/ecosyste-ms-packages/llms.txt) - [OpenAPI document](https://skmtc.dev/ecosyste-ms/apis/ecosyste-ms-packages/revisions/b8fcfcb60191?raw)
