--- import Layout from '@layouts/Layout.astro'; import Main from '@components/scafold/MainCard.astro'; import { apiBase } from '@utils/api-config'; const examples = [ { label: 'Browse', path: '/v1/categories', response: `{ "data": [ { "name": "Essentials", "slug": "essentials", "sections": [ { "name": "Password Managers", "slug": "password-managers" }, { "name": "Browsers", "slug": "browsers" }, … ] }, … ] }`, }, { label: 'Lookup', path: '/v1/services/bitwarden', response: `{ "data": { "name": "Bitwarden", "url": "https://bitwarden.com", "category": "Essentials", "section": "Password Managers", "github": "bitwarden/server" } }`, }, { label: 'Search', path: '/v1/search?q=vpn', response: `{ "data": [ { "slug": "ovpn", "name": "OVPN", "section": "Virtual Private Networks", "score": 15.29 } ], "pagination": { "page": 1, "limit": 20, "total": 14 } }`, }, ]; const endpoints = [ { title: 'Listing data', routes: [ ['/v1/services', 'Every service, paginated'], ['/v1/services/{slug}', 'A single service'], ['/v1/categories', 'All categories'], ['/v1/categories/{slug}', 'One category and its sections'], ['/v1/sections/{slug}', 'One section and its services'], ['/v1/search', 'Ranked search across every listing'], ['/v1/stats', 'Totals for the whole list'], ['/v1/health', 'Uptime and data freshness'], ], }, { title: 'Enrichment', routes: [ ['/v1/enrich/privacy/{tosdrId}', 'ToS;DR rating and policy points'], ['/v1/enrich/security/{owner}/{repo}', 'OSSF scorecard and advisories'], ['/v1/enrich/github/{owner}/{repo}', 'Repo health, license and activity'], ['/v1/enrich/android/{pkg}', 'Trackers, permissions, de-Googled support'], ['/v1/enrich/ios/{bundleId}', 'Version, size and reviews'], ['/v1/enrich/docker/{name}', 'Image tags and pull stats'], ['/v1/enrich/website', 'Hosting, DNS and security posture'], ['/v1/enrich/trackers', 'Third-party trackers a website loads'], ['/v1/enrich/discord/{invite}', 'Server size and activity'], ], }, ]; const source = 'https://github.com/Lissy93/awesome-privacy/tree/main/api'; ---

API

Every listing on Awesome Privacy is available through our REST API. Browse categories, sections and services, and use the enrichment endpoints to get additional context.

The API is used to power this website, as well as the weekly listing audit and run some preliminary checks on new PRs.

{ examples.map((_, index) => ( )) }
{ examples.map(({ label }, index) => ( )) }
{ examples.map(({ path, response }) => (
{response}
)) }
{ endpoints.map((group) => (

{group.title}

    {group.routes.map(([path, summary]) => (
  • {path} {summary}
  • ))}
)) }