Skip to main content
POST
Ley Chile Norms Search

Authorizations

Authorization
string
header
required

Use Authorization: Bearer YOUR_API_KEY

Headers

Idempotency-Key
string

Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.

Maximum string length: 255
Example:

"0f8e9a42-6b7c-4d1e-9a3f-2c5d7e8f9a0b"

Body

application/json
query
string
default:""

Optional words in Spanish matched against the norm's name, number, title, common names, subjects and summary, e.g. protección de datos personales or código del trabajo. Every word must appear; accents and plurals are folded. To search inside the text of the articles, use the articles search.

Maximum string length: 300
type
enum<string>
default:""

Optional kind of norm: ley, codigo, dfl (decreto con fuerza de ley), dl (decreto ley), auto_acordado, tratado or decreto (decretos supremos).

Available options:
,
ley,
codigo,
dfl,
dl,
auto_acordado,
tratado,
decreto
number
string
default:""

Optional number of the norm as BCN lists it, e.g. 21450 for Ley 21.450. Dots and spaces are ignored. Add type to name one norm.

Maximum string length: 30
year
integer
default:0

Optional year the norm was published (or promulgated, for the few norms without a publication date). 0 searches every year.

Required range: 0 <= x <= 2100
from_date
string<date>
default:""

Optional date filter in yyyy-mm-dd format.

to_date
string<date>
default:""

Optional date filter in yyyy-mm-dd format.

status
enum<string>
default:""

Optional status: in_force for norms not repealed, repealed for repealed (derogadas) ones.

Available options:
,
in_force,
repealed
modified_by
string
default:""

Optional norm_id of a modifying norm, e.g. 1219906: only the norms whose version history lists it among the norms that modified them.

Maximum string length: 20
page
integer
default:1

1-based page number for paginated results.

Required range: 1 <= x <= 1000
per_page
integer
default:20

Results per page (1-50).

Required range: 1 <= x <= 50

Response

Successful response

data
object
required