Skip to content

Debian Code Search API

by codesearch.debian.net

API keyHTTPSDevelopment
Open documentation ↗

Overview

OpenAPI for https://codesearch.debian.net/

Debian Code Search is a development API from codesearch.debian.net. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
https://codesearch.debian.net/api/v1
Version
1.4.0
Endpoints
2
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://codesearch.debian.net/api/v1/search" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://codesearch.debian.net/api/v1/search", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://codesearch.debian.net/api/v1/search",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/searchSearches through source code
GET/searchperpackageLike /search, but aggregates per package

Questions

Does the Debian Code Search API need an API key?

Yes. The Debian Code Search API uses API key authentication; the documentation explains how to get credentials.

Does the Debian Code Search API support HTTPS?

Yes, the Debian Code Search API is served over HTTPS.

How many endpoints does the Debian Code Search API have?

Its OpenAPI description lists 2 endpoints in version 1.4.0. All of them are shown on this page.

What are alternatives to the Debian Code Search API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).