Skip to main content
GET
Get license information for a single software component.

Query Parameters

purl
string
required

Package URL identifying the component to analyze.

requirement
string

Version constraint for component resolution when PURL lacks explicit version.

Response

A successful response.

Success example. For error cases, the component block reports the failure via info_message and info_code. Example: {"component":{"purl":"pkg:github/scanoss/unknown-component","requirement":"","version":"","statement":"","licenses":[],"url":"","info_message":"Component version not found","info_code":"VERSION_NOT_FOUND"},"status":{"status":"SUCCESS","message":"Success"}}

component
object

License information for a specific component identified by PURL and version.

status
object

Detailed response details.