# Land Scraper filter by Location Scraper (`getdataforme/land-scraper-filter-by-location-scraper`) Actor

Land Scraper efficiently extracts property listings from Land.com, including acreage, prices, locations, and broker details. Tailor searches by location and filters for accurate, structured results. Ideal for real estate insights.

- **URL**: https://apify.com/getdataforme/land-scraper-filter-by-location-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Real estate
- **Stats:** 12 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00 / 1,000 results

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

***

### Land Scraper Documentation

**Scrape Property Listings from Land.com**

The **Land Scraper** is an Apify actor that allows you to extract property data from [Land.com](https://land.com). It simplifies the process of gathering information on farms, ranches, and other real estate listings, including acreage, pricing, broker details, and more, in a structured format.

***

#### How it Works

To use the **Land Scraper**, provide the required input parameters, such as location, price range, and the maximum number of properties to fetch. The scraper will process the data and return detailed property listings.

**Important Note**: To ensure uninterrupted data extraction, activate a proxy. Running without a proxy may result in restricted access or blocked results.

***

#### Input Fields

**1. Location**

- *Type*: String
- *Description*: Specify the target location to scrape data, such as a county or city.
- *Example*: `"Gaines-County-TX"`

**2. Max Items**

- *Type*: Integer
- *Description*: The maximum number of property listings to fetch.
- *Example*: `25`

**3. Max Limit**

- *Type*: Integer
- *Description*: Upper limit for acreage.
- *Example*: `20000000`

**4. Max Price**

- *Type*: Integer
- *Description*: The maximum price of properties to include.
- *Example*: `8000`

**5. Min Price**

- *Type*: Integer
- *Description*: The minimum price of properties to include.
- *Example*: `1`

**6. Price Increment**

- *Type*: Integer
- *Description*: The incremental steps for price filtering.
- *Example*: `1000`

***

#### Output

Once the scraper runs successfully, it will return detailed property information in JSON format. Below is an example of the output:

```json
{  
    "accountId": 453940,  
    "acres": 5470,  
    "acresDisplay": "5,470 acres",  
    "adTargetingCountyId": 5902,  
    "brokerCanonicalUrl": "https://www.land.com/member/logan-harrison/453940/",  
    "brokerCompany": "TX Real Estate Group - Keller Williams",  
    "brokerName": "Logan Harrison",  
    "brokerPhone": "(432) 666-3161",  
    "canonicalUrl": "https://www.land.com/property/5470-acres-in-Gaines-County-Texas/21734554/",  
    "city": "Andrews",  
    "county": "Gaines County",  
    "description": "Prime irrigated and ranch land. Well-improved, with organic farming potential and government program benefits.",  
    "imageCount": 59,  
    "latitude": 32.53426,  
    "longitude": -102.49173,  
    "price": 9500000,  
    "priceDisplay": "$9,500,000",  
    "propertyTypesLabel": "Farms, Ranches",  
    "state": "Texas",  
    "title": "The 1788 Ranch",  
    "types": ["Farms", "Ranches"],  
    "zip": "79714"  
}  
```

***

#### Output Details

The scraper output includes the following key information:

- **Property Info**:
  - `acres`: The size of the property in acres.
  - `priceDisplay`: The price of the property.
  - `title`: The property name or title.

- **Broker Details**:
  - `brokerName`: Name of the broker.
  - `brokerCompany`: Broker's company.
  - `brokerPhone`: Contact number for the broker.

- **Location Data**:
  - `city`: City where the property is located.
  - `county`: County where the property is located.
  - `state`: State where the property is located.
  - `latitude` and `longitude`: Geographical coordinates.

- **Media & Links**:
  - `canonicalUrl`: The URL of the property listing on Land.com.
  - `imageCount`: Number of images available for the property.

***

#### Proxy Configuration

It is highly recommended to enable proxy usage to avoid rate limiting or blocking issues during scraping. Apify’s proxy can be configured to ensure seamless data extraction.

***

#### Example Usage

1. Enter the input parameters, such as location, price range, and maximum items.
2. Enable proxy settings to avoid restrictions.
3. Run the actor to retrieve property details in JSON format.

***

#### Support

For further assistance or custom requests, contact our support team:

- **Email**: <support@getdataforme.com>
- **Contact Form**: [Get Data For Me Contact](https://getdataforme.com/contact/)

Please include "Custom Support" in the email subject for faster assistance.

***

Start scraping property data from Land.com with **Land Scraper** today!

# Actor input Schema

## `location` (type: `string`):

The location for the scraper (e.g., Gaines-County-TX).

## `maxItems` (type: `integer`):

The maximum item limit.

## `min_price` (type: `integer`):

The minimum price to filter results.

## `max_price` (type: `integer`):

The maximum price to filter results.

## `price_increment` (type: `integer`):

The increment by which the price range will increase.

## `max_limit` (type: `integer`):

The maximum limit for the price range.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "location": "Gaines-County-TX",
  "maxItems": 20,
  "min_price": 1,
  "max_price": 50000,
  "price_increment": 5000,
  "max_limit": 210000000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "location": "Gaines-County-TX",
    "maxItems": 20,
    "min_price": 1,
    "max_price": 50000,
    "price_increment": 5000,
    "max_limit": 210000000,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/land-scraper-filter-by-location-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 = {
    "location": "Gaines-County-TX",
    "maxItems": 20,
    "min_price": 1,
    "max_price": 50000,
    "price_increment": 5000,
    "max_limit": 210000000,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/land-scraper-filter-by-location-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 '{
  "location": "Gaines-County-TX",
  "maxItems": 20,
  "min_price": 1,
  "max_price": 50000,
  "price_increment": 5000,
  "max_limit": 210000000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/land-scraper-filter-by-location-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/land-scraper-filter-by-location-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/bws7vLGLEADwUNgPa/builds/hiSqp8ArREp945cEL/openapi.json
