# CodePulse API – GitHub Repository License Lookup

> CodePulse API – GitHub Repository License Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Looks up the open-source license (e.g. MIT, Apache-2.0) for a given GitHub repository by owner/name slug.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/registry/github/license
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-github-repository-license-lookup-57cdc00f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gkX4acKy09rJGkOzV6eB4

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 codepulse-api-github-repository-license-lookup-57cdc00f -d '<json body>'
```

Example prompt: What license does the facebook/react GitHub repo use? I need to check if it's permissive before including it as a dependency.

## When to prefer this

Use this endpoint when you need a fast, pay-per-call license lookup for a specific GitHub repository without setting up OAuth or a GitHub API key. Ideal for AI agents doing automated dependency audits, OSS compliance checks, or legal due diligence pipelines where USDC micropayments via x402 are acceptable. Prefer this over GitHub's native API when you want a no-auth, agent-friendly interface with a structured confidence score and disclaimer built in.

## Known failure modes

- Repository slug not found or misspelled — may return unsupported or low confidence result
- Private or unlicensed repositories may return no license or low confidence
- Rate limits or network errors on the upstream GitHub data source
- Ambiguous or non-standard license files may reduce confidence from 'high' to 'low'
- Stale data if the repository license changed after the data_as_of date

## How this service works

Scrapes and parses repository license configurations from GitHub.

## Output

Returns a JSON object containing the detected license identifier (e.g. 'MIT', 'Apache-2.0'), a confidence level (e.g. 'high'), the date the data was collected (e.g. '2026-06'), any warnings, a boolean indicating whether the repo is supported, and a disclaimer noting the result is informational only and not legal advice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "Repository slug (owner/name)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "license": "MIT"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-github-repository-license-lookup-57cdc00f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
