# Foundry: GitHub Repository Metadata Lookup

> Foundry: GitHub Repository Metadata Lookup is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Fetches public metadata for a GitHub repository including stars, forks, license, language, description, and activity stats.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/github-repo?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-github-repository-metadata-lookup-30eca87e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NFi-re1xL2JFQtIAy_enj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability foundry-github-repository-metadata-lookup-30eca87e -d '<json body>'
```

Example prompt: Can you pull up the GitHub repo stats for coinbase/x402 — I want to see the star count, forks, license, language, and whether it's still actively maintained?

## When to prefer this

Use this endpoint when you need quick, structured public metadata about a GitHub repository — especially star/fork counts, license, language, and activity signals — without needing full code access or GitHub API authentication. Ideal for due diligence on dependencies, evaluating project health, or populating enrichment pipelines.

## Known failure modes

- Invalid or non-existent repository slug returns an error
- Private repositories cannot be accessed
- Malformed GitHub URL may not parse correctly
- Rate limits or connectivity issues may cause timeouts
- Repos with no license field return null for license

## How this service works

Pay-per-call data for agents: check x402 sellers before paying them, and read Base contracts' proxy, owner and privileged powers straight from the chain.

## Output

Returns a JSON object containing the repository's full name, star count, fork count, license identifier, primary programming language, description, creation date, last push timestamp, open issue count, and whether the repository is archived.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "'owner/repo' or a GitHub URL"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://github.com/coinbase/x402",
  "repo": "coinbase/x402",
  "forks": 296,
  "stars": 177,
  "created": "2026-04-02T16:51:03Z",
  "license": "Apache-2.0",
  "archived": false,
  "language": "TypeScript",
  "last_push": "2026-10-27T22:27:13Z",
  "description": "A payments protocol for the internet. Built on HTTP.",
  "open_issues": 246
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-github-repository-metadata-lookup-30eca87e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
