# Square Yards Property Listings (`bovi/squareyards-scraper`) Actor

Collect public Square Yards sale and rental listings by city, including prices, BHK, area and available property details.

- **URL**: https://apify.com/bovi/squareyards-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.35 / 1,000 square yards property listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Square Yards Property Listings Scraper

You can scrape public Square Yards sale and rental listings by city and extract published property details. It follows selected city result pages and public property pages, and uses Apify Residential Proxy by default. On the Free plan a run is a one-page preview: it fetches one result page in total, across all selected cities. On the Free plan, each dataset row costs $0.00235 and each Actor Start event costs $0.00005.

- Extract published prices as text and an INR value when available.
- Collect sale or rental listings for one city on the Free plan, or for several cities in one run on a paid plan, with BHK, area, bathrooms, floor, furnishing, project and locality fields.
- Build property research datasets with IDs, URLs, descriptions, coordinates, images and collection times.
- Listings are de-duplicated by listing ID within a run. No Square Yards login or API key is needed.
- Requests use Apify Residential Proxy by default; set `useApifyProxy` to `false` to request the site directly.

### What you get

The Actor reads public Square Yards result and property pages. Unpublished details are omitted from the dataset row.

| Field | Type | Description |
|---|---|---|
| `listingId` | string | Always present; Square Yards listing ID. |
| `url` | string | Always present; public property URL. |
| `title` | string | Always present; listing or property title. |
| `description` | string | Detail-page description; omitted when not published. |
| `price` | number | INR value for crore or lakh prices; omitted otherwise. |
| `priceText` | string | Published price text; omitted when absent. |
| `bedrooms` | string | BHK number as text; omitted when absent. |
| `bathrooms` | integer | Detail-page bathroom count; omitted when absent. |
| `areaSqft` | number | Area in square feet; omitted when absent. |
| `floorLevel` | string | Detail-page floor information; omitted when absent. |
| `possessionStatus` | string | Detail-page possession status; omitted when absent. |
| `furnishing` | string | Detail-page furnishing status; omitted when absent. |
| `parking` | string | Detail-page parking information; omitted when absent. |
| `projectName` | string | Detail-page project name; omitted when absent. |
| `locality` | string | Detail-page locality; omitted when absent. |
| `city` | string | Detail-page city; omitted when absent. |
| `latitude` | number | Detail-page map latitude; omitted when absent. |
| `longitude` | number | Detail-page map longitude; omitted when absent. |
| `imageUrl` | string | Detail-page image URL; omitted when absent. |
| `scrapedAt` | ISO 8601 string | Always present; UTC collection time ending in `Z`. |

### Sample output

The sample is shortened to one record; all fields present in that record are shown.

```json
{"listingId":"10826163","url":"https://www.squareyards.com/resale-2-bhk-575-sq-ft-apartment-in-parekh-eminence/10826163",
"title":"Resale 2 Bedroom 575 Sq.Ft. Apartment in Parekh Eminence, Daulat Nagar Mumbai - 10826163",
"bedrooms":"2","areaSqft":575,
"description":"2 BHK 575 Sq.Ft. Apartment in Parekh Eminence for sale  at 17500000 from 14 Nov 2026. Residential Apartment for sale - 10826163",
"priceText":"₹ 1.75 Cr.","price":17500000,
"bathrooms":2,"floorLevel":"8th of 14 Floors",
"possessionStatus":"Under Construction","furnishing":"Furnished",
"projectName":"Parekh Eminence","city":"Mumbai","locality":"Daulat Nagar",
"latitude":19.237662,"longitude":72.860229,
"imageUrl":"https://img.squareyards.com/secondaryPortal/optImages/IN_639302619972615647-141126140637261.jpg",
"scrapedAt":"2026-11-15T02:36:50Z"}
```

### Pricing

Billing is per event:

| Charge event | Billing unit | Free-plan price | Applicable condition |
|---|---|---:|---|
| Actor Start | One event | $0.00005 per event on the Free plan | Charged when the Actor starts; one event per GB of memory, with a minimum of one. The default 512 MB memory uses one event. |
| Square Yards Property Listings | One event | $0.00235 per event on the Free plan | Charged for each row added to the dataset. |

**On the Free plan, 1,000 result events = 1,000 × $0.00235 = $2.35.**\
**On the Free plan, 10,000 result events = 10,000 × $0.00235 = $23.50.**\
**On the Free plan, 1,000 Actor Start events = 1,000 × $0.00005 = $0.05.**\
**On the Free plan, 10,000 Actor Start events = 10,000 × $0.00005 = $0.50.**

**50 result events = $0.11755 on the Free plan**\
On the Free plan, with the default 512 MB memory and one Actor Start event: 50 × $0.00235 plus $0.00005.

The monthly platform usage credit is **$5 on the Free plan**. Using the default 512 MB memory and one Actor Start event, the **$5 Free-plan credit** covers **2,127 result events**:

`floor((5 - 0.00005) / 0.00235) = 2,127`

You pay only for the events listed below. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

### How to use

1. **Choose** `sale` or `rent` for `listingType`.
2. **Enter** one or more comma-separated Square Yards city slugs in `cities`, such as `mumbai`, `delhi`, `bangalore`, `pune`, or `hyderabad`.
3. **Set** `maxResults` to the maximum number of unique rows across selected cities. On the Free plan, it applies only to listings on the first result page of the first selected city that loads; more pages and cities need a paid Apify plan.
4. **Keep** the default proxy, or set `useApifyProxy` to `false` to request the public site directly.
5. **Run** the Actor and inspect the dataset. Unpublished property details are omitted.
6. **Repeat** the run through Apify Schedules, using daily as a starting point for these listings.

```json
{
  "listingType": "sale",
  "cities": "mumbai",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

`listingType` and `cities` are required by the input schema. Defaults are applied when values are not supplied.

| Parameter | What it does | Default |
|---|---|---|
| `listingType` | Selects `sale` or `rent`. | `sale` |
| `cities` | Comma-separated city slugs; trimmed, lowercased and de-duplicated. On the Free plan, only the first result page of the first selected city is fetched. | `mumbai` |
| `maxResults` | Maximum unique rows across selected cities. On the Free plan, it accepts 1 to 50000 and applies only to listings on the first result page of the first selected city that loads. | `50` |
| `proxyConfiguration` | Optional proxy input. Default uses `RESIDENTIAL`; `useApifyProxy: false` requests directly when no proxy URLs are supplied. | Apify RESIDENTIAL proxy |

### Limits and edge cases

Rows reach the dataset one at a time, right after each listing's detail request. Rows already pushed stay after an abort, timeout or crash; the final status message and any `OUTPUT` record are written only after the loop ends, so an interrupted run has neither.

| Condition | What the buyer sees | What to do |
|---|---|---|
| A Free-plan run needs a second result page or another city, after one page has been fetched. | The run stops fetching. Status reads `Square Yards Property Listings Free plan preview:`, gives the returned count, says `Capped: result pages. A paid Apify plan unlocks full results.`, and includes the [upgrade link](https://console.apify.com/billing/subscription). `OUTPUT` is written only when this cap stops a fetch and contains `free_plan_preview`, `items_returned`, `items_requested`, `limits_applied`=`result_pages`, `upgrade_url`, and `message`; no placeholder rows are added. | Use a paid Apify plan. |
| On the Free plan, `maxResults` is reached on the first page, or a loaded first page is empty while more than one city was selected. | `maxResults` produces no cap or preview record. An empty first page ends normally with zero rows and a preview `OUTPUT` record. | Check the dataset and preview record. |
| A list request fails after retries, or a page has no new listing IDs. | Pagination for that city stops and later cities still run. A failed request does not use up the Free preview; a loaded page with no new IDs does. If rows were already collected, the run finishes normally with fewer rows and no `OUTPUT` record. Each request is tried up to 6 times, 40 seconds per attempt, with 1, 2, 4, 8 and 16 second waits. | Check the city slug and proxy configuration, then rerun. |
| `maxResults` is outside 1 to 50000 or does not parse as an integer. | On the Free plan, `maxResults` accepts 1 to 50000; an unparseable value falls back to `50`. | Send an integer in the accepted range. |
| No parseable listings are returned and no Free-plan cap applies. | The run raises `Square Yards returned no parseable public listings for the requested input.`, ends with an error and has an empty dataset. The reason is in the run error and log, not `OUTPUT`. | Check the listing type, city slugs, page availability and proxy configuration. |
| A detail request fails after a listing card is found. | The row keeps its card fields, gets `scrapedAt` and is pushed. | Use the available fields or rerun. |
| The run's event charge limit is reached. | The run stops after the row that reached the limit and finishes normally with fewer rows than `maxResults`; there is no preview `OUTPUT` record. | Raise the run's maximum charge and rerun. |
| On a paid plan, up to 40 result pages are fetched per city; a Free run stops after one page. | Pagination stops at the applicable page limit. | Adjust the selected cities or result limit and run again. |
| A city has no valid slug, or `listingType` is invalid. | The city error is `Enter one or more Square Yards city slugs, separated by commas.`; other values produce `listingType must be 'sale' or 'rent'.` | Use lowercase letters, digits and single hyphens in city slugs, and choose `sale` or `rent`. |

### FAQ

#### How much does it cost to scrape Square Yards property listings?

On the Free plan, each dataset row costs $0.00235 and each Actor Start event costs $0.00005. See Pricing for the event conditions.

#### Why did my run return fewer listings or an empty dataset?

A run can stop at `maxResults`, when a page has no new listing IDs, or after a request failure. If no parseable listings are found without a Free-plan cap, it reports an error.

#### Why is my run not working?

Confirm that `listingType` is `sale` or `rent`, `cities` contains valid Square Yards slugs, and the proxy configuration is valid. A failed list request stops pagination for that city while later selected cities can continue.

#### Do I need a Square Yards login or buyer API key?

No. The Actor reads public Square Yards result and property pages and does not log in. No buyer API key, cookie or Square Yards credential is required.

#### Is it legal to scrape public Square Yards data?

The Actor reads public Square Yards listing and property-page data. Whether a particular use is legal or allowed depends on the source terms and applicable law for your use case; this Actor does not provide a legal guarantee.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

## `listingType` (type: `string`):

Choose residential and commercial properties for sale or rent.

## `cities` (type: `string`):

Comma-separated Square Yards city slugs, such as mumbai, delhi, bangalore, pune or hyderabad.

## `maxResults` (type: `integer`):

Maximum number of listing rows to return across all selected cities.

## `proxyConfiguration` (type: `object`):

Residential Apify Proxy is used by default. Set useApifyProxy to false to request the public site directly.

## Actor input object example

```json
{
  "listingType": "sale",
  "cities": "mumbai",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with collected property listings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "listingType": "sale",
    "cities": "mumbai",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/squareyards-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "listingType": "sale",
    "cities": "mumbai",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/squareyards-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "listingType": "sale",
  "cities": "mumbai",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/squareyards-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/squareyards-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2K2ibhiJQOjeQaQB8/builds/ljahpiCQb66fyCb3H/openapi.json
