packages

lookup a package by repository URL, purl or ecosystem+name

get/packages/lookup

Query parameters

repository_urlstring

repository URL

purlstring

package URL

ecosystemstring

ecosystem name

namestring

package name

sort'updated_at' | 'created_at' | 'name' | 'downloads' | 'dependent_repos_count' | 'dependent_packages_count' | 'latest_release_published_at' | 'versions_count' | 'maintainers_count' | 'docker_downloads_count' | 'docker_dependents_count' | 'stargazers_count' | 'forks_count'

field to sort results by

orderstring

direction to sort results by

Response

OK

idinteger required
namestring required
ecosystemstring required
descriptionstring nullable required
homepagestring nullable required
licensesstring nullable required
normalized_licensesstring[] required
repository_urlstring nullable required
keywords_arraystring[] required
namespacestring nullable required
versions_countinteger required
first_release_published_atstring date-time nullable required
latest_release_published_atstring date-time nullable required
latest_release_numberstring nullable required
last_synced_atstring date-time nullable required
created_atstring date-time required
updated_atstring date-time required
registry_urlstring nullable required
documentation_urlstring nullable required
install_commandstring nullable required
metadataobject nullable required
repo_metadataobject nullable required
repo_metadata_updated_atstring date-time nullable required
dependent_packages_countinteger required
downloadsinteger required
downloads_periodstring nullable required
dependent_repos_countinteger required
rankingsobject required
purlstring required
versions_urlstring required
latest_version_urlstring required
version_numbers_urlstring
dependent_packages_urlstring required
related_packages_urlstring required
codemeta_urlstring required
docker_usage_urlstring required
docker_dependents_countinteger required
docker_downloads_countinteger required
usage_urlstring required
dependent_repositories_urlstring required
statusstring nullable required
funding_linksstring[] required
criticalboolean required
issue_metadataobject required

Changes

Changed in 16 of the 52 revisions of this API.41365

    • added the required property items/allOf[Package]/latest_version_url to the response with the 200 status

      response-required-property-added

  • v1705144173134113See the full diff
    • the query request parameter sort was restricted to a list of enum values

      request-parameter-became-enum

    • added the new enum value created_at to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value dependent_packages_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value dependent_repos_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value docker_dependents_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value docker_downloads_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value downloads to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value forks_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value latest_release_published_at to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value maintainers_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value name to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value stargazers_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value updated_at to the query request parameter sort

      request-parameter-enum-value-added

    • added the new enum value versions_count to the query request parameter sort

      request-parameter-enum-value-added

    • added the required property items/allOf[Package]/codemeta_url to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/issue_metadata to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/critical to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/id to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[subschema #2]/registry/purl_type to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/funding_links to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/status to the response with the 200 status

      response-required-property-added

    • added the required property items/allOf[Package]/maintainers/items/total_downloads to the response with the 200 status

      response-required-property-added

  • v1d843feeb16c73911See the full diff
    • the items/ response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the required property items/advisories from the response with the 200 status

      response-required-property-removed

    • removed the required property items/created_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/dependent_packages_count from the response with the 200 status

      response-required-property-removed

    • removed the required property items/dependent_packages_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/dependent_repos_count from the response with the 200 status

      response-required-property-removed

    • removed the required property items/dependent_repositories_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/description from the response with the 200 status

      response-required-property-removed

    • removed the required property items/docker_dependents_count from the response with the 200 status

      response-required-property-removed

    • removed the required property items/docker_downloads_count from the response with the 200 status

      response-required-property-removed

    • removed the required property items/docker_usage_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/documentation_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/downloads from the response with the 200 status

      response-required-property-removed

    • removed the required property items/downloads_period from the response with the 200 status

      response-required-property-removed

    • removed the required property items/ecosystem from the response with the 200 status

      response-required-property-removed

    • removed the required property items/first_release_published_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/homepage from the response with the 200 status

      response-required-property-removed

    • removed the required property items/install_command from the response with the 200 status

      response-required-property-removed

    • removed the required property items/keywords_array from the response with the 200 status

      response-required-property-removed

    • removed the required property items/last_synced_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/latest_release_number from the response with the 200 status

      response-required-property-removed

    • removed the required property items/latest_release_published_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/licenses from the response with the 200 status

      response-required-property-removed

    • removed the required property items/maintainers from the response with the 200 status

      response-required-property-removed

    • removed the required property items/metadata from the response with the 200 status

      response-required-property-removed

    • removed the required property items/name from the response with the 200 status

      response-required-property-removed

    • removed the required property items/namespace from the response with the 200 status

      response-required-property-removed

    • removed the required property items/normalized_licenses from the response with the 200 status

      response-required-property-removed

    • removed the required property items/purl from the response with the 200 status

      response-required-property-removed

    • removed the required property items/rankings from the response with the 200 status

      response-required-property-removed

    • removed the required property items/registry_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/related_packages_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/repo_metadata from the response with the 200 status

      response-required-property-removed

    • removed the required property items/repo_metadata_updated_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/repository_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/updated_at from the response with the 200 status

      response-required-property-removed

    • removed the required property items/usage_url from the response with the 200 status

      response-required-property-removed

    • removed the required property items/versions_count from the response with the 200 status

      response-required-property-removed

    • removed the required property items/versions_url from the response with the 200 status

      response-required-property-removed

    • removed the optional property items/version_numbers_url from the response with the 200 status

      response-optional-property-removed

    • added Package subschema #2 to the items/ response property allOf list for the response status 200

      response-property-all-of-added