# GitHub Repository License Lookup

> GitHub Repository License Lookup is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the SPDX license identifier, full name, file path, permissive/copyleft classification, and permissions/conditions/limitations metadata for a given GitHub repository.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/github-license
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-license-lookup-aeba1e18
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uRfuhHudrzt6z6X3TMBSZ

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 github-repository-license-lookup-aeba1e18
```

Example prompt: Before I add facebook/react as a dependency, can you check what license it uses — I need to know the SPDX ID, whether it's permissive or copyleft, and what conditions I'd have to follow?

## When to prefer this

Use this endpoint when you need structured, machine-readable license metadata for a specific GitHub repository, especially for compliance workflows before vendoring or adopting a dependency. It is preferred over scraping the GitHub UI because it returns parsed SPDX IDs, permissions/conditions/limitations lists, and a permissive-vs-copyleft classification in a single call. Choose this over generic web search when you need structured compliance data rather than a prose explanation of a license.

## Known failure modes

- Repository not found or private — returns an error indicating the repo could not be accessed
- Repository has no detectable license file — returns null or empty license data
- Invalid or malformed repository identifier — returns a validation error
- GitHub rate limiting or API unavailability — returns a service error
- Ambiguous or custom license not recognized by GitHub's metadata — may return partial data without SPDX ID

## How this service works

License of a GitHub repository: SPDX id, full name, license file path, permissive/copyleft class, plus the license's permissions, conditions and limitations lists from GitHub's license metadata. Compliance check before vendoring code. $0.01 per repo.

## Output

Returns the SPDX license identifier (e.g. MIT, Apache-2.0, GPL-3.0), the full human-readable license name, the path to the license file in the repository, a permissive/copyleft classification label, and three structured lists from GitHub's license metadata: permissions granted (e.g. commercial use, modification), conditions required (e.g. include copyright), and limitations (e.g. liability, warranty).

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-license-lookup-aeba1e18/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
