> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.repliers.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Search Listings by Agent or Brokerage Using the Repliers API

At Repliers, we make it easy to filter and search for listings based on agent or brokerage. Whether you're looking to organize listings by the agent who created them or by the brokerage they belong to, you can do so using our API.

### Search Listings by Agent

To search listings associated with a specific agent, use the `agent` parameter:

**Example:**
****
```
https://api.repliers.io/listings?agent=17306118
```

*Replace 17306118 with the unique ID of the agent you want to search for.*

You can also search by the agent's name, though be aware that if there are multiple agents with the same name, this may lead to undesired results:

**Example:**
****
```
https://api.repliers.io/listings?agent=Steve Lee
```

### Search Listings by Brokerage (Office) ID

To search by brokerage, use the `officeId` parameter:

**Example:**
****
```
https://api.repliers.io/listings?officeId=3210904
```

*Replace 3210904 with the unique ID for the brokerage.*

### Search Listings by Brokerage Name

You can also search listings by the name of the brokerage using the `brokerage` parameter:

**Example:**
    
```
https://api.repliers.io/listings?brokerage=SK Realtors
```

*Replace SK Realtors with the unique ID for the brokerage.*

This search method allows you to filter listings based on the brokerage name, which is useful for searches when you don't have the office ID available.

# What questions does this article answer?

* How do I filter listings by a specific agent ID using the `agent` parameter?  
* Can I search listings by agent name, and what are the caveats of name-based search?  
* How can I filter listings by brokerage instead of by agent?  
* How might I structure URLs or UI filters for agent/brokerage-centric listing pages?