# A Place in the Sun Scraper - Overseas Property for Sale (`sn41lz/a-place-in-the-sun-scraper`) Actor

Scrape overseas property from A Place in the Sun: price in the listing's currency and GBP, bedrooms, area, features, agency, GPS and photos. Spain, France, Portugal, Italy, Turkey, Greece and 50+ countries, 115,000+ listings.

- **URL**: https://apify.com/sn41lz/a-place-in-the-sun-scraper.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 properties

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

## A Place in the Sun Scraper: Overseas Property for Sale

Get property listings from [A Place in the Sun](https://www.aplaceinthesun.com), the UK portal for buying abroad, as clean structured data: price in the listing's own currency and in pounds, bedrooms, bathrooms, built area, plot size, features, agency, GPS and photos.

It covers about 115,000 listings in 50+ countries. Spain has about 42,000, France about 23,000, then Portugal, Italy, Turkey, Greece, Croatia, Cyprus, Dubai, Florida and more. Search by any country, region or town, or paste a results URL. There is no result cap: every page of a search is crawled.

### Pricing

**$2 per 1,000 properties.** You pay only for the properties you get. There is no start fee or usage charge.

| Properties | Cost |
|---|---|
| 100 | $0.20 |
| 1,000 | $2.00 |
| 1,591 (all of Dordogne) | $3.18 |
| 15,181 (all of the Costa del Sol) | $30.36 |

Set **Max results** to cap what a run can cost.

### Who it's for

- **Agencies and property investors** comparing overseas markets and pricing
- **Lead generation and proptech teams** that need to know which agencies are active where
- **Analysts and journalists** tracking what foreign buyers are offered, and at what price
- **Relocation and mortgage services** watching stock in specific regions

### Input example

```json
{
  "locations": ["Costa del Sol", "Algarve", "Tuscany"],
  "minPrice": 200000,
  "maxPrice": 500000,
  "priceCurrency": "EUR",
  "propertyType": "house-villa",
  "minBedrooms": 3,
  "maxItems": 500,
  "includeDetails": true
}
```

### Output example

From a real run:

```json
{
  "id": "AP4091157",
  "url": "https://www.aplaceinthesun.com/property/details/ap4091157/4-bed-house-villa-for-sale-in-ostuni-brindisi-italy",
  "title": "4 Bed House/Villa for sale",
  "propertyType": "House/Villa",
  "isNewBuild": true,
  "price": 790000,
  "currency": "EUR",
  "priceGBP": 678752,
  "priceOnApplication": false,
  "bedrooms": 4,
  "bathrooms": 3,
  "builtAreaM2": 110,
  "plotAreaM2": 8100,
  "country": "Italy",
  "region": "Apulia",
  "province": "Brindisi",
  "town": "Ostuni",
  "latitude": 40.727631,
  "longitude": 17.576406,
  "isApproximateLocation": false,
  "agency": "La Tua Immobiliare",
  "agencyUrl": "https://www.aplaceinthesun.com/property/agent/519306/la-tua-immobiliare-",
  "isPrivateSeller": false,
  "isPremium": false,
  "hasFloorPlan": false,
  "videoTourUrl": null,
  "description": "La Tua Immobiliare real estate is pleased to offer for sale this newly constructed villa with a swimming pool and guest house, situated in a quiet and private location within the scenic countryside of Ostuni…",
  "features": ["Consumption: G", "Rental investement", "Close to Ostuni", "4 bedrooms", "Large family house"],
  "imageCount": 45,
  "imageUrls": ["https://www.aplaceinthesun.com/property/media/images/519306/AL4091157/116221090_1.jpg?06022026165329"],
  "mainImage": "https://www.aplaceinthesun.com/property/media/images/519306/AL4091157/116221090_1.jpg?06022026165329",
  "searchUrl": "https://www.aplaceinthesun.com/property/italy/puglia"
}
```

### Output fields

| Field | Example | Notes |
|---|---|---|
| `id` | `AP4091157` | The site's listing reference |
| `url` | `https://www.aplaceinthesun.com/property/details/ap4091157/…` | Property page |
| `title` | `4 Bed House/Villa for sale` | |
| `propertyType` | `House/Villa`, `Trullo`, `Apartment` | As shown on the listing |
| `isNewBuild` | `true` | |
| `price` | `790000` | In `currency`. Empty if on application |
| `currency` | `EUR` | The currency the site quotes the listing in: `EUR`, `USD`, `GBP`, `TRY`, `CHF`, `ZAR`… |
| `priceGBP` | `678752` | The site's price in pounds |
| `priceOnApplication` | `false` | `true` when no price is published |
| `bedrooms`, `bathrooms` | `4`, `3` | Empty for plots or when not stated |
| `builtAreaM2` | `110` | Needs `includeDetails`; not every listing has it |
| `plotAreaM2` | `8100` | Needs `includeDetails`; not every listing has it |
| `country` | `Italy` | |
| `region` | `Apulia` | |
| `province` | `Brindisi` | |
| `town` | `Ostuni` | |
| `latitude`, `longitude` | `40.727631`, `17.576406` | |
| `isApproximateLocation` | `false` | The site's flag for approximate GPS |
| `agency` | `La Tua Immobiliare` | Company name. Empty for private sellers |
| `agencyUrl` | `https://www.aplaceinthesun.com/property/agent/519306/…` | |
| `isPrivateSeller` | `false` | |
| `isPremium` | `false` | Paid premium placement on the site |
| `hasFloorPlan` | `false` | |
| `videoTourUrl` | `null` | |
| `description` | `La Tua Immobiliare real estate is pleased…` | Full text with `includeDetails`, otherwise a short snippet |
| `features` | `["Pool: Optional", "Terrace"]` | Needs `includeDetails` |
| `imageCount` | `45` | |
| `imageUrls` | `["https://…_1.jpg"]` | All photos, full size |
| `mainImage` | `https://…_1.jpg` | |
| `searchUrl` | `https://www.aplaceinthesun.com/property/italy/puglia` | The search that found it |

### How to use

1. Add one or more **locations**. Countries, regions, provinces and towns all work, and popular names too: Costa del Sol, Costa Blanca, Costa Brava, Algarve, Tuscany, Puglia, Sicily, Dordogne, Provence, Mallorca, Tenerife, Dubai. If a name is repeated, add the country: `Granada, Spain`. You can also paste a results URL from the site, with any filters you set there.
2. Set any **filters**: price, property type, bedrooms, bathrooms, pool, new build, keywords.
3. Leave **Include full details** on if you want areas, features and full descriptions. Turn it off for a faster run.
4. Set **Max results** and run. Download as JSON, CSV or Excel, or use the API.

### Notes

- **Prices.** `currency` is the currency the site quotes the listing in. A few agents price in pounds and the site converts, so a Turkish listing can show as `€464,396` with a round `priceGBP` of `399000`. A few listings show a bare number with no currency; those come out in pounds.
- **Price filters.** The site filters in pounds. Euro and dollar limits are converted at the site's current rate, so a listing right on the limit can fall either way.
- **Areas are as the agent entered them.** Some are clearly in another unit, such as a French farmhouse with a plot of `1.1` m², which is probably hectares. Check unusually small or large values against the description.
- **Max results is a total across all locations.** With several locations, the first can use it all up.
- **Speed.** About 150 properties a minute with details, about 1,300 without.
- **Privacy.** Private sellers' names are never collected, and phone numbers and e-mail addresses in descriptions are masked.
- **Language.** The English site's results and text only. Agents sometimes write descriptions in their own language.

# Actor input Schema

## `locations` (type: `array`):

Countries, regions, provinces or towns, e.g. 'Costa del Sol', 'Algarve', 'Tuscany', 'Puglia', 'Dordogne', 'Spain', 'Turkey'. Add the country if a name is repeated: 'Granada, Spain'.

## `minPrice` (type: `integer`):

Only properties at or above this price, in the price currency below.

## `maxPrice` (type: `integer`):

Only properties at or below this price, in the price currency below.

## `priceCurrency` (type: `string`):

Currency of the min and max price. The site filters in pounds, so euros and dollars are converted at the site's own rate. It doesn't change the output, which has the listing's currency and pounds.

## `propertyType` (type: `string`):

Only this type of property.

## `minBedrooms` (type: `integer`):

Only properties with at least this many bedrooms.

## `maxBedrooms` (type: `integer`):

Only properties with at most this many bedrooms.

## `minBathrooms` (type: `integer`):

Only properties with at least this many bathrooms.

## `poolOnly` (type: `boolean`):

Only properties with a pool.

## `newBuildOnly` (type: `boolean`):

Only new-build properties.

## `keywords` (type: `string`):

Only listings mentioning these words, e.g. 'golf' or 'sea view'.

## `sortBy` (type: `string`):

Order of the results. Useful with a max results limit: 'Newest' gets you what was just listed.

## `startUrls` (type: `array`):

Or paste result pages from the English site with any filters you set there, e.g. https://www.aplaceinthesun.com/property/italy/puglia

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

Stop after this many properties in total. 0 = no limit.

## `includeDetails` (type: `boolean`):

Also open each property page to get the built area, plot size, features and full description. Slower; same price per property. Without it you get a short description and no areas.

## Actor input object example

```json
{
  "locations": [
    "Costa del Sol"
  ],
  "priceCurrency": "EUR",
  "propertyType": "all",
  "poolOnly": false,
  "newBuildOnly": false,
  "sortBy": "newest",
  "maxItems": 20,
  "includeDetails": true
}
```

# Actor output Schema

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

No description

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

No description

# 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 = {
    "locations": [
        "Costa del Sol"
    ],
    "maxItems": 20,
    "includeDetails": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/a-place-in-the-sun-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 = {
    "locations": ["Costa del Sol"],
    "maxItems": 20,
    "includeDetails": True,
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/a-place-in-the-sun-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 '{
  "locations": [
    "Costa del Sol"
  ],
  "maxItems": 20,
  "includeDetails": true
}' |
apify call sn41lz/a-place-in-the-sun-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sn41lz/a-place-in-the-sun-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/h5fI8SJbNUsCeU6xw/builds/UU3g93ih8Uo1ZX7hB/openapi.json
