> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xdr-5-api/aspm-cicd-and-application-security/package-explorer.md).

# Package Explorer

APIs for retrieving structured information for a specific package version.

## Get Package Version Details

> Retrieves structured information for a specific package version. Use the optional manager query parameter to filter results by package manager ecosystem. This read-only endpoint does not provide exposure details, remediation actions, or governance execution.\
> \
> \*\*Required license\*\*: Cortex XDR with the Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.<br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XDR 5.2"},"tags":[{"name":"Package Explorer","description":"APIs for retrieving structured information for a specific package version."}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/get /public_api/appsec/v1/package_explorer/packages/{name}/versions/{version}":{"get":{"summary":"Get Package Version Details","tags":["Package Explorer"],"operationId":"GetPackages","description":"Retrieves structured information for a specific package version. Use the optional manager query parameter to filter results by package manager ecosystem. This read-only endpoint does not provide exposure details, remediation actions, or governance execution.\n\n**Required license**: Cortex XDR with the Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.\n","parameters":[{"schema":{"type":"string"},"in":"header","name":"Authorization","description":"{api_key}","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"{api_key_id}","required":true},{"schema":{"type":"string"},"in":"query","name":"manager","description":"Optional. Filters the results to a specific package manager ecosystem (for example, NPM, YARN, MAVEN, or GRADLE). When omitted, results are returned for all ecosystems in which the package version was detected.","required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageExplorerResponse"}}}}}}}},"components":{"schemas":{"PackageExplorerResponse":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the package as it appears in the package manager registry."},"version":{"type":"string","description":"The version of the package."},"package_type":{"allOf":[{"$ref":"#/components/schemas/PackageType"}],"nullable":true},"ecosystem":{"type":"string","description":"The package manager ecosystem where this package is used (for example, NPM, YARN, MAVEN, or GRADLE). Each result represents an ecosystem where the package version was detected.","nullable":true},"operational_risk":{"type":"string","description":"The assessed operational risk level of the package version (for example, LOW, MEDIUM, or HIGH). Returns `null` if no assessment is available.","nullable":true},"used_in":{"allOf":[{"$ref":"#/components/schemas/UsedInCounts"}],"nullable":true,"description":"Usage counts showing where this package version is used, including code repositories, runtime environments, and deployed artifacts within the ecosystem."},"vulnerabilities":{"allOf":[{"$ref":"#/components/schemas/VulnerabilityCounts"}],"nullable":true,"description":"Number of known vulnerabilities for this package version by severity level.\n"}}},"PackageType":{"type":"string","enum":["OSS","OS"],"description":"Type of the package. OSS indicates an open-source software package; OS indicates an operating system package."},"UsedInCounts":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"number","format":"double","description":"Number of code repositories that include this package.","nullable":true},"runtime":{"type":"number","format":"double","description":"Number of runtime environments where this package is detected.","nullable":true},"deploy":{"type":"number","format":"double","description":"Number of deployed artifacts or images that include this package.","nullable":true}}},"VulnerabilityCounts":{"type":"object","additionalProperties":false,"properties":{"critical":{"type":"number","format":"double","description":"Number of critical-severity vulnerabilities associated with this package version.","nullable":true},"high":{"type":"number","format":"double","description":"Number of high-severity vulnerabilities associated with this package version.","nullable":true},"medium":{"type":"number","format":"double","description":"Number of medium-severity vulnerabilities associated with this package version.","nullable":true},"low":{"type":"number","format":"double","description":"Number of low-severity vulnerabilities associated with this package version.","nullable":true},"info":{"type":"number","format":"double","description":"Number of informational vulnerabilities associated with this package version.","nullable":true}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/xdr-5-api/aspm-cicd-and-application-security/package-explorer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
