How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Dependency Graph API

The GitHub Dependency Graph API lets you view and submit dependency information for a repository. It provides endpoints to export the software bill of materials (SBOM) for a repository and to submit dependency snapshots from build tools or package managers, enabling GitHub to generate Dependabot alerts for vulnerable dependencies.

GitHub Dependency Graph API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 3 JSON Schema definitions.

Tagged areas include Dependency-Graph, Dependencies, Security, and Supply Chain. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 3 JSON Schemas.

This API exposes 5 operations across 5 paths, and defines 15 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

5 operations 5 paths 15 schemas 4 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 4 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

dependency-graph 5

Endpoints to access Dependency Graph features.

GET
/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
Get a diff of the dependencies between commits
dependency-graph/diff-range 4 params → 200404403400500503
GET
/repos/{owner}/{repo}/dependency-graph/sbomdeprecated
Export a software bill of materials (SBOM) for a repository
dependency-graph/export-sbom 2 params → 200404403
GET
/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid}
Fetch a software bill of materials (SBOM) for a repository
dependency-graph/fetch-sbom-report 3 params → 302202404403
GET
/repos/{owner}/{repo}/dependency-graph/sbom/generate-report
Request generation of a software bill of materials (SBOM) for a repository
dependency-graph/generate-sbom-report 2 params → 201404403
POST
/repos/{owner}/{repo}/dependency-graph/snapshots
Create a snapshot of dependencies for a repository
dependency-graph/create-repository-snapshot 2 params body → 201

Schemas 15

The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are snapshot (8 properties), snapshot_2 (8 properties), scim-error (6 properties), dependency (5 properties). Each schema is shown below with its type and property counts.

basic-error
object
Basic Error
4 properties
manifest
object
4 properties 1 required
metadata
object
User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
dependency
object
5 properties
dependency-graph-diff
array
A diff of the dependencies between two commits.
scim-error
object
Scim Error
6 properties
snapshot
object
Create a new snapshot of a repository's dependencies.
8 properties 6 required
dependency-graph-spdx-sbom
object
A schema for the SPDX JSON format returned by the Dependency Graph.
1 property 1 required
snapshot_2
object
Create a new snapshot of a repository's dependencies.
8 properties 6 required
manifest_2
object
4 properties 1 required
dependency_2
object
5 properties
metadata_2
object
User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
dependency-graph-diff_2
array
A diff of the dependencies between two commits.
basic-error_2
object
Basic Error
4 properties
dependency-graph-spdx-sbom_2
object
A schema for the SPDX JSON format returned by the Dependency Graph.
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-dependency-graph-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Dependency Graph API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.