Api Endpoint

OKF Index

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

Open interactive test console

Offering

Provider
okfindex.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://okfindex.com/api/x402/legislation
MIME type
application/json
First seen
2026-10-25T21:32:28.588Z
Last seen
Tags
knowledge, Search, AI-agents

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x7c22D10a957c62044d03dB5C0086f500Fc645a26"
  }
]

Observed health

Status
Healthy
Latest latency
1382 ms
Average latency
1910 ms
HTTP status
402
Last checked
Reachability
100% over 4 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "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."
        },
        "authority": {
          "type": "string",
          "description": "Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate."
        },
        "after": {
          "type": "string",
          "description": "Cursor from next. Do not generate a cursor."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method",
    "queryParams"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "after": {
              "description": "Cursor from next. Do not generate a cursor.",
              "type": "string"
            },
            "authority": {
              "description": "Issuing body declared by the source: congresso-nacional, presidencia-da-republica or unknown. The provider is separate.",
              "type": "string"
            },
            "q": {
              "description": "Number/year, such as 10406/2002, or words. At most 160 characters. LGPD, CDC and Código Civil aliases are supported.",
              "type": "string"
            },
            "type": {
              "description": "constituicao, leis-ordinarias, leis-complementares, leis-delegadas or decretos-lei.",
              "type": "string"
            },
            "year": {
              "description": "Year, from 1800 to 2099.",
              "type": "integer"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "queryParams"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "description": "The result of one paid legislation search.",
          "properties": {
            "cobranca": {
              "description": "How this call was paid.",
              "properties": {
                "preco_usd": {
                  "description": "The price of the call in US dollars, such as `0.01`.",
                  "type": "string"
                },
                "repetido": {
                  "description": "`true` when the credit had already paid this request (the same `Idempotency-Key`): nothing was charged again.",
                  "type": "boolean"
                },
                "via": {
                  "description": "`x402`, `credito` or the marketplace that already charged the call.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "items": {
              "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}.",
              "items": {
                "properties": {
                  "api": {
                    "type": "string"
                  },
                  "authority": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "downloaded_at": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "jurisdiction": {
                    "type": "string"
                  },
                  "lexml_url": {
                    "type": "string"
                  },
                  "missing_text": {
                    "type": "boolean"
                  },
                  "number": {
                    "type": "string"
                  },
                  "okf_url": {
                    "type": "string"
                  },
                  "provider": {
                    "type": "string"
                  },
                  "revoked": {
                    "type": "null"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "source_url": {
                    "type": "string"
                  },
                  "text_version": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "uf": {
                    "type": "null"
                  },
                  "url": {
                    "type": "string"
                  },
                  "year": {
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "next": {
              "description": "URL of the next page on `GET /api/legislation/search` (with `after`); `null` at the end.",
              "type": "null"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}