{"uid":"cap_gkX4acKy09rJGkOzV6eB4","slug":"codepulse-api-github-repository-license-lookup-57cdc00f","name":"CodePulse API – GitHub Repository License Lookup","description":"Scrapes and parses repository license configurations from GitHub.","url":"https://codepulse-api.hahavoid0.workers.dev/registry/github/license","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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."}},"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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HvSgvRaYGI7Ws328-EGXq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up the open-source license (e.g. MIT, Apache-2.0) for a given GitHub repository by owner/name slug.","exampleAgentPrompt":"What license does the facebook/react GitHub repo use? I need to check if it's permissive before including it as a dependency.","exampleUseCases":[{"title":"Open source license compliance check","prompt":"Before I add huggingface/transformers as a dependency in my commercial project, can you check what license that GitHub repo uses?"},{"title":"Dependency audit for legal review","prompt":"I need to know the license for the torvalds/linux GitHub repository — is it GPL or something more permissive?"},{"title":"Automated repo vetting for OSS policy","prompt":"Check the license on vercel/next.js — my team only allows MIT or Apache-2.0 licensed libraries, does it qualify?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:52:05.755Z","isFirstParty":false}