---
title: "OnTheMarket API: Agent Listings | Perceptlayer"
description: "Agent Listings from OnTheMarket as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/onthemarket/agent-listings
---

[APIs](https://perceptlayer.com/apis) / [OnTheMarket](https://perceptlayer.com/apis/onthemarket) / Agent Listings

# OnTheMarket: Agent Listings

Agent Listings from OnTheMarket as JSON. 1 credit per successful call.

GET `/v1/onthemarket/agent-listings`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `slug` | string | Required | Up to 80 characters |
| `search_type` | string | Required | for-sale, to-rent |
| `page` | integer | Optional | Any |
| `under_offer` | boolean | Optional | Any |
| `let_agreed` | boolean | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/onthemarket/agent-listings" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/onthemarket?try=agent-listings#playground) with your own parameters. 1 credit per successful call; failed calls are free.
