OKF Index

OKF Index: search Brazilian federal laws by number/year or words (up to 20 items), paid per call

SearchLiveeip155:8453Exactvia cdp
KnowledgeSearchAi-agents
Calls · 30d
5
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 3 snapshots so far.
$30.61
Verified settled volume
135 settlements proven x402 by their on-chain EIP-3009 marker.
$0.010
Listed price
As published in the catalog. Always read the live 402 before paying.
5
Calls · 30d
Upstream's own call count for this endpoint, not ours.
3
Unique payers · 30d
Last called 2026-10-25 19:57Z
—
Upstream on-chain volume
Reported by the source catalog.
Paid to
0x7c22D10a957c62044d03dB5C0086f500Fc645a26

The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.

Live 402 challenge

Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.

{
  "name": "OKF Index",
  "error": "Payment required: PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1)",
  "action": "legislation_call",
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "payTo": "0x7c22D10a957c62044d03dB5C0086f500Fc645a26",
      "scheme": "exact",
      "network": "base",
      "mimeType": "application/json",
      "resource": "https://okfindex.com/api/x402/legislation",
      "description": "OKF Index: search Brazilian federal laws by number/year or words (up to 20 items), paid per call",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "q": "10406/2002",
            "type": "",
            "year": 0,
            "after": "",
            "authority": ""
          },
          "discoverable": true
        },
        "output": {
          "type": "json",
          "schema": {
            "type": "object",
            "properties": {
              "next": {
                "type": "string",
                "description": "URL of the next page on `GET /api/legislation/search` (with `after`); `null` at the end."
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object"
                },
                "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 of the call in US dollars, such as `0.01`."
                  },
                  "saldo_usd": {
                    "type": "string",
                    "description": "The credit balance after the call, such as `$0.99`; only when paid with `cred_…`."
                  }
                },
                "description": "How this call was paid."
              }
            },
            "description": "The result of one paid legislation search."
          }
        },
        "inputSchema": {
          "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."
              }
            }
          }
        }
      },
      "maxAmountRequired": "10000",
      "maxTimeoutSeconds": 120
    }
  ],
  "billing": {
    "dev": false,
    "how": "Sign a USDC authorization on Base. Retry with PAYMENT-SIGNATURE (x402 v2) or X-PAYMENT (v1), containing the base64 PaymentPayload.",
    "mode": "live",
    "asset": "USDC",
    "eip681": "ethereum:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913@8453/transfer?address=0x7c22D10a957c62044d03dB5C0086f500Fc645a26&uint256=10000",
    "faucet": null,
    "pay_to": "0x7c22D10a957c62044d03dB5C0086f500Fc645a26",
    "homolog": false,
    "network": "base",
    "wallets": {
      "base_app": "https://base.app/",
      "coinbase": "https://www.coinbase.com/wallet",
      "metamask": "https://metamask.io/download/"
    },
    "chain_id": 8453,
    "dev_gate": true,
    "price_usd": 0.01,
    "alternavel": false,
    "facilitator": "https://api.cdp.coinbase.com/platform/v2/x402",
    "price_atomic": "10000",
    "asset_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "credito": {
    "como": "Add balance once and spend it without signing each request.",
    "usar": "Authorization: Bearer cred_… (or the X-Credito header)",
    "vale_em": "all our products",
    "recarregar": "https://okfindex.com/api/credito",
    "preco_desta_chamada": "$0.01"
  },
  "pacotes": {
    "opcoes": [
      {
        "usd": 1,
        "chamadas": 100
      },
      {
        "usd": 5,
        "chamadas": 500
      },
      {
        "usd": 10,
        "chamadas": 1000
      },
      {
        "usd": 25,
        "chamadas": 2500
      }
    ],
    "recarga": "https://okfindex.com/api/credito"
  },
  "preco_usd": "0.01",
  "por_chamada": true,
  "x402Version": 1
}

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.

0.01USDC≈ $0.01 USD
on Base · exact scheme

Pay 0.01 USDC on Base to 0x7c22…45a26. The signed payment is good for 2 minutes.

USD Coin contract
0x8335…02913
Payment window
2 minutes
As published
10000 smallest units
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "version": "2"
    },
    "payTo": "0x7c22D10a957c62044d03dB5C0086f500Fc645a26",
    "amount": "10000",
    "scheme": "exact",
    "network": "eip155:8453",
    "maxTimeoutSeconds": 120
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "type": "http",
        "method": "GET",
        "queryParams": {
          "q": "10406/2002"
        }
      },
      "output": {
        "type": "json",
        "example": {
          "next": null,
          "items": [
            {
              "id": "a17a3bb50858d650bcc1664a",
              "uf": null,
              "api": "https://okfindex.com/api/legislation/a17a3bb50858d650bcc1664a",
              "url": "https://okfindex.com/legislation/a17a3bb50858d650bcc1664a",
              "type": "leis-ordinarias",
              "year": 2002,
              "title": "Lei nº 10.406, de 10 de janeiro de 2002",
              "number": "10406",
              "sha256": "83ce1be21274960ea5ab8bdd11c03cddcaa679a1dbc1b7e59681b91ab3d446b8",
              "country": "BR",
              "okf_url": "https://okfindex.com/api/legislation/a17a3bb50858d650bcc1664a/index.md",
              "revoked": null,
              "provider": "Normas.leg.br · Congresso Nacional",
              "authority": "congresso-nacional",
              "lexml_url": "https://www.lexml.gov.br/urn/urn:lex:br:federal:lei:2002-01-10;10406",
              "source_url": "https://normas.leg.br/?urn=urn:lex:br:federal:lei:2002-01-10;10406",
              "description": "Institui o Código Civil.",
              "jurisdiction": "federal",
              "missing_text": false,
              "text_version": "compilada (declarada pela fonte)",
              "downloaded_at": "2026-10-15"
            }
          ],
          "cobranca": {
            "via": "x402",
            "repetido": false,
            "preco_usd": "0.01"
          }
        }
      }
    },
    "schema": {
      "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 of the call in US dollars, such as `0.01`."
                    }
                  },
                  "description": "How this call was paid."
                }
              },
              "description": "The result of one paid legislation search."
            }
          }
        }
      }
    }
  },
  "payment-identifier": {
    "info": {
      "required": false
    },
    "schema": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "required": [
        "required"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]+$",
          "maxLength": 128,
          "minLength": 16
        },
        "required": {
          "type": "boolean"
        }
      }
    }
  }
}

Provenance

Seen in the source catalog
2026-10-25 19:57Z
Last indexed by Roundhouse
2026-10-26 17:20Z
Last enriched (probe, favicon, geo)
2026-10-24 01:46Z
x402 version
2
Max timeout
120s
Liveness probe
HTTP 402
Report

Hand this page to an agent

Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.

GET api.roundhouseai.io/v0/endpoints

This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 3 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service OKF Index and tell me whether it is
worth paying: what a call costs, whether the endpoint answered when last probed, and what
its payment record actually shows.

curl -s 'https://api.roundhouseai.io/v0/endpoints?q=OKF%20Index'
curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>'

Then call it: read the price from the live 402 at https://okfindex.com/api/x402/legislation, never from
a cached figure, and pay with an x402 client.

The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except
/v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at
GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at
https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.