---
title: "Get dependencies for a package"
method: GET
path: "/usage/{ecosystem}/{package}/dependencies"
---

# Get dependencies for a package

`GET /usage/{ecosystem}/{package}/dependencies`

## Request

- Base URL: `https://repos.ecosyste.ms/api/v1`
- URL: `https://repos.ecosyste.ms/api/v1/usage/{ecosystem}/{package}/dependencies`
- Auth: none declared

## Path parameters

- `ecosystem` string, required
- `package` string, required

## Query parameters

- `page` integer
- `per_page` integer
- `after` integer

## Response `200`

OK

- DependencyWithRepository[]
  - `id` integer
  - `package_name` string
  - `ecosystem` string
  - `requirements` string
  - `kind` string
  - `direct` boolean
  - `optional` boolean
  - `repository` Repository
    - `id` integer
    - `uuid` string
    - `full_name` string
    - `owner` string
    - `description` string
    - `archived` boolean
    - `fork` boolean
    - `pushed_at` string, date-time
    - `size` integer
    - `stargazers_count` integer
    - `open_issues_count` integer
    - `forks_count` integer
    - `subscribers_count` integer
    - `default_branch` string
    - `last_synced_at` string, date-time
    - `etag` string
    - `topics` string[]
    - `latest_commit_sha` string
    - `homepage` string
    - `language` string
    - `has_issues` boolean
    - `has_wiki` boolean
    - `has_pages` boolean
    - `mirror_url` string
    - `source_name` string
    - `license` string
    - `status` string
    - `scm` string
    - `pull_requests_enabled` boolean
    - `icon_url` string
    - `metadata` object
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `dependencies_parsed_at` string, date-time
    - `dependency_job_id` string
    - `html_url` string
    - `previous_names` string[]
    - `tags_count` integer
    - `template` boolean
    - `template_full_name` string
    - `latest_tag_name` string
    - `latest_tag_published_at` string, date-time
    - `repository_url` string
    - `tags_url` string
    - `releases_url` string
    - `manifests_url` string
    - `owner_url` string
    - `download_url` string
    - `purl` string
    - `commit_stats` object
    - `scorecard` Scorecard
      - `id` integer
      - `data` object: Raw scorecard data from the API
      - `last_synced_at` string, date-time, nullable
      - `repository_id` integer
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - `host` Host
      - `name` string
      - `url` string
      - `kind` string
      - `repositories_count` integer
      - `owners_count` integer
      - `icon_url` string
      - `host_url` string
      - `repositoris_url` string
      - `repository_names_url` string
      - `owners_url` string
      - `version` string
      - `created_at` string, date-time
      - `updated_at` string, date-time
      - `status` 'online' | 'timeout' | 'connection_failed' | 'http_error' | 'ssl_error' | 'error': Current status of the host
      - `status_checked_at` string, date-time: Timestamp when status was last checked
      - `response_time` integer, nullable: Response time in milliseconds (null if host is offline)
      - `last_error` string, nullable: Last error message encountered
      - `robots_txt_status` 'success' | 'not_found' | 'error_404' | 'error_500' | 'error_timeout': Status of robots.txt fetch
      - `robots_txt_updated_at` string, date-time, nullable: Timestamp when robots.txt was last fetched
      - `robots_txt_url` string: URL to the host's robots.txt file
      - `online` boolean: Whether the host is currently online
      - `can_crawl_api` boolean: Whether API crawling is allowed by robots.txt
  - `manifest` Manifest
    - `ecosystem` string
    - `filepath` string
    - `sha` string
    - `kind` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `repository_link` string
    - `dependencies` Dependency[]
      - `id` integer
      - `package_name` string
      - `ecosystem` string
      - `requirements` string
      - `kind` string
      - `direct` boolean
      - `optional` boolean

## Changes

- **2025-11-26** (v1) `db9ac1a2c1c4`: 1 breaking, 9 warning, 3 info
  - the response's body type changed from `object` to `array` for status `200`
  - removed the optional property `direct` from the response with the `200` status
  - removed the optional property `ecosystem` from the response with the `200` status
  - removed the optional property `id` from the response with the `200` status
  - …9 more
- **2025-08-14** (v1) `9b9d5be2cb15`: 1 info
  - added the optional property `repository/scorecard` to the response with the `200` status
- **2025-07-21** (v1) `dca49000770b`: 9 info
  - added the optional property `repository/host/can_crawl_api` to the response with the `200` status
  - added the optional property `repository/host/last_error` to the response with the `200` status
  - added the optional property `repository/host/online` to the response with the `200` status
  - added the optional property `repository/host/response_time` to the response with the `200` status
  - …5 more
- **2025-06-11** (v1) `1f66d413eaa1`: 1 info
  - added the optional property `repository/purl` to the response with the `200` status
- **2024-04-30** (v1) `0d9c2cd42de0`: 1 info
  - added the optional property `repository/id` to the response with the `200` status

[Operation history](https://skmtc.dev/ecosyste-ms/apis/ecosyste-ms-repos/changes/usage/:ecosystem/:package/dependencies/get.md)

---

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