Scan at scaleSites with a broken API catalog
Sites with a broken API catalog
A site-wide report: one row per host, over the api_catalog rows the crawl emitted.
What this report returns
An API catalog is a short index at /.well-known/api-catalog that lists a site's APIs and where each is described, so an agent finds every API from one address instead of guessing paths.
A row appears here when any of these is wrong, worst first:
- Malformed LinksetThe document breaks the linkset JSON structure (RFC 9264):
"linkset"isn't its only member or isn't an array, a relation isn't a list of objects, or a link has no"href", so a parser rejects or misreads it.Fix Shape it as{"linkset": [{"anchor": "...", "item": [{"href": "https://api.example.com/"}]}]}. - No API LinksThe catalog holds no links at all, but RFC 9727 requires it to link to the site's API endpoints, so an agent finds nothing to call.Fix Add an
"item"link for each API, e.g."item": [{"href": "https://api.example.com/v1"}]. - Wrong Media TypeThe catalog isn't served as
application/linkset+json, the one format RFC 9727 requires, so a client asking for a linkset may not parse it.Fix Serve it asapplication/linkset+json, with the RFC 9727 profile parameter (see API Catalog Missing Profile). - Insecure LinkThe catalog lists an API on plain http://, so an agent that follows it sends its requests unencrypted, along with any credential the API asks for. A Lumar bar: RFC 9727 only asks for the catalog itself over TLS.Fix Serve the API over https and link
"href": "https://api.example.com/". - Internal LinkThe catalog lists an API on localhost, a private IP or an internal name, publishing internal metadata to anyone who reads it, which RFC 9727 tells publishers to audit out.Fix Remove internal APIs from the public catalog.
A note, not a fault: we also mention when the media type leaves out the RFC 9727 profile parameter. It never fails the site.
Spec: RFC 9727, with the linkset format from RFC 9264. Sites that publish no API catalog don't appear here, because absence is not a failure.
Security checks are provisional; precision has not yet been measured. A clean row is not a security assessment.
The columns it shows
Every defect this technology can carry is a column in the grid, worst first, so nothing is hidden behind a filter you have to know to apply.
- Host
host - API Catalog Valid
apiCatalogValid - API Catalog Conformance Issue Detected
apiCatalogConformanceIssueDetected - API Catalog Security Risk Detected
apiCatalogSecurityRiskDetected - API Catalog Findings
apiCatalogFindings - API Catalog Content Type
apiCatalogContentType - API Catalog Link Count
apiCatalogLinkCount - API Catalog Relations
apiCatalogRelations - API Catalog Malformed Linkset
apiCatalogMalformedLinkset - API Catalog No API Links
apiCatalogNoApiLinks - apiCatalog HTTPS Downgrade
apiCatalogInsecureRedirect - API Catalog Wrong Media Type
apiCatalogWrongMediaType - API Catalog Insecure Link
apiCatalogInsecureLink - API Catalog Internal Link
apiCatalogInternalLink - API Catalog Missing Profile
apiCatalogMissingProfile - Ruleset Version
rulesetVersion - Security Check Status
securityCheckStatus - Related Security Frameworks
securityFrameworkReferences
About API catalog
An index at /.well-known/api-catalog listing the site's APIs and their descriptions.
Read how API catalog is checked, including the specification it is validated against and a worked correct and broken example.
Running it
This report comes with Agentic Readiness in Lumar and appears on every crawl of any project that has it turned on. See the whole set, or check a single URL with the scanner on this site, which runs the same code with no account.