BuyMLSData v1.0
API Reference
Welcome to the BuyMLSData API. This JSON REST API allows you to programmatically access property listings, agent data, and user subscription details securely.
Base URL: https://buymlsdata.com/wp-json/pdm/v1/
Authentication
All API requests must be authenticated using a Bearer Token. You can generate your API Key from the Developer Dashboard.
Terminal
Authorization: Bearer pdm_live_8329...
List Properties
Retrieve a paginated list of properties based on filters like state, city, and price.
GET
/properties
Parameters
| Param | Type | Description |
|---|---|---|
| pdm_status Req | String | Listing status (for_sale, for_rent). |
| pdm_state | String | 2-letter state code (e.g. TX). |
| pdm_min_price | Integer | Minimum price filter. |
Example Request
curl -X GET "https://buymlsdata.com/wp-json/pdm/v1/properties?pdm_status=for_sale" -H "Authorization: Bearer YOUR_API_KEY"
const url = "https://buymlsdata.com/wp-json/pdm/v1/properties?pdm_status=for_sale";
fetch(url, { headers: { "Authorization": "Bearer KEY" } })
.then(res => res.json());Get Single Property
GET
/properties/{id}
| Param | Description |
|---|---|
| id Req | Unique Property ID. |
List Agents
GET
/agents
Parameters
| Param | Type | Description |
|---|---|---|
| pdm_state | String | Filter by 2-letter state code. |
| pdm_city | String | Filter by city name. |
Get Single Agent
GET
/agents/{id}
| Param | Description |
|---|---|
| id Req | Unique Agent ID. |
Error Codes
| Code | Description |
|---|---|
200 | OK. Success. |
400 | Bad Request. Missing parameters. |
401 | Unauthorized. Invalid Token. |