Sourcegraph GraphQL API

The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph now recommends migrating to the versioned REST API for compatibility guarantees. Also exposed as a debug surface inside each instance.

Sourcegraph GraphQL API is one of 10 APIs that Sourcegraph publishes on the APIs.io network.

Tagged areas include GraphQL, Code Intelligence, and Legacy. The published artifact set on APIs.io includes API documentation and an API reference.

API entry from apis.yml

apis.yml Raw ↑
aid: sourcegraph:sourcegraph-graphql-api
name: Sourcegraph GraphQL API
description: The historical GraphQL API used by most Sourcegraph integrations to date. It is still available
  but Sourcegraph now recommends migrating to the versioned REST API for compatibility guarantees. Also
  exposed as a debug surface inside each instance.
humanURL: https://sourcegraph.com/api/graphql
tags:
- GraphQL
- Code Intelligence
- Legacy
properties:
- type: Documentation
  url: https://sourcegraph.com/docs/api
- type: APIReference
  url: https://sourcegraph.com/api/graphql