# Foxter Scraper (`dadhalfdev/foxter-scraper`) Actor

Scrape homes for sale from Foxter Cia Imobiliária. Use the same city, neighborhood, type, bedroom, and price filters as the site, or paste a URL.

- **URL**: https://apify.com/dadhalfdev/foxter-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 🏠 Foxter Scraper

Want [Foxter Cia Imobiliária](https://www.foxterciaimobiliaria.com.br/imoveis/a-venda) homes in a spreadsheet? This scraper makes it easy.

Use **structured filters** (city, neighborhood, purpose, property type, bedrooms, price) — structured filters work better for AI agents — **or** paste an **`input_url`** from Foxter once you've already filtered in the browser. When `input_url` is set it overrides the filters below.

Foxter lists homes for sale across Rio Grande do Sul, São Paulo, and nearby states. The open sale catalog is one set of columns. This actor returns up to 2000 rows per run.

### 💡 Perfect for...

- **Agents and relocators:** Export sale ads with price, rooms, and area.
- **Dashboards:** Track Porto Alegre and São Paulo prices without paging the site.
- **Market research:** Slice by apartment, house, neighborhood, or price.
- **Data analysts:** Export structured listing rows with public Foxter URLs.
- **🤖 AI Agents:** Power Claude, Cursor, Codex, the Hermes Agent, and OpenClaw workflows with live Foxter results.
- **📚 RAG Systems:** Feed titles, locations, and prices into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a property search URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Same city, neighborhood, purpose, property type, bedrooms, and price as Foxter.
- 🌐 **Listing cards:** Price, rooms, area, address, photos, fees, and building name.

### 📦 What's inside the data?

Every row includes the fields the Foxter listing card actually fills: `id`, `url`, `title`, `price`, `old_price`, `currency`, `purpose`, `property_type`, `bedrooms`, `suites`, `bathrooms`, `area_m2`, `total_area_m2`, `parking`, `address`, `neighborhood`, `city`, `state`, `condominium`, `iptu`, `furniture`, `position`, `orientation`, `features`, `financing`, `development`, `tags`, `image`, `images`.

### 🚀 Quick start

**Option A — Input URL**

1. Open [Foxter homes for sale](https://www.foxterciaimobiliaria.com.br/imoveis/a-venda), apply filters, copy the URL.
2. Paste it into `input_url`.
3. Set `max_results` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Type a city, For sale, and a property type such as Apartment.
3. Set `max_results` (up to 2000) and click **Start**.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters):**

```json
{
  "city": "Porto Alegre",
  "neighborhood": "Medianeira",
  "purpose": "For sale",
  "property_type": "Apartment",
  "bedrooms": "2",
  "price_max": "800000",
  "max_results": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.foxterciaimobiliaria.com.br/imoveis/a-venda/em-porto-alegre-rs/apartamento",
  "max_results": 50
}
```

**Output Example:**

```json
{
  "id": "298443",
  "url": "https://www.foxterciaimobiliaria.com.br/imovel/298443",
  "title": "Cobertura Edifício Oscar Schneider com 1 dormitório à venda, 140m²",
  "price": 438615,
  "old_price": 461700,
  "currency": "BRL",
  "purpose": "sale",
  "property_type": "Cobertura",
  "bedrooms": 1,
  "suites": 0,
  "bathrooms": 1,
  "area_m2": 140,
  "total_area_m2": 154,
  "parking": 2,
  "address": "Rua Oscar Schneider",
  "neighborhood": "Medianeira",
  "city": "Porto Alegre",
  "state": "RS",
  "condominium": 0,
  "iptu": 600,
  "furniture": "Não Mobiliado",
  "position": "Frente",
  "financing": true,
  "development": "Edifício Oscar Schneider",
  "image": "https://images.foxter.com.br/rest/image/outer/480/1/foxter/wm/Product/298443/pictures/01-COBERTURA-1D-MEDIANEIRA-PORTO-ALEGRE-298443.jpg"
}
```

**Output fields:**

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Listing code shown on Foxter. |
| `url` | string | Public property page. |
| `title` | string | Listing title. |
| `price` | number | Asking price in reais. |
| `old_price` | number | Previous price when the card shows one. |
| `currency` | string | Currency, BRL. |
| `purpose` | string | `sale`. |
| `property_type` | string | Apartment, house, cobertura, and the other types on the card. |
| `bedrooms` | integer | Bedroom count. |
| `suites` | integer | Suite count. |
| `bathrooms` | integer | Bathroom count. |
| `area_m2` | number | Private area in square metres. |
| `total_area_m2` | number | Total area in square metres. |
| `parking` | integer | Parking spaces. |
| `address` | string | Street shown on the card. |
| `neighborhood` | string | Neighborhood. |
| `city` | string | City. |
| `state` | string | State abbreviation. |
| `condominium` | number | Condominium fee shown on the card. |
| `iptu` | number | Property tax shown on the card. |
| `furniture` | string | Furnished status shown on the card. |
| `position` | string | Position, such as Frente. |
| `orientation` | string | Sun orientation, stored as a list when the card shows it. |
| `features` | string | Feature names, stored as a list. |
| `financing` | string | Whether the card says financing is accepted. Stored as true or false. |
| `development` | string | Building name. |
| `tags` | string | Labels shown on the card, stored as a list. |
| `image` | string | First photo. |
| `images` | string | Photo list. Stored as a list of photo URLs. |

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Foxter property URL; overrides every filter when set. |
| `city` | string | No | — | Porto Alegre, Canoas, Sao Paulo, and the other cities on Foxter. |
| `neighborhood` | string | No | — | Neighborhood, such as Medianeira or Menino Deus. |
| `purpose` | string | No | For sale | For sale. The open catalog is homes for sale. |
| `property_type` | string | No | all | Apartment, House, Cobertura, Land, Flat, Loft, Office, Store, or Warehouse. |
| `bedrooms` | string | No | any | Minimum bedrooms, such as 2 or 2+. |
| `price_min` | string | No | — | Lowest price in reais. |
| `price_max` | string | No | — | Highest price in reais. |
| `max_results` | integer | No | `50` | Maximum rows (`1`–`2000`). |

#### Notes on filters

- City, purpose, and property type accept the names you would type, such as Sao Paulo, For sale, and Apartment.
- `input_url` always wins over the other filters when provided.
- Leave city empty to read the full sale catalog.

### 🔧 Custom scrapers and agents

If you need a custom web scraper, or custom AI agents and workflows, contact me through [tuik.ai](https://www.tuik.ai). We help businesses cut costs and time by up to 10x.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Foxter search URL after you filtered in the browser. Overrides every filter when set.

## `city` (type: `string`):

City, such as Porto Alegre, Canoas, or Sao Paulo. Leave empty for the full sale catalog.

## `neighborhood` (type: `string`):

Neighborhood, such as Medianeira, Menino Deus, or Petropolis.

## `purpose` (type: `string`):

For sale. Foxter's open catalog is homes for sale.

## `property_type` (type: `string`):

Apartment, House, Cobertura, Land, Flat, Loft, Office, Store, or Warehouse. Leave empty for every type.

## `bedrooms` (type: `string`):

Minimum bedrooms, such as 2 or 2+.

## `price_min` (type: `string`):

Lowest price in Brazilian reais, such as 200000 or 200.000.

## `price_max` (type: `string`):

Highest price in Brazilian reais, such as 800000 or 800.000.

## `max_results` (type: `integer`):

How many rows to return (1–2000).

## Actor input object example

```json
{
  "purpose": "For sale",
  "max_results": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped listings using the dataset overview view.

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

All scraped listings from the default 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/foxter-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/foxter-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 '{}' |
apify call dadhalfdev/foxter-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/foxter-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/BwcIKZ5zunYEVQdIi/builds/GVQhYDoO9CYgAWNSR/openapi.json
