Debian Code Search
OpenAPI for https://codesearch.debian.net/
Developer tools#openapi#developer-tools
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
OpenAPI for https://codesearch.debian.net/
Endpoints 2
search
- GETSearches through source code
/search?query=string&match_mode=regexpPerforms a search through the full Debian Code Search corpus, blocking until all results are available (might take a few seconds depending on the search… - GETLike /search, but aggregates per package
/searchperpackage?query=string&match_mode=regexpThe search results are currently sorted arbitrarily, but we intend to sort them by ranking eventually:…
API details
- Base URL
https://codesearch.debian.net/api/v1- Authentication
- An API key in the x-dcs-apikey header
- Operations
- 2 operations on 2 pathsGET 2
- Main resources
- search 2
- Response formats
application/json- Description format
- OpenAPI 3.0.1, API version
1.4.0 - Links
- Documentation · OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Debian Code Search in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Debian Code Search collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the x-dcs-apikey header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Searches through source code” (GET /search?query=string&match_mode=regexp), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Debian Code Search?
OpenAPI for https://codesearch.debian.net/ It is listed under Developer tools and has 2 endpoints.
Who publishes the Debian Code Search?
It is listed from Debian's public API description (an OpenAPI document), not published by Debian on Swastik Codes. Anyone who controls codesearch.debian.net can claim the profile by adding a DNS TXT record.
What is the base URL of the Debian Code Search?
Requests go to https://codesearch.debian.net/api/v1. Endpoint paths are added to this base URL.
How do I authenticate with the Debian Code Search?
With an API key in the x-dcs-apikey header.
How many endpoints does the Debian Code Search have?
2 operations on 2 paths (2 GET). The largest groups are search.
Is forking the Debian Code Search free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.