{"uid":"cap_9B28ba1kTNrzEA9pc94R4","slug":"okf-index-brazilian-federal-legislation-search-18caedb9","name":"OKF Index Brazilian Federal Legislation Search","description":"OKF Index: search Brazilian federal laws by number/year or words (up to 20 items), paid per call","url":"https://okfindex.com/api/x402/legislation?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"q":{"type":"string","description":"Number/year, such as 10406/2002, or words. At most 160 characters. LGPD, CDC and Código Civil aliases are supported."},"type":{"type":"string","description":"constituicao, leis-ordinarias, leis-complementares, leis-delegadas or decretos-lei."},"year":{"type":"integer","description":"Year, from 1800 to 2099."},"after":{"type":"string","description":"Cursor from next. Do not generate a cursor."},"authority":{"type":"string","description":"Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"next":{"type":"null","description":"URL of the next page on `GET /api/legislation/search` (with `after`); `null` at the end."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"uf":{"type":"null"},"api":{"type":"string"},"url":{"type":"string"},"type":{"type":"string"},"year":{"type":"number"},"title":{"type":"string"},"number":{"type":"string"},"sha256":{"type":"string"},"country":{"type":"string"},"okf_url":{"type":"string"},"revoked":{"type":"null"},"provider":{"type":"string"},"authority":{"type":"string"},"lexml_url":{"type":"string"},"source_url":{"type":"string"},"description":{"type":"string"},"jurisdiction":{"type":"string"},"missing_text":{"type":"boolean"},"text_version":{"type":"string"},"downloaded_at":{"type":"string"}}},"description":"Up to 20 laws, as in `GET /api/legislation/search`: {id,title,description,type,year,number,authority,country,jurisdiction,uf,provider,source_url,lexml_url,downloaded_at,text_version,revoked,missing_text,sha256,api,url,okf_url}."},"cobranca":{"type":"object","properties":{"via":{"type":"string","description":"`x402`, `credito` or the marketplace that already charged the call."},"repetido":{"type":"boolean","description":"`true` when the credit had already paid this request (the same `Idempotency-Key`): nothing was charged again."},"preco_usd":{"type":"string","description":"The price charged for this call in US dollars, such as `0.01`: at least US$ 0.01 with single x402 payment; the unit price with credit."}},"description":"How this call was paid."}},"description":"The result of one paid legislation search."}}}}},"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_mvyI2jwFuj5QCgN8_sb-c","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":"Search Brazilian federal laws by number/year or keywords, returning up to 20 matching legislation items","exampleAgentPrompt":"Can you look up the Brazilian federal law 10406 from 2002 — that's the Código Civil — using OKF Index and show me the details?","exampleUseCases":[{"title":"LGPD compliance research","prompt":"Search OKF Index for the LGPD — Brazil's data protection law — and pull up the full legislative details so I can review it for our compliance audit."},{"title":"Finding laws by year","prompt":"Find all Brazilian complementary laws issued in 2021 on OKF Index so I can see what federal legislation was enacted that year."},{"title":"Topic-based legislation search","prompt":"Search Brazilian federal legislation on OKF Index for laws related to environmental protection — use the words 'meio ambiente' and filter to leis-ordinarias."}],"resultDescription":"Returns up to 20 matching Brazilian federal legislation items. Each item typically includes the law number, year, type (e.g. lei-ordinaria, decreto-lei), title or subject matter, and the issuing authority. A pagination cursor ('next') may be included to retrieve additional results.","failureModes":["Query exceeds 160 characters — truncate or shorten the search term","Invalid law type enum value — must be one of: constituicao, leis-ordinarias, leis-complementares, leis-delegadas, decretos-lei","Year outside 1800–2099 range — use a valid year","No matching legislation found — returns empty result set","Malformed cursor in 'after' parameter — do not generate cursors manually, only use values returned from previous responses","Payment failure — $0.01 USDC required per call via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need to retrieve or search Brazilian federal legislation by law number/year or topic keywords. It is purpose-built for Brazilian federal law discovery and supports well-known aliases like LGPD, CDC, and Código Civil. Prefer this over generic web search when you need structured legislation metadata and support for pagination through results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T06:30:41.049Z","isFirstParty":false,"canonicalSlug":"okf-index-brazilian-federal-legislation-search-18caedb9"}