# Farmland Parser Spider (`getdataforme/farmland-parser-spider`) Actor

Farmland Parser Spider scrapes comprehensive product data from Farmlands.co.nz, including titles, descriptions, pricing, availability, images, and attributes, outputting structured JSON....

- **URL**: https://apify.com/getdataforme/farmland-parser-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce, Jobs, Real estate
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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?

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

## Farmland Parser Spider

### Introduction

The Farmland Parser Spider is a powerful Apify Actor designed to scrape detailed product information from Farmlands.co.nz, New Zealand's leading rural supplies retailer. It extracts comprehensive data including product titles, descriptions, pricing, availability, images, and attributes, delivering structured JSON outputs for easy analysis and integration. This tool empowers businesses and researchers to gather accurate, up-to-date e-commerce data efficiently and reliably.

### Features

- **Comprehensive Data Extraction**: Captures key product details like titles, descriptions, prices, stock status, and images from Farmlands product pages.
- **High Reliability**: Utilizes residential proxies to bypass restrictions and ensure uninterrupted scraping.
- **Structured Output**: Produces clean, well-formatted JSON data suitable for databases, analytics tools, or APIs.
- **Scalable Performance**: Handles multiple URLs concurrently, making it ideal for bulk data collection.
- **Error Handling**: Includes built-in retries and logging for robust operation.
- **Easy Integration**: Compatible with Apify's ecosystem for seamless data export to CSV, Excel, or cloud storage.
- **Customizable Inputs**: Supports flexible URL lists and proxy configurations for tailored scraping needs.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| Urls | array | Yes | A list of URLs to scrape from Farmlands.co.nz. Each URL must be a valid HTTP or HTTPS link pointing to a product page. | `["https://shop.farmlands.co.nz/products/nrm-lamb-start-mix-20kg"]` |
| proxy | object | No | Proxy settings to enhance scraping reliability, including Apify proxy groups and country selection. Defaults to residential proxies in the US. | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}` |

### Example Usage

#### Input Configuration

```json
{
  "Urls": [
    "https://shop.farmlands.co.nz/products/nrm-lamb-start-mix-20kg"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

#### Output Example

```json
[
  {
    "source_metadata": {
      "source_id": "shop.farmlands.co.nz",
      "source_url": "https://shop.farmlands.co.nz/products/nrm-lamb-start-mix-20kg",
      "extraction_timestamp": "2026-01-29T11:40:15.680338",
      "scraper_version": "1.0.0"
    },
    "product": {
      "product_id": "1029575",
      "title": "NRM Lamb Start Mix 20kg",
      "description": "Bulk purchase discount Buy Price excl gst each 50 + $29.34 A high quality, nutritious textured starter feed for milk-fed lambs. A palatable mix of digestible grains with added protein, minerals and trace elements for optimal growth and health. Contain Deccox to aid in the prevention of coccidiosis which can be very debilitating.",
      "category": null,
      "brand": "NRM",
      "sku": "1029575",
      "upc": null
    },
    "pricing": {
      "currency": "NZD",
      "list_price": 36.5,
      "sale_price": 36.5,
      "discount_percentage": null
    },
    "availability": {
      "is_in_stock": true,
      "stock_quantity": null
    },
    "images": [
      "https://shop.farmlands.co.nz/cdn/shop/files/search_7553b92b-4560-496b-8446-cb636638b000.png?v=1769606611&width=1920"
    ],
    "attributes": {
      "rating_value": null,
      "review_count": null
    }
  }
]
```

### Use Cases

- **Market Research**: Analyze product trends, pricing strategies, and inventory levels across Farmlands' catalog for agricultural insights.
- **Competitive Intelligence**: Compare Farmlands' offerings with competitors to identify gaps or opportunities in the rural supplies market.
- **Price Monitoring**: Track price changes and discounts on key products to inform purchasing or sales decisions.
- **Content Aggregation**: Collect product data for building databases or feeds for e-commerce platforms and apps.
- **Academic Research**: Gather data on agricultural products for studies in economics, supply chain management, or rural development.
- **Business Automation**: Automate data extraction for inventory management, reporting, or integration with ERP systems.

### Installation and Usage

1. Search for "Farmland Parser Spider" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs an array of JSON objects, each representing a scraped product. Key sections include:

- **source\_metadata**: Details about the source, URL, timestamp, and scraper version.
- **product**: Core information like ID, title, description, category, brand, SKU, and UPC.
- **pricing**: Currency, list price, sale price, and discount percentage.
- **availability**: Stock status and quantity.
- **images**: Array of image URLs.
- **attributes**: Ratings and review counts (if available).

This structured format ensures easy parsing and integration into downstream applications.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## `proxy` (type: `object`):

Proxy settings for the spider.

## Actor input object example

```json
{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Scraped data items from dataset

# 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 = {
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/farmland-parser-spider").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 = { "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    } }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/farmland-parser-spider").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 '{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call getdataforme/farmland-parser-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/farmland-parser-spider"
        }
    }
}

```

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/zZjVlJC8YVx8ssZg2/builds/c7yQT5E7c7el3CE6R/openapi.json
