Sourcegraph provides an HTTP streaming search API that returns code-search results and related metadata as events. Its current documentation includes a concrete unauthenticated Sourcegraph.com request and an optional access-token request.

API

What your agent can do

  • With the streaming search API you can consume search results and related metadata as a stream of events.

    Via API.

Tasks depend on the interface and permissions.

Connection methods

Choose a route that fits your agent.

API connection
API path
https://sourcegraph.com/.api/search/stream

Authentication
No sign-in required.

Documentation & experience

  • 1 of 1 connection paths checked
  • Latest documentation check 11 Oct 2026
View sources and checks
How documentation is checked