# Smdc — 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 browse SMDC property listings across Heights, Nature, and Symphony Homes segments, view detailed project information, and stay updated with the latest real estate news and articles. Filter properties by location or status and access comprehensive details about available developments all in one place.

**Category:** Real Estate | **Website:** [smdc.com/](https://smdc.com/) | **Docs:** [parse.bot/marketplace/8506a720-d1f0-4f02-abdf-3eb14b00ed9a/smdc-com-api](https://parse.bot/marketplace/8506a720-d1f0-4f02-abdf-3eb14b00ed9a/smdc-com-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-smdc-com-api-8506a720/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_properties_by_segment

Get all properties listed under a specific segment. Returns property name, URL, status, and segment for each property. Three segments exist: heights (urban high-rise developments), nature (green community developments), and symphony-homes (house-and-lot communities).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `segment` | string | Yes | Property segment. Accepted values: 'heights', 'nature', 'symphony-homes'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_all_properties_by_segment \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"segment":"<string>"}'
```

### get_all_properties_combined

Aggregate all properties across all three segments (heights, nature, symphony-homes) into a single list. Makes one request per segment internally. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_all_properties_combined \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_news_article_details

Get the full content of a specific news article including title, date, body text, and hero image. The URL must be a full SMDC Good Life article URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the news article (e.g. 'https://smdc.com/the-good-life/where-homeownership-meets-opportunity/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_news_article_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_news_articles

List news articles from the Good Life section with pagination. Returns 6 articles per page ordered by most recent publication date. Uses WordPress AJAX pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_news_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_properties_filtered

Filter properties on a segment page by location. The location filter is case-sensitive and must match exactly how SMDC labels the city (e.g. 'Pasay City', 'Makati City'). Returns properties matching the specified location within the given segment.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | Location filter matching SMDC's city labels exactly (e.g. 'Pasay City', 'Makati City', 'Mandaluyong City'). Omitting returns all locations. |
| `segment` | string | No | Property segment. Accepted values: 'heights', 'nature', 'symphony-homes'. |
| `sort` | string | No | Status filter passed to the upstream API (e.g. 'Move in Ready', 'Pre-selling'). Note: upstream may not reliably filter by this value. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_properties_filtered \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","segment":"<string>","sort":"<string>"}'
```

### get_property_details

Get full details for a specific property including location, price range, status, description, landmarks, and images. The URL must be a full SMDC property detail page URL. Returns empty arrays for amenities and unit_types when not listed on the page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the property detail page (e.g. 'https://smdc.com/properties/heights/shell-residences/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/get_property_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_properties

Search for properties by keyword. Matches against property names only (not locations). Returns matching property titles, URLs, and thumbnails. The search is powered by WordPress AJAX live search.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword to match against property names (e.g. 'Shell', 'Spring', 'Residences'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smdc-com-api-8506a720/search_properties \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
