> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get dependency details
Deprecated: Use /v2/licenses/components instead



## OpenAPI

````yaml /api-reference/dependencies-openapi.json post /v2/dependencies/dependencies
openapi: 3.0.0
info:
  title: SCANOSS Dependency Service
  version: '2.0'
  contact:
    name: scanoss-dependencies
    url: https://github.com/scanoss/dependencies
    email: support@scanoss.com
servers: []
security: []
tags:
  - name: Dependencies
paths:
  /v2/dependencies/dependencies:
    post:
      tags:
        - Dependencies
      summary: |-
        Get dependency details
        Deprecated: Use /v2/licenses/components instead
      operationId: Dependencies_GetDependencies
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2DependencyRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2DependencyResponse'
        '404':
          description: Returned when the resource does not exist.
          content:
            application/json:
              schema:
                type: string
                format: string
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
components:
  schemas:
    v2DependencyRequest:
      type: object
      example:
        files:
          - file: package.json
            purls:
              - purl: pkg:npm/express
                requirement: ^4.18.0
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/v2DependencyRequestFiles'
          title: List of dependency files
        depth:
          type: integer
          format: int32
          title: Depth to go when searching dependencies
      title: Dependency request data (JSON payload)
    v2DependencyResponse:
      type: object
      example:
        files:
          - file: package.json
            id: dependency
            status: pending
            dependencies:
              - component: express
                purl: pkg:npm/express
                version: 4.18.2
                requirement: ^4.18.0
                licenses:
                  - name: MIT
                    spdx_id: MIT
                    is_spdx_approved: true
                    url: https://opensource.org/licenses/MIT
                url: https://www.npmjs.com/package/express
                comment: ''
        status:
          status: SUCCESS
          message: Dependencies successfully retrieved
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/v2DependencyResponseFiles'
          title: Dependency response details
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        Success example. For error cases, each dependency block reports the
        processing status via info_message and info_code. Example:
        {\"files\":[{\"file\":\"package.json\",\"id\":\"dependency\",\"status\":\"pending\",\"dependencies\":[{\"component\":\"\",\"purl\":\"pkg:npm/express\",\"info_message\":\"Component
        not
        found\",\"info_code\":\"COMPONENT_NOT_FOUND\"}]}],\"status\":{\"status\":\"SUCCESS\",\"message\":\"Success\"}}
      title: Dependency response data (JSON payload)
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2DependencyRequestFiles:
      type: object
      properties:
        file:
          type: string
          title: dependency filename
        purls:
          type: array
          items:
            $ref: '#/components/schemas/v2DependencyRequestPurls'
          title: List of purls
      title: List of dependency files
    v2DependencyResponseFiles:
      type: object
      properties:
        file:
          type: string
        id:
          type: string
        status:
          type: string
        dependencies:
          type: array
          items:
            $ref: '#/components/schemas/DependencyResponseDependencies'
    v2StatusResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/v2StatusCode'
        message:
          type: string
          title: Status message
        db:
          $ref: '#/components/schemas/StatusResponseDB'
        server:
          $ref: '#/components/schemas/StatusResponseServer'
      description: Detailed response details.
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    v2DependencyRequestPurls:
      type: object
      properties:
        purl:
          type: string
          title: Purl name
        requirement:
          type: string
          description: string scope = 3;  // TODO what did we want scope for?
          title: requirement - optional
      title: List of Purls/requirements
    DependencyResponseDependencies:
      type: object
      properties:
        component:
          type: string
        purl:
          type: string
        version:
          type: string
        licenses:
          type: array
          items:
            $ref: '#/components/schemas/DependencyResponseLicenses'
        url:
          type: string
        comment:
          type: string
        requirement:
          type: string
        info_message:
          type: string
          description: Status message describing the outcome of processing this component.
        info_code:
          type: string
          description: |-
            Status code identifying the outcome of processing this component.

            Possible values:
              - "INVALID_PURL":        The provided Package URL (PURL) is invalid or malformed.
              - "COMPONENT_NOT_FOUND": The requested component could not be found in the database.
              - "NO_INFO":             No dependency information is available for the requested component.
              - "INVALID_SEMVER":      The provided semantic version (SemVer) is invalid or malformed.
              - "VERSION_NOT_FOUND":   The specific component version could not be found.
    v2StatusCode:
      type: string
      enum:
        - UNSPECIFIED
        - SUCCESS
        - SUCCEEDED_WITH_WARNINGS
        - WARNING
        - FAILED
      default: UNSPECIFIED
      description: Status code Enum.
    StatusResponseDB:
      type: object
      properties:
        schema_version:
          type: string
          title: Semantic schema version (e.g., 'v1.0.0')
        created_at:
          type: string
          title: When this DB was built (ISO 8601 format)
      description: Database version information.
    StatusResponseServer:
      type: object
      properties:
        version:
          type: string
          title: Semantic version (e.g., 'v1.0.0')
      description: Server information.
    DependencyResponseLicenses:
      type: object
      properties:
        name:
          type: string
        spdx_id:
          type: string
        is_spdx_approved:
          type: boolean
        url:
          type: string

````