Trakt · API Governance Rules
Trakt API Rules
Spectral linting rules defining API design standards and conventions for Trakt.
8 Rules
error 1
warn 7
Rule Categories
trakt
Rules
warn
trakt-path-snake-case
Trakt paths use snake_case (or single lowercase words) for non-parameter segments.
$.paths
warn
trakt-summary-title-case
Every operation summary should use Title Case (e.g. "Get A Movie").
$.paths.*[get,post,put,patch,delete].summary
error
trakt-operationid-required
All operations must declare an operationId.
$.paths.*[get,post,put,patch,delete]
warn
trakt-bearer-security-defined
A bearerAuth security scheme should be defined for protected operations.
$.components.securitySchemes
warn
trakt-operation-description
All operations should include a description that explains required scopes (OAuth, VIP) and side effects.
$.paths.*[get,post,put,patch,delete]
warn
trakt-server-url
The production base URL must be api.trakt.tv.
$.servers[*].url
warn
trakt-pagination-naming
Pagination query parameters should be named "page" and "limit" (case-sensitive).
$.paths.*[get].parameters[?(@.in == 'query')].name
warn
trakt-operation-tags
Every operation should declare at least one tag in Title Case.
$.paths.*[get,post,put,patch,delete]
Spectral Ruleset
Work with this as data
Every ruleset 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 spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.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.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/trakt-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.