# Ejar — 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 verify licensed brokerage offices on Saudi Arabia's Ejar rental platform, and access verified broker registration details and Saudi regional information to make informed rental decisions. Find rental brokers by location and other filters to connect with legitimate property professionals in your area.

**Category:** Real Estate | **Website:** [http://ejar.sa/](http://ejar.sa/) | **Docs:** [parse.bot/marketplace/1999904e-0fbc-4444-be19-4a48e7ea4885/ejar-sa-api](https://parse.bot/marketplace/1999904e-0fbc-4444-be19-4a48e7ea4885/ejar-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-ejar-sa-api-1999904e/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### check_broker_registration

Validates a broker office registration request by its numeric request number. Returns the registration status if found, or a not_found status with an error message if the request number does not exist. Solves an invisible reCAPTCHA v3 challenge per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `request_number` | string | Yes | Numeric broker office registration request number to validate. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ejar-sa-api-1999904e/check_broker_registration \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_number":"<string>"}'
```

### get_regions

Returns all 13 Saudi administrative regions with Arabic/English names, geographic coordinates, and location identifiers. No parameters required. One fixed-cost request.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ejar-sa-api-1999904e/get_regions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_brokers

Searches registered brokerage offices on the Ejar platform with optional filters. Returns paginated results (10 per page). Filter by region (Drupal taxonomy term ID), city, district, or name. Page is 0-indexed.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | City taxonomy term ID to filter by. Obtain from the site's city dropdown. |
| `district` | string | No | District taxonomy term ID to filter by. |
| `name` | string | No | Broker office name search text. |
| `page` | integer | No | 0-indexed page number for pagination. |
| `region` | string | No | Region taxonomy term ID to filter by (e.g. '169' for Riyadh, '170' for Makkah). Omitting returns all regions. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ejar-sa-api-1999904e/search_brokers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","district":"<string>","name":"<string>","page":"<integer>","region":"<string>"}'
```
