Pi-hole website screenshot

Pi-hole

Pi-hole is an open source network-wide DNS sinkhole that blocks ads, tracking, and unwanted domains across all devices on a local network without requiring per-device software. It runs on lightweight hardware such as Raspberry Pi and offers a web admin interface plus a REST API (introduced in v6 via the pihole-FTL binary) for programmatic management of blocklists, allowlists, groups, clients, DNS settings, and live query logs.

Pi-hole publishes 4 API contracts indexed on the APIs.io network, including Auth API, DNS API, Groups API, and 1 more. Tagged areas include DNS, Ad Blocking, Network Security, Privacy, and Open Source.

The Pi-hole catalog on APIs.io includes 1 Spectral governance ruleset.

Pi-hole’s developer surface includes authentication, documentation, engineering blog, and 9 more developer resources.

22.3/100 emerging ▬ flat Agent 19/100 agent aware Front door AI 1/6 silent Heartbeat 100/100 alive Full breakdown ↓
scored 2026-11-13 · rubric v0.28.0 · Show this score on your site →
1 published contract
DNSAd BlockingNetwork SecurityPrivacyOpen SourceSelf-Hosted

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-11-13 · rubric v0.28.0
Regulatory Posture applies to this provider. Its tags matched the Horizontal (data, software, accessibility, platform) regime, so Regulatory Posture carries 15 points of the composite. If this regime is wrong for your business, say so on your provider repo — the applicability map is public and we will correct it.
Create-or-Update Ergonomics applies to this provider. This API accepts writes, so it carries 10 points of the composite. It is scored from the published contracts themselves: whether a caller can create-or-update in one call, whether the write accepts a key the caller already holds, and whether the response says which branch ran. Without that, every write needs a search-and-branch in front of it, and the first time that check is skipped a duplicate record is created. Scored against the observed mean rather than raw — a provider at the catalog average is unchanged by this facet, not penalised by it.
The six quality facets above are damped to 75 points between them, because the conditional facet above carries the other 25. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 75% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Show this score on your site. Kin Score badge preview for Pi-hole It updates itself when the score changes. Paste this where you link to your API docs:
<a href="https://apis.io/providers/pi-hole/"><img src="https://apis.io/badge/pi-hole/card.svg" alt="Pi-hole on APIs.io — Kin Score by API Evangelist"></a>
Other styles, a README pill and a shields.io endpoint are on the badge page.
Raise your score.
Agent readiness — checks not met, largest first (exact, from this profile):
  • MCP Server +12 pts — deployment.mode + probe verdict on the mcp/ manifest, not the pointer; an unprobed slug falls back to authorship Ask about this →
  • Idempotency +9 pts — OpenAPI mutating operations declare an idempotency key — a header, a request-body property, or a named de-duplication token whose own description says so (verified); else common[].type matches /idempoten/i (documented) Ask about this →
  • Stable Error Semantics +8 pts — OpenAPI $refs a shared error schema across 4xx/5xx responses (verified), else common[].type includes ErrorCatalog / ErrorCodes / DeclineCodes Ask about this →
  • A2A Agent Card +8 pts — a2a/-a2a.yml manifest, graded on conformance.grade against A2A 1.0.0 Ask about this →
  • Rate-Limit Signaling +7 pts — OpenAPI responses document X-RateLimit-* / RateLimit headers (verified), else a rate_limits artifact or RateLimits link (documented) Ask about this →
  • Request/Response Examples +7 pts — share of operations carrying request/response examples; else an Examples / Code Samples link Ask about this →
10 more unmet checks in the Agent Readiness table above.
Kin Score — facets with the most composite points still available (weight × headroom):
Each check links to what satisfies it. Publish the artifact, or tell us where it already lives, and the score moves on the next scoring run.
Not sure how this applies to your stack? Ask about any one item. Kin Lane reads every question, looks at your profile and your situation, and replies with what a fix would take — scoped to that one area, priced up front, yours whether you ship it or not. Ask a question →
Ask about:
Pi Hole · a person reads this and replies by email.
or email info@apis.io
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from the provider profile at artifacts.apis.io/pi-hole/apis.yml: open an issue on github.com/api-evangelist/pi-hole to ask a question or point us at an artifact you publish. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

Standards implemented 2

Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.

DNS
tagged — the provider's own APIs.json carries the standard as a tag; implementation not verified
measured — observed by APIs.io (published)

APIs 4

Individual APIs this provider publishes, each with its own machine-readable definition.

Pi-hole Auth API

Session authentication.

Pi-hole DNS API

DNS blocking configuration.

Pi-hole Groups API

Manage DNS blocking groups.

Pi-hole Info API

Pi-hole instance information.

Open Collections 5

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

Pi-hole REST Auth API

OPEN COLLECTION

Pi-hole REST Auth DNS API

OPEN COLLECTION

Pi-hole REST API

OPEN COLLECTION

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs. Counts are the severity each rule declares, not results of running them.

Pi-hole API Rules

49 rules · 47 error-severity 1 warn-severity 1 info-severity

SPECTRAL

Security Posture 2

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Pi-hole Authentication

apiKey · 1 scheme

SECURITY

Pi-hole Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Agentic Access (API Evangelist recommendations) 1

Recommended x-agentic-access execution contracts for AI agents.

Pi-hole Agentic Access

7 operations · 4 acting

7 operations · 4 acting

AGENTIC

Resources

Documentation 1

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 2

Authentication, authorization, and security posture

Learn 1

Tutorials, courses, talks, and written guidance

Company 3

The organization behind the API

Other 2

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: pi-hole
name: Pi-hole
description: Pi-hole is an open source network-wide DNS sinkhole that blocks ads, tracking, and unwanted domains across all
  devices on a local network without requiring per-device software. It runs on lightweight hardware such as Raspberry Pi and
  offers a web admin interface plus a REST API (introduced in v6 via the pihole-FTL binary) for programmatic management of
  blocklists, allowlists, groups, clients, DNS settings, and live query logs.
type: Index
deliveryModel:
  model: unknown
  open_source: false
  commercial: false
  callable_host: false
  label: Delivery model not determined — needs a product licence on record
  confidence: low
  source:
  - openapi
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: unknown
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Unknown
  confidence: low
  source:
  - authentication
  - security
  generated: '2026-11-13'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/pi-hole.png
x-docs-platform: mkdocs
x-docs-platform-confidence: medium
x-docs-platform-checked: 2026-10-04
x-docs-hosting: netlify
tags:
- DNS
- Ad Blocking
- Network Security
- Privacy
- Open Source
- Self-Hosted
tags_raw:
- DNS
- Ad Blocking
- Network Security
- Privacy
- Open Source
- Self-Hosted
- Open-Source
url: https://raw.githubusercontent.com/api-evangelist/pi-hole/refs/heads/main/apis.yml
created: '2026-05-11'
modified: '2026-05-11'
specificationVersion: '0.23'
apis:
- aid: pi-hole:pi-hole-auth-api
  name: Pi-hole Auth API
  description: Session authentication.
  humanURL: https://docs.pi-hole.net/api/
  baseURL: http://pi.hole/api
  tags:
  - Authentication
  tags_raw:
  - Auth
  properties:
  - type: OpenAPI
    url: openapi/pi-hole-auth-api-openapi.yml
  - type: Documentation
    url: https://docs.pi-hole.net/api/
  - type: Authentication
    url: https://docs.pi-hole.net/api/auth/
- aid: pi-hole:pi-hole-dns-api
  name: Pi-hole DNS API
  description: DNS blocking configuration.
  humanURL: https://docs.pi-hole.net/api/
  baseURL: http://pi.hole/api
  tags:
  - DNS
  properties:
  - type: OpenAPI
    url: openapi/pi-hole-dns-api-openapi.yml
  - type: Documentation
    url: https://docs.pi-hole.net/api/
  - type: Authentication
    url: https://docs.pi-hole.net/api/auth/
- aid: pi-hole:pi-hole-groups-api
  name: Pi-hole Groups API
  description: Manage DNS blocking groups.
  humanURL: https://docs.pi-hole.net/api/
  baseURL: http://pi.hole/api
  tags:
  - Group
  tags_raw:
  - Groups
  properties:
  - type: OpenAPI
    url: openapi/pi-hole-groups-api-openapi.yml
  - type: Documentation
    url: https://docs.pi-hole.net/api/
  - type: Authentication
    url: https://docs.pi-hole.net/api/auth/
- aid: pi-hole:pi-hole-info-api
  name: Pi-hole Info API
  description: Pi-hole instance information.
  humanURL: https://docs.pi-hole.net/api/
  baseURL: http://pi.hole/api
  tags:
  - Info
  properties:
  - type: OpenAPI
    url: openapi/pi-hole-info-api-openapi.yml
  - type: Documentation
    url: https://docs.pi-hole.net/api/
  - type: Authentication
    url: https://docs.pi-hole.net/api/auth/
common:
- type: AgenticAccess
  url: agentic-access/pi-hole-agentic-access.yml
- type: DomainSecurity
  url: security/pi-hole-domain-security.yml
- type: Authentication
  url: authentication/pi-hole-authentication.yml
- type: LinkedIn
  url: https://www.linkedin.com/company/the-pi-hole
- type: Website
  url: https://pi-hole.net
- type: Documentation
  url: https://docs.pi-hole.net
- type: GitHubOrganization
  url: https://github.com/pi-hole
- type: Source Code
  url: https://github.com/pi-hole/pi-hole
- type: FTL Source
  url: https://github.com/pi-hole/FTL
- type: Discourse Forum
  url: https://discourse.pi-hole.net
- type: Donate
  url: https://pi-hole.net/donate/
- type: Blog
  url: https://pi-hole.net/blog/
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com

Pi-hole API — frequently asked questions

Does Pi-hole have an API?

Yes. APIs.io lists 4 APIs from Pi-hole, including Pi-hole Auth API, Pi-hole DNS API and Pi-hole Groups API, and 1 more.

Is there an OpenAPI specification for the Pi-hole API?

Yes. APIs.io indexes 4 OpenAPI specifications for Pi-hole, each linked for download from this page.

How do I authenticate with the Pi-hole API?

Pi-hole uses bearer-token authentication (apiKey · 1 scheme). The details are profiled on APIs.io as Pi-hole Authentication.

Is the Pi-hole API ready for AI agents?

Pi-hole has a Kin Score of 22.3 out of 100 (emerging) and an Agent Readiness score of 19.0 (agent-aware), scored by API Evangelist on 2026-11-13.

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/pi-hole"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/pi-hole/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/pi-hole/evidence"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.