{"uid":"cap_JnSnKe05uum-uqOBhvXIS","slug":"compras-gov-br-tender-id-decoder-39b37234","name":"Compras.gov.br Tender ID Decoder","description":"Offline decode of a Compras.gov.br 17-digit tender id (UASG + modality + number + year) into its parts, with the modality name in English. Deterministic, instant.","url":"https://brdata.thomenz.me/tender/decode/:id","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"},"pathParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","pattern":"^\\d{17}$","examples":["98791305900292026"],"description":"Compras.gov.br 17-digit id: UASG(6)+modality(2)+number(5)+year(4)."}}},"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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6LkOC1QKcwDFHNpgX7024","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Offline decodes a Brazilian Compras.gov.br 17-digit tender ID into its structured components (UASG, modality, number, year) with the modality name in English.","exampleAgentPrompt":"Can you decode this Compras.gov.br tender ID for me — 98791305900292026 — and tell me the UASG, modality in English, tender number, and year?","exampleUseCases":null,"resultDescription":"Returns the parsed components of the 17-digit Compras.gov.br tender ID: the 6-digit UASG (purchasing unit) code, the 2-digit modality code with its English name, the 5-digit tender number, and the 4-digit year — all derived deterministically offline with no external data fetch.","failureModes":["ID is not exactly 17 digits — fails schema validation","Non-numeric characters in the ID — rejected by pattern match","Unknown modality code — modality name may be missing or generic","Payment not provided or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint whenever you need to decompose a Compras.gov.br 17-digit tender identifier into its structural parts, especially when you need the procurement modality name in English. It is deterministic and instant with no dependency on upstream Brazilian government APIs, making it reliable for bulk parsing or offline-style workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:36:30.483Z","isFirstParty":false}