← Back to directory

Check whether a named branch exists in a public GitHub repository and return the...

https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/repo/branch-state

Overview

Check whether a named branch exists in a public GitHub repository and return the branch current head commit SHA and URL without cloning. This is a read-only branch-state lookup; branch protection stays unknown when the public API does not expose it. Base mainnet USDC

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Forest Infra
Source bazaar
Indexed 2026-09-28 18:14:54

Health

Status healthy
Latency (p50) 105ms
Uptime (30d) 100.0%
Reliability Score 100/100
Last Checked 2026-10-31 07:16:22
Last Healthy 2026-10-31 07:16:22
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "branch": "master", "repository": "octocat/Hello-World" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "capability": "repo.branch-state", "data": { "branch": "example", "exists": false, "head_commit_url": "example", "head_sha": "example", "protected_if_publicly_exposed": false }, "meta": { "cache": "miss", "checked_at": "2026-01-01T00:00:00.000Z", "duration_ms": 0, "provider": "github-rest" }, "ok": true, "version": "1" }, "type": "json" }