# Ncar — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and access Saudi Arabia's official governmental documents including rules, regulations, international treaties, Um Al-Qura newspaper archives, and regional/governmental coding classifications all in one place. Quickly find specific regulations, treaty information, and historical newspaper issues to support your research or compliance needs.

**Category:** Government & Public Data | **Website:** [ncar.gov.sa/](https://ncar.gov.sa/) | **Docs:** [parse.bot/marketplace/38d5615b-f270-4def-a41e-b04323d77a6c/ncar-gov-sa-api](https://parse.bot/marketplace/38d5615b-f270-4def-a41e-b04323d77a6c/ncar-gov-sa-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_governmental_coding

Search for governmental entity coding data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `name` | string | No | Agency name to filter by |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/get_governmental_coding \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<string>"}'
```

### get_regions_coding

Get the hierarchy of administrative regions coding.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/get_regions_coding \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_regulation_details

Get full details of a specific regulation or convention by its document ID.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `doc_id` | string | Yes | The encrypted document ID |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/get_regulation_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"doc_id":"<string>"}'
```

### global_search

Perform a global site search across all content types.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/global_search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_conventions_and_treaties

Search for Saudi international conventions and treaties.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page |
| `page` | integer | No | Page number |
| `sort_column` | string | No | Column to sort by |
| `sort_order` | string | No | Sort order (ASC/DESC) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/search_conventions_and_treaties \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","sort_column":"<string>","sort_order":"<string>"}'
```

### search_rules_and_regulations

Search for Saudi rules and regulations with pagination and sorting.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page |
| `page` | integer | No | Page number |
| `sort_column` | string | No | Column to sort by |
| `sort_order` | string | No | Sort order (ASC/DESC) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/search_rules_and_regulations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","sort_column":"<string>","sort_order":"<string>"}'
```

### search_um_alqura_newspaper

Search for Um Al-Qura newspaper issues.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page |
| `page` | integer | No | Page number |
| `sort_order` | string | No | Sort order (ASC/DESC) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ncar-gov-sa-api-38d5615b/search_um_alqura_newspaper \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","sort_order":"<string>"}'
```
