API

Public registry APIs expose rule discovery, rule fetch, and pack fetch workflows. Rule publishing is disabled during the initial launch.

Fetch a rule

greprules fetch cve-2024-27102 --engine opengrep
opengrep --config https://api.greprules.io/api/rules/cve-2024-27102.yaml .

API surface

MethodPathPurpose
GET/api/rulesSearch public rules with filters and sorting.
GET/api/rules/{id}Fetch rule metadata, trust signals, references, and YAML.
GET/api/rules/{id}.yamlFetch a public rule as YAML.
GET/api/packs/{slug}.tar.gzFetch a rule pack tarball.