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

# Get dependencies for a package

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

## 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

---

[API](https://skmtc.net/ecosyste-ms/apis/ecosyste-ms-repos.md) · [All operations](https://skmtc.net/ecosyste-ms/apis/ecosyste-ms-repos/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ecosyste-ms/ecosyste-ms-repos/versions/791f49c6a3cc/schema)
