# Landandfarm Property Details Scraper (`alexist/landandfarm-property-details-scraper`) Actor

Scrape detailed property listings from Land and Farm with 70+ data fields including acreage, pricing, auction details, coordinates, and multimedia. Perfect for real estate investors, market researchers, and property aggregators seeking structured land and farm data.

- **URL**: https://apify.com/alexist/landandfarm-property-details-scraper.md
- **Developed by:** [Alex](https://apify.com/alexist) (community)
- **Categories:** Automation, Developer tools, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Land and Farm Property Scraper: Extract Real Estate Data at Scale

***

### Understanding Land and Farm

Land and Farm is a specialized real estate marketplace focusing on agricultural land, rural properties, homesite listings, and farm investments across the United States. The platform aggregates thousands of active and auctioned properties, making it invaluable for investors seeking land opportunities. However, manually extracting property details is tedious — the **Land and Farm Property Scraper** automates this process, transforming property pages into structured, analysis-ready data.

***

### About the Scraper

The **Land and Farm Property Scraper** extracts comprehensive property detail pages from Land and Farm, capturing 70+ structured data fields per listing. It serves:

- **Real estate investors** conducting market analysis and due diligence
- **Property aggregators** building multi-source land listing databases
- **Market researchers** analyzing rural real estate trends by region
- **Appraisers and brokers** benchmarking comparable properties
- **Agricultural data analysts** tracking farmland availability and pricing

Key features include batch URL processing, error resilience via `ignore_url_failures`, and configurable item limits for controlled data collection.

***

### Input Format

The scraper accepts a JSON configuration specifying target properties and collection parameters:

```json
{
  "urls": [
    "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
    "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/"
  ],
  "max_items_per_url": 200,
  "ignore_url_failures": true
}
```

| Field | Type | Description |
|---|---|---|
| `urls` | Array | Individual property detail page URLs from landandfarm.com. Paste single URLs or bulk-add multiple listings. |
| `max_items_per_url` | Number | Maximum records extracted per URL (default: 200). Controls collection volume per property. |
| `ignore_url_failures` | Boolean | If `true`, the scraper continues when URLs fail or become unavailable, ensuring robust batch runs. |

> **Best practice:** Use `ignore_url_failures: true` for bulk scraping to avoid interruptions if a property page is removed or temporarily unavailable.

***

### Output Format

**Sample output**

```json
{
  "account_id": 1340108,
  "account_maps_id": null,
  "account_type": 8,
  "acres": 2.11,
  "address": {
    "address1": "199 Ora Rd.",
    "address2": "",
    "city": "Gray Court",
    "state": 45,
    "state_abbreviation": "SC",
    "state_name": "South Carolina",
    "zip": "29645"
  },
  "ad_targeting_pta": "residential",
  "area_label": "2.11 acres",
  "attachments": [],
  "auction_address": null,
  "auction_bidding_url": null,
  "auction_city": null,
  "auction_end_date": null,
  "auction_id": null,
  "auction_info_url": null,
  "auction_is_online_only": false,
  "auction_start_date": null,
  "auction_state": null,
  "auction_timezone": null,
  "auction_title": null,
  "baths": 3,
  "beds": 4,
  "can_display": false,
  "canonical_url": "/property/single-family-gray-court-sc-41593652/",
  "city": {
    "id": 10729,
    "county_id": 5592,
    "county_label_plural": null,
    "county_name": null,
    "latitude": 34.60782,
    "longitude": -82.11395,
    "google_place_id": null,
    "name": "Gray Court",
    "region_id": 0,
    "region_name": null,
    "state_id": 45,
    "state_abbreviation": "SC",
    "state_name": "South Carolina"
  },
  "city_url": "/search/south-carolina/gray-court-land-for-sale/",
  "county": {
    "id": 5592,
    "fips": 45059,
    "laf_county_id": 1611,
    "latitude": 0,
    "longitude": 0,
    "name": "Laurens County",
    "google_place_id": null,
    "state_id": 45,
    "state_name": null,
    "region_id": 0,
    "region_name": null,
    "encoded_polylines": null
  },
  "county_url": "/search/south-carolina/laurens-county-land-for-sale/",
  "description": [
    "Check out this incredible new construction build in the sprawling countryside of Gray Court SC, less than 30 minutes to Greenville SC! From start to finish this 2100+ sq ft 4 bedroom 3.5 bath beauty on a 2.11 acre lot is set up perfectly for you and a peaceful life away from the chaos. Outside and in, this property has all the details you'd expect in a luxury home - hardiboard siding, covered front and rear porches, a stone fireplace, gas appliances and tankless water heater (propane), an extra large pantry with custom wooden shelving - and the kitchen and master bath are just stunners. Downstairs has 3 bedrooms and 2.5 bathrooms, and the bonus room includes a load of storage plus another full bath. On top of all this, the huge lot gives you space for a shop, gardening, a mini-farm, whatever else you need. Do not miss your chance at this amazing property!",
    "",
    "Copyright © 2026 Greenwood Association of REALTORS. All rights reserved. All information provided by the listing agent/broker is deemed reliable but is not guaranteed and should be independently verified."
  ],
  "directions": [
    ""
  ],
  "disclaimer": "Copyright © 2026 Greenwood Association of REALTORS. All rights reserved. All information provided by the listing agent/broker is deemed reliable but is not guaranteed and should be independently verified.",
  "executive_summary": null,
  "external_link": "https://www.realtor.com/realestateandhomes-detail/199-Ora-Rd_Gray-Court_SC_29645_M99172-01691?f=listhub&s=GRWDSC&m=139950&c=secondspace",
  "external_source_id": "3yd-GRWDSC-139950",
  "feed_last_checked": "July 22, 2026 at 4:30 AM",
  "formatted_description": null,
  "geocode_accuracy": 9,
  "half_baths": 1,
  "hide_first_street_factors": false,
  "highlight1": null,
  "highlight2": null,
  "highlight3": null,
  "highlight4": null,
  "homesqft": 2154,
  "homes_user_id": null,
  "image_document_ids": [
    6241720430,
    6241720434,
    6241720437,
    6241720440,
    6241720443,
    6241720446,
    6241720448,
    6241720451,
    6241720460,
    6241720473,
    6241720478,
    6241720481,
    6241720483,
    6241720489,
    6241720492,
    6241720495,
    6241720504,
    6241720506,
    6241720508,
    6241720509,
    6241720510,
    6241720511,
    6241720512,
    6241720514,
    6241720517,
    6241720520,
    6241720523,
    6241720526,
    6241720528,
    6241720531,
    6241720534,
    6241720538,
    6241720545,
    6241720548,
    6241720551,
    6241720553,
    6241720555,
    6241720558,
    6241720560
  ],
  "image_info": [
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720430,
      "image_id": 1714839219
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720434,
      "image_id": 1714839222
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720437,
      "image_id": 1714839225
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720440,
      "image_id": 1714839228
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720443,
      "image_id": 1714839231
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720446,
      "image_id": 1714839234
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720448,
      "image_id": 1714839236
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720451,
      "image_id": 1714839244
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720460,
      "image_id": 1714839256
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720473,
      "image_id": 1714839261
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720478,
      "image_id": 1714839265
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720481,
      "image_id": 1714839268
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720483,
      "image_id": 1714839272
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720489,
      "image_id": 1714839277
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720492,
      "image_id": 1714839280
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720495,
      "image_id": 1714839287
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720504,
      "image_id": 1714839291
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720506,
      "image_id": 1714839294
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720508,
      "image_id": 1714839296
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720509,
      "image_id": 1714839297
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720510,
      "image_id": 1714839298
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720511,
      "image_id": 1714839299
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720512,
      "image_id": 1714839300
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720514,
      "image_id": 1714839302
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720517,
      "image_id": 1714839305
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720520,
      "image_id": 1714839308
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720523,
      "image_id": 1714839310
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720526,
      "image_id": 1714839313
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720528,
      "image_id": 1714839316
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720531,
      "image_id": 1714839319
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720534,
      "image_id": 1714839322
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720538,
      "image_id": 1714839327
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720545,
      "image_id": 1714839333
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720548,
      "image_id": 1714839336
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720551,
      "image_id": 1714839339
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720553,
      "image_id": 1714839341
    },
    {
      "height": 1024,
      "label": "",
      "width": 768,
      "document_id": 6241720555,
      "image_id": 1714839344
    },
    {
      "height": 768,
      "label": "",
      "width": 1024,
      "document_id": 6241720558,
      "image_id": 1714839346
    },
    {
      "height": 749,
      "label": "",
      "width": 1024,
      "document_id": 6241720560,
      "image_id": 1714839347
    }
  ],
  "is_diamond": false,
  "is_gold": false,
  "is_platinum": false,
  "is_private": false,
  "is_showcase": false,
  "is_list_hub_listing": true,
  "is_irrigated": false,
  "is_liked": false,
  "is_free": true,
  "is_residence": true,
  "latitude": 34.629321,
  "last_updated": "June 8, 2026 at 5:38 PM",
  "lead_routing_email": null,
  "link_infos": [
    {
      "label_text": "Residential Land",
      "url": "/search/south-carolina/laurens-county/residential-land-for-sale/"
    }
  ],
  "listhub_listing_status": "Active",
  "listing_date": "2026-06-05",
  "listing_id": 27559276,
  "listing_level": 3,
  "longitude": -82.02713,
  "main_photo_document_id": "6241720430",
  "mls_id": "139950",
  "mls_name": "Greenwood Association of REALTORS",
  "parcel_id": "0|2349|3450000040|1",
  "parent_account_id": null,
  "participant_key": null,
  "partner_id": 20004,
  "partner_name": "ListHub",
  "price": 715000,
  "pricing_plan": null,
  "region": {
    "county_ids": null,
    "id": 197,
    "name": "Upstate South Carolina",
    "state_id": 0,
    "state_name": null
  },
  "reference_name": null,
  "should_redirect_ldp": null,
  "site_listing_id": 41593652,
  "small_map_url": "https://maps.googleapis.com/maps/api/staticmap?key=AIzaSyCvtvmtxTW9V3N4SW7-QvFPV5k1O6pmkds&channel=land&size=100x100&maptype=roadmap¢er=34.629321%2c-82.02713&markers=color:blue%7C34.629321%2c-82.02713&zoom=10&signature=B-9rz4jrnPNqFwYw5nCk8IzXzkk=",
  "site_id": 1080,
  "state": {
    "county_label": "County",
    "county_label_plural": "Counties",
    "state_id": 45,
    "state_abbreviation": "SC",
    "state_name": "South Carolina",
    "tax_rate": 0.57
  },
  "market_status": 1,
  "third_party_map_url": null,
  "title": "SINGLE_FAMILY - Gray Court, SC",
  "types": [
    "Residential Land"
  ],
  "type_ids": [
    8
  ],
  "upgrade_level_id": 0,
  "xml_data": null,
  "youtube_video_id": null,
  "virtual_tour_link": null
}
```

Each property returns 70+ structured fields organized by category:

#### Core Listing Information

| Field | Description | Purpose |
|---|---|---|
| `listing_id` | Unique Land and Farm listing identifier | Deduplication and tracking |
| `title` | Property title as displayed | Quick identification |
| `site_listing_id` | Internal site listing ID | Cross-reference in databases |
| `canonical_url` | Official property page URL | Source verification |
| `listing_date` | When the property was listed | Age and recency analysis |
| `last_updated` | Most recent data update timestamp | Freshness indicator |
| `market_status` | Current listing status (Active, Pending, Sold) | Availability tracking |

#### Property Specifications

| Field | Description | Purpose |
|---|---|---|
| `acres` | Total acreage | Size and valuation basis |
| `beds` | Number of bedrooms | Residential capacity |
| `baths` | Number of bathrooms | Amenity specification |
| `half_baths` | Number of half-baths | Complete facility inventory |
| `homesqft` | Square footage of structures | Building size comparison |
| `types` | Property type (Farm, Land, Homesite, etc.) | Category filtering |
| `is_irrigated` | Whether property has irrigation | Agricultural productivity indicator |
| `is_residence` | Whether occupied as a residence | Use classification |
| `highlight1`, `highlight2`, `highlight3`, `highlight4` | Key property features | Marketing highlights and differentiators |

#### Location & Geographic Data

| Field | Description | Purpose |
|---|---|---|
| `address` | Full property street address | Physical location |
| `city` | City name | Regional context |
| `county` | County name | Jurisdiction identification |
| `state` | State abbreviation | Geographic filtering |
| `region` | Broader geographic region | Market segmentation |
| `latitude`, `longitude` | GPS coordinates | Precise mapping and spatial analysis |
| `geocode_accuracy` | Accuracy level of coordinates | Geolocation confidence |
| `small_map_url` | Thumbnail map image URL | Quick location visualization |
| `third_party_map_url` | External map service link | Detailed mapping integration |
| `city_url`, `county_url` | Links to city/county pages | Regional data navigation |

#### Pricing & Financial

| Field | Description | Purpose |
|---|---|---|
| `price` | Listed asking price | Investment valuation |
| `pricing_plan` | Price tier or plan level | Listing premium status |
| `upgrade_level_id` | Listing upgrade tier | Feature promotion level |

#### Auction Information (if applicable)

| Field | Description | Purpose |
|---|---|---|
| `auction_id` | Unique auction identifier | Auction tracking |
| `auction_title` | Auction name or title | Auction identification |
| `auction_start_date` | Auction commencement date | Timeline reference |
| `auction_end_date` | Auction closure date | Bidding deadline |
| `auction_is_online_only` | Whether auction is digital-only | Participation method |
| `auction_bidding_url` | Direct link to bidding platform | Auction participation |
| `auction_info_url` | Auction details page URL | Full auction specifications |
| `auction_address` | Auction event physical location | In-person attendance info |
| `auction_city`, `auction_state` | Auction event location | Geographic reference |
| `auction_timezone` | Timezone of auction times | Time zone clarity |

#### Descriptions & Content

| Field | Description | Purpose |
|---|---|---|
| `description` | Raw HTML property description | Full marketing content |
| `formatted_description` | Clean, formatted text description | Readable property summary |
| `executive_summary` | Brief property overview | Quick reference |
| `directions` | Directions to the property | Navigation assistance |
| `disclaimer` | Legal disclaimers or caveats | Compliance and risk disclosure |

#### Media & Multimedia

| Field | Description | Purpose |
|---|---|---|
| `image_document_ids` | IDs of all property images | Photo inventory |
| `image_info` | Detailed image metadata | Photo specifications |
| `main_photo_document_id` | ID of primary/featured photo | Hero image reference |
| `youtube_video_id` | Embedded YouTube video ID | Video content reference |
| `virtual_tour_link` | Link to 3D virtual tour | Immersive property viewing |
| `attachments` | Supporting documents (surveys, deeds, etc.) | Legal and technical documents |

#### Account & Administrative

| Field | Description | Purpose |
|---|---|---|
| `account_id` | Seller/lister account ID | Account tracking |
| `account_maps_id` | Account mapping identifier | Cross-system reference |
| `account_type` | Account classification (Broker, Individual, etc.) | Seller profile type |
| `parent_account_id` | Parent brokerage or company ID | Organizational hierarchy |
| `homes_user_id` | Homes platform user ID | Multi-platform tracking |
| `lead_routing_email` | Email for inquiry routing | Lead management |
| `partner_id`, `partner_name` | Listing partner information | Data source attribution |
| `external_source_id` | External feed or source identifier | Multi-source tracking |
| `mls_id`, `mls_name` | MLS (Multiple Listing Service) reference | MLS integration |

#### Classification & Flags

| Field | Description | Purpose |
|---|---|---|
| `is_diamond`, `is_gold`, `is_platinum` | Premium listing badges | Listing tier distinction |
| `is_showcase` | Featured showcase listing | Promotion status |
| `is_private` | Private/unlisted flag | Visibility control |
| `is_liked` | User favoriting indicator | Engagement tracking |
| `is_free` | Free vs. paid listing distinction | Cost classification |
| `can_display` | Whether listing is displayable | Publishing eligibility |
| `listhub_listing_status` | ListHub syndication status | Third-party distribution |
| `is_list_hub_listing` | Whether synced to ListHub | Distribution channel |

#### Parcel & Tax Information

| Field | Description | Purpose |
|---|---|---|
| `parcel_id` | County/assessor parcel number | Legal property identification |
| `area_label` | Zoning or area designation | Land-use classification |
| `ad_targeting_pta` | Ad targeting parameter | Marketing segmentation |

#### Metadata

| Field | Description | Purpose |
|---|---|---|
| `reference_name` | Internal reference identifier | System tracking |
| `participant_key` | Participant or user key | User association |
| `site_id` | Site-specific identifier | Platform reference |
| `should_redirect_ldp` | Redirect flag for landing pages | URL routing control |
| `feed_last_checked` | Last data feed sync timestamp | Feed freshness |
| `xml_data` | Raw XML feed data (if applicable) | Source data preservation |

***

### How to Use

1. **Collect URLs** — Navigate to Land and Farm, find properties of interest, and copy their detail page URLs. Ensure URLs point to individual property pages (e.g., `/property/...`).
2. **Configure input** — Add URLs to the `urls` array. Set `max_items_per_url` based on expected data volume.
3. **Enable error resilience** — Set `ignore_url_failures: true` for uninterrupted batch processing.
4. **Execute the scraper** — Start the run and monitor progress via the execution logs.
5. **Export and analyze** — Download results as JSON, CSV, or Excel. Pipe data into GIS tools, spreadsheets, or databases.

**Common troubleshooting:**

- Verify URLs are property *detail* pages, not search results or category pages.
- If a URL fails, confirm the property page is publicly accessible and not behind a login wall.
- Use `last_updated` and `feed_last_checked` fields to validate data freshness.

***

### Real-World Applications

- **Investment analysis:** Compare acreage, pricing, and location across multiple listings to identify market opportunities
- **Market research:** Track price trends, available acreage, and auction activity by county or state
- **Competitive analysis:** Monitor competitor properties and pricing strategies in target regions
- **Portfolio management:** Maintain structured records of watched properties with automated price and status tracking
- **Data enrichment:** Combine Land and Farm data with external datasets (weather, soil, zoning) for advanced analytics

The **Land and Farm Property Scraper** reduces research time from hours to minutes, delivering clean, actionable data that powers smarter investment decisions.

***

### Conclusion

For real estate professionals, investors, and researchers, the **Land and Farm Property Scraper** unlocks the full value of the platform's property database. With 70+ comprehensive fields covering specifications, location, auction details, and multimedia, you gain instant, machine-readable access to the data you need. Extract once, analyze infinitely — start scraping today.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Specific property urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## Actor input object example

```json
{
  "urls": [
    "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/",
    "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
    "https://www.landandfarm.com/property/2-98-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-5-42152378/",
    "https://www.landandfarm.com/property/12-58-acre-williamsburg-county-farm-with-415-ft-of-paved-road-fronatge-42173626/",
    "https://www.landandfarm.com/property/7-14-acres-of-productive-farmland-near-hemingway-sc-42133307/"
  ],
  "ignore_url_failures": true
}
```

# 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 = {
    "urls": [
        "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/",
        "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
        "https://www.landandfarm.com/property/2-98-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-5-42152378/",
        "https://www.landandfarm.com/property/12-58-acre-williamsburg-county-farm-with-415-ft-of-paved-road-fronatge-42173626/",
        "https://www.landandfarm.com/property/7-14-acres-of-productive-farmland-near-hemingway-sc-42133307/"
    ],
    "ignore_url_failures": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexist/landandfarm-property-details-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 = {
    "urls": [
        "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/",
        "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
        "https://www.landandfarm.com/property/2-98-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-5-42152378/",
        "https://www.landandfarm.com/property/12-58-acre-williamsburg-county-farm-with-415-ft-of-paved-road-fronatge-42173626/",
        "https://www.landandfarm.com/property/7-14-acres-of-productive-farmland-near-hemingway-sc-42133307/",
    ],
    "ignore_url_failures": True,
}

# Run the Actor and wait for it to finish
run = client.actor("alexist/landandfarm-property-details-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.landandfarm.com/property/single-family-gray-court-sc-41593652/",
    "https://www.landandfarm.com/property/2-16-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-6-42152377/",
    "https://www.landandfarm.com/property/2-98-acre-homesite-on-hemingway-highway-in-williamsburg-county-sc-lot-5-42152378/",
    "https://www.landandfarm.com/property/12-58-acre-williamsburg-county-farm-with-415-ft-of-paved-road-fronatge-42173626/",
    "https://www.landandfarm.com/property/7-14-acres-of-productive-farmland-near-hemingway-sc-42133307/"
  ],
  "ignore_url_failures": true
}' |
apify call alexist/landandfarm-property-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=alexist/landandfarm-property-details-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/yE0qjpdcgmydaNtxf/builds/NTfSc4WP05GYCkqS7/openapi.json
