{"uid":"cap_uRfuhHudrzt6z6X3TMBSZ","slug":"github-repository-license-lookup-aeba1e18","name":"GitHub Repository License Lookup","description":"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.","url":"https://intel.rallylive.ca/dev/github-license","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Cuv8Bze6nPq1Mim9yg4GL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the SPDX license identifier, full name, file path, permissive/copyleft classification, and permissions/conditions/limitations metadata for a given GitHub repository.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-vendoring compliance check","prompt":"I want to vendor the code from nickel-org/nickel.rs into our project — can you pull its GitHub license info and tell me if it's permissive or copyleft and what obligations come with it?"},{"title":"Open source audit for a new dependency","prompt":"We're about to add langchain-ai/langchain as a dependency. Can you check what license it has on GitHub, get the SPDX ID, and list any conditions or limitations we need to be aware of?"},{"title":"Comparing licenses across candidate libraries","prompt":"Can you look up the GitHub licenses for expressjs/express and fastify/fastify and tell me the SPDX IDs and whether they're permissive — I need to pick the one with fewer commercial restrictions?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:58:35.362Z","isFirstParty":false}