ToolAssay

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

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

Answeringour last check, 2026-11-26
7 of 7checks answered this week
876 msmedian answer time
$0.002listed price per call
$0.002price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

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

CategoryCode and developer
Provider hosthttp--forest-gas-station-mainnet--lcjl27p8lmjs.code.run
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.002 880 ms
2026-11-25 valid payment request 402$0.002 876 ms
2026-11-24 valid payment request 402$0.002 883 ms
2026-11-23 valid payment request 402$0.002 871 ms
2026-11-22 valid payment request 402$0.002 868 ms
2026-11-21 valid payment request 402$0.002 872 ms
2026-11-20 valid payment request 402$0.002 2122 ms
2026-11-19 valid payment request 402$0.002 875 ms
2026-11-18 valid payment request 402$0.002 875 ms
2026-11-17 valid payment request 402$0.002 837 ms
2026-11-16 valid payment request 402$0.002 833 ms
2026-11-15 valid payment request 402$0.002 831 ms
2026-11-14 valid payment request 402$0.002 832 ms
2026-11-13 valid payment request 402$0.002 830 ms
2026-11-12 valid payment request 402$0.002 829 ms
2026-11-11 valid payment request 402$0.002 833 ms
2026-11-10 valid payment request 402$0.002 837 ms
2026-11-09 valid payment request 402$0.002 831 ms
2026-11-08 valid payment request 402$0.002 835 ms
2026-11-07 valid payment request 402$0.002 827 ms
2026-11-06 valid payment request 402$0.002 831 ms
2026-11-05 valid payment request 402$0.002 836 ms
2026-11-04 valid payment request 402$0.002 831 ms
2026-11-03 valid payment request 402$0.002 838 ms
2026-11-02 valid payment request 402$0.002 918 ms
2026-11-01 valid payment request 402$0.002 911 ms
2026-10-31 valid payment request 402$0.002 909 ms
2026-10-29 valid payment request 402$0.002 902 ms

Example input (from the provider)

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

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "branch": {
              "description": "Repository branch whose current state should be checked.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "repository": {
              "description": "Public owner/name repository to inspect.",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
              "type": "string"
            }
          },
          "required": [
            "repository",
            "branch"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": false,
          "properties": {
            "capability": {
              "const": "repo.branch-state",
              "description": "Public capability value used to scope this lookup."
            },
            "data": {
              "additionalProperties": false,
              "description": "Public data value used to scope this lookup.",
              "properties": {
                "branch": {
                  "description": "Repository branch whose current state should be checked.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exists": {
                  "description": "Public exists value used to scope this lookup.",
                  "type": "boolean"
                },
                "head_commit_url": {
                  "description": "Public head commit url value used to scope this lookup.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "head_sha": {
                  "description": "Public head sha value used to scope this lookup.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "protected_if_publicly_exposed": {
                  "description": "Public protected if publicly exposed value used to scope this lookup.",
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "exists",
                "branch",
                "protected_if_publicly_exposed",
                "head_sha",
                "head_commit_url"
              ],
              "type": "object"
            },
            "meta": {
              "additionalProperties": false,
              "description": "Public meta value used to scope this lookup.",
              "properties": {
                "cache": {
                  "description": "Public cache value used to scope this lookup.",
                  "enum": [
                    "hit",
                    "miss",
                    "bypass"
                  ]
                },
                "checked_at": {
                  "description": "Public checked at value used to scope this lookup.",
                  "type": "string"
                },
                "duration_ms": {
                  "description": "Public duration ms value used to scope this lookup.",
                  "minimum": 0,
                  "type": "integer"
                },
                "provider": {
                  "description": "Public provider value used to scope this lookup.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "provider",
                "checked_at",
                "cache",
                "duration_ms"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "description": "Public ok value used to scope this lookup."
            },
            "version": {
              "const": "1",
              "description": "Package version whose public metadata should be checked."
            }
          },
          "required": [
            "ok",
            "capability",
            "version",
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON