Official Gazette of Iran
v0.2.1Read-only Official Gazette of Iran (rrk.ir): search laws and rulings, read their text.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rk_search_laws Search laws and regulations
Search the Official Gazette's laws and regulations database (rrk.ir) by title, full text, group, approver, special number or gazette date. Filters are optional and combined; none lists the newest. Returns `total`, `more` and up to 20 `laws` with `code`; pass a code to rk_law_text. Laws only: company registration notices are not searchable on rrk.ir.
| Parameter | Type | Description |
|---|---|---|
approver | string | Approver (مرجع تصویب) code or name words from rk_law_filters. |
from_date | string | Gazette date from, Jalali YYYY/MM/DD, e.g. '1405/08/01'. |
group | string | Group id or name words from rk_law_filters, e.g. 'دیوان عدالت' or '3'. A top-level group includes its sub-groups. |
page | integer | Page number, 20 per page. |
special_no | string | Special issue number (شماره ویژه), e.g. '2301'. |
text | string | Words in the full text (slower than title). |
title | string | Words in the title, Persian (e.g. 'ماليات'). |
to_date | string | Gazette date to, Jalali YYYY/MM/DD. |
rk_law_filters Law groups and approvers
List the law groups (categories) and approving authorities that rk_search_laws can filter by. Use first for one kind of document (court rulings, decrees, Majlis debates) or one issuing body. Pass a group `id` or approver `code` to rk_search_laws. `parent` is set on sub-groups.
| Parameter | Type | Description |
|---|---|---|
query | string | Name words to narrow the lists, e.g. 'دیوان'. |
rk_latest_laws Latest laws and regulations
List the newest laws, rulings and regulations published in the Official Gazette (rrk.ir), newest gazette first. Each law has a `code` for rk_law_text. To narrow by topic or date use rk_search_laws.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 20 per page. |
rk_law_text Read a law's text
Read the full text of one law or ruling from the Official Gazette (rrk.ir): approver, gazette number and date, body. Use with a `code` from a search. An unlisted code is located by paging the list (slow, 10-60 s; old laws may not be found). Long texts are cut at `max_chars`; continue with `offset` = `next_offset`.
| Parameter | Type | Description |
|---|---|---|
code * | string | Law `code` from rk_search_laws or rk_latest_laws. |
max_chars | integer | Most characters to return. |
offset | integer | Character to start from. |
rk_exchange_offices Licensed exchange offices
List the licensed currency exchange offices (صرافی مجاز) the Central Bank published in the Official Gazette (rrk.ir). Filter by `province` and `city` (an unknown province is an error that lists the valid ones). Returns `total`, `more` and up to 50 `offices` (location, phone, address; no names are published).
| Parameter | Type | Description |
|---|---|---|
city | string | City name, e.g. 'قم'. Empty = whole province. |
page | integer | Page number, 50 per page. |
province | string | Province name, e.g. 'تهران'. Empty = all. |