HTTP API
Versioned JSON for Gemfinder data. Reads are public. The stdio MCP wraps the same RPCs; this is the HTTP contract for agents that cannot run Go.
Auth
GET is unauthenticated. PUT (save/hide) is open until you set GEMFINDER_API_KEY, then send Authorization: Bearer <key> or X-Api-Key. The browser UI still writes flags through Supabase RLS so a key does not lock the app.
/api/v1/gemsRanked collector gems. Filters: q, lang, period_days, min_score, sort_by (score, stars, growth, velocity, …), flag_filter, stars, page, page_size. Each gem already has stars_growth, velocity_badge, first_seen_at.
/api/v1/gems/{githubId}/historyStar and fork snapshots from archive runs.
/api/v1/gems/{githubId}/flagsBody `{ "flag": "saved" | "hidden", "on": true }`. Requires an API key when GEMFINDER_API_KEY is set.
/api/v1/statuslast_run_at and last_scanned_at (same MAX(last_scanned_at)), live_count, and distinct languages.
/api/v1/search?q=Live GitHub repository search (same proxy as /api/github/search).
/api/v1/reposCollector search for bots. Filters: q, country, tags (payments, fintech, dev-tool, cinetpay, …), owner_type (organization|individual), payment_gap, since, min_score, limit. Each item has github_id, source_url, why_it_matters, country_signal, velocity_badge, first_seen_at, last_seen_at.
/api/v1/repos/{owner}/{name}One collector repo: license, last_commit, created_at, stars/forks over time, owner_type, country_signal, velocity_badge, first_seen_at/last_seen_at, why_it_matters. Gemfinder never emails anyone.
/api/v1/openapi.jsonMachine-readable OpenAPI 3.1 document.
Example
curl -sS "$ORIGIN/api/v1/status" curl -sS "$ORIGIN/api/v1/gems?lang=Go&sort=velocity&page_size=10" curl -sS "$ORIGIN/api/v1/repos?tags=payments&owner_type=organization"