{"uid":"cap_O6frSQPygaLBuiRL-gf1S","slug":"goal402-x402-percha-workers-dev-bbb1deb4","name":"Goal402 Get League by ID","description":"Get league by ID","url":"https://goal402-x402.percha.workers.dev/leagues/cf","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","required":["id"],"properties":{"id":{"type":"string","description":"League ID"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"country_name":{"type":"string"}}}}}}},"responseSchema":{"type":"object","required":["id","name","country_name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"country_name":{"type":"string"}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"id":"pl"}}},"response":{"id":"cf","name":"Bundesliga","country_name":"Alemania"}},"exampleRequest":{"id":"pl"},"tags":["x402"],"displayCostAmount":"0.001000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001000/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_L8tc6PvUXbETe9uZk4SRs","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":"Retrieves details for a specific football league by its ID, including name and country","exampleAgentPrompt":"What are the details for the football league with ID 'cf' — I need its name and country?","exampleUseCases":[{"title":"Verify league identity for fixture data","prompt":"I just pulled a fixture with league ID 'pl' — can you tell me what league that is and which country it's in?"},{"title":"Build international tournament lookup tool","prompt":"A user gave me league ID '1' from their database — fetch me the league name and country so I can display it properly in our app."},{"title":"Cross-reference league in sports statistics app","prompt":"I'm analyzing betting odds and I see league ID 'sa' mentioned repeatedly — what's the actual name of that league and where is it located?"}],"resultDescription":"Returns a JSON object with the league's ID, name, and country name for the requested league ID","failureModes":["Invalid or unknown league ID returns an error or empty result","Missing required 'id' query parameter causes a 400 or validation error","Payment not provided or insufficient USDC results in 402 Payment Required","Network timeout or worker unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you already know a specific league ID and need to resolve it to structured league details (name, country). Prefer over the list-all-leagues endpoint when you only need one league's metadata and want to avoid fetching the full list.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:32.212Z","isFirstParty":false}