Scraper APIFlatfox
flatfox.search
The listings to rent or for sale on flatfox.ch inside an area of Switzerland: price, rooms, living area, address, coordinates, description, photos and the agency.
- Id
flatfox.search- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/flatfox.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
northrequired | number | The northern edge of the area, a latitude in decimal degrees, e.g. 47.43. A search address on flatfox.ch carries the four edges.Limit: 45.5 to 48. |
southrequired | number | The southern edge, a latitude, e.g. 47.32.Limit: 45.5 to 48. |
eastrequired | number | The eastern edge, a longitude, e.g. 8.6.Limit: 5.5 to 11. |
westrequired | number | The western edge, a longitude, e.g. 8.44.Limit: 5.5 to 11. |
offer_type | "rent" | "sale" | Listings to rent or for sale.Default: "rent". |
category | "apartment" | "house" | "shared" | "park" | "industry" | "secondary" | Only this kind of object: apartment, house, shared (a room in a shared flat), park (a parking space), industry (commercial premises) or secondary (a hobby or storage room). Every kind when not given. |
min_price | integer | The lowest price in Swiss francs: the monthly rent, or the selling price.Limit: 0 to 100000000. |
max_price | integer | The highest price in Swiss francs, the same way.Limit: 1 to 100000000. |
min_rooms | number | At least this many rooms, e.g. 2.5.Limit: 1 to 20. |
max_rooms | number | At most this many rooms.Limit: 1 to 20. |
max_results | integer | Return at most this many listings, newest first (up to 100).Limit: 1 to 100. Default: 50. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer or null | The listing's place in the search's answer, from 1 (newest first). Null for flatfox.listing. |
listing_id | integer | Flatfox's number of the listing, the last part of its address. |
url | string | The listing's page on flatfox.ch. |
offer_type | string | rent or sale. |
category | string or null | The kind of object, in Flatfox's words in lower case: apartment, house, shared (a room in a shared flat), park (a parking space), industry (commercial premises), secondary (a hobby or storage room). |
object_type | string or null | The narrower kind, in Flatfox's words in lower case: apartment, duplex, single_house, shared_flat, garage_slot, office, … |
title | string or null | The advertiser's headline. |
short_title | string or null | Flatfox's own short line for the object, e.g. 3 rooms apartment. |
description | string or null | The advertiser's description, as written (most are in German, French or Italian). |
price | number or null | The price the listing shows, in Swiss francs: a rent, or the selling price of a listing for sale. |
price_unit | string or null | What a rent is for: monthly, or yearlym2 (per square metre a year, on commercial premises). Null for a selling price. |
price_type | string or null | total when the price is for the whole object, m2 when it is per square metre. Null where Flatfox does not say. |
rent_net | number or null | The monthly rent without utilities, in francs. |
rent_charges | number or null | The monthly utilities and charges, in francs. |
rent_gross | number or null | The monthly rent with utilities, in francs. |
currency | string | CHF. |
rooms | number or null | The number of rooms as Switzerland counts them (a living room counts, a kitchen does not): 2.5, 3, 4.5. |
living_area_m2 | number or null | The living area in square metres. |
property_area_m2 | number or null | The area of the plot in square metres. |
usable_area_m2 | number or null | The usable area in square metres (commercial premises). |
floor | integer or null | The floor: 0 is the ground floor. |
year_built | integer or null | The year the building was built. |
year_renovated | integer or null | The year of the last renovation. |
features | array of string | What the listing ticks, in Flatfox's own codes: balconygarden, lift, petsallowed, dishwasher, parkingspace, … |
furnished | boolean or null | True when the object is let furnished. |
temporary | boolean or null | True when the let is for a limited time. |
reserved | boolean or null | True when Flatfox marks the listing as reserved. |
available | string or null | When the object can be moved into: immediately, by_agreement, or date (then available_from says which). |
available_from | string (date) or null | The move-in date, where the listing names one. |
street | string or null | The street and house number, where the advertiser shows them. |
postal_code | string or null | The four-digit Swiss postcode. |
city | string or null | The town. |
address | string or null | The address as the listing shows it on one line. |
country | string or null | The two-letter country code: CH. |
latitude | number or null | The latitude of the listing's pin, in decimal degrees. |
longitude | number or null | The longitude of that pin. |
agency | string or null | The name of the agency or property manager advertising the object. Null for a listing placed by a private person. |
agency_address | string or null | The agency's own address, on one line. |
images | array of string | The listing's photos, the cover first. |
documents | array of string | The documents attached to the listing (a floor plan, a brochure). |
video_url | string or null | The listing's video, where it has one. |
tour_url | string or null | The listing's virtual tour, where it has one. |
website_url | string or null | The object's own website, where the listing names one. |
reference | string or null | The advertiser's own reference for the object. |
published_at | string (date-time) or null | When the listing was published, with Flatfox's own time zone offset. |
created_at | string (date-time) or null | When the listing was first created. |
fetched_at | string (date-time) | When the answer was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/flatfox.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"north":47.43,"south":47.32,"east":8.6,"west":8.44,"category":"apartment","min_price":1000,"max_price":1500,"min_rooms":2,"max_rooms":3,"max_results":8}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("flatfox.search", {
"north": 47.43,
"south": 47.32,
"east": 8.6,
"west": 8.44,
"category": "apartment",
"min_price": 1000,
"max_price": 1500,
"min_rooms": 2,
"max_rooms": 3,
"max_results": 8,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("flatfox.search", {
north: 47.43,
south: 47.32,
east: 8.6,
west: 8.44,
category: "apartment",
min_price: 1000,
max_price: 1500,
min_rooms: 2,
max_rooms: 3,
max_results: 8,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "flatfox.search", map[string]any{"north": 47.43, "south": 47.32, "east": 8.6, "west": 8.44, "category": "apartment", "min_price": 1000, "max_price": 1500, "min_rooms": 2, "max_rooms": 3, "max_results": 8})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("flatfox.search", Map.of("north", 47.43, "south", 47.32, "east", 8.6, "west", 8.44, "category", "apartment", "min_price", 1000, "max_price", 1500, "min_rooms", 2, "max_rooms", 3, "max_results", 8));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run flatfox.search --input north=47.43 --input south=47.32 --input east=8.6 --input west=8.44 --input category=apartment --input min_price=1000 --input max_price=1500 --input min_rooms=2 --input max_rooms=3 --input max_results=8Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"north": 47.43,
"south": 47.32,
"east": 8.6,
"west": 8.44,
"category": "apartment",
"min_price": 1000,
"max_price": 1500,
"min_rooms": 2,
"max_rooms": 3,
"max_results": 8
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "flatfox.search",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"north": 47.43,
"south": 47.32,
"east": 8.6,
"west": 8.44,
"category": "apartment",
"min_price": 1000,
"max_price": 1500,
"min_rooms": 2,
"max_rooms": 3,
"max_results": 8
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 1,
"listing_id": 86551381,
"url": "https://flatfox.ch/en/flat/hardturmstrasse-68a-8005-zurich/86551381/",
"offer_type": "rent",
"category": "apartment",
"object_type": "apartment",
"title": "Wunderschönes, grosszügiges Loft mit Yogastudio in Zürich zur Untermiete 5.12.26-6.3.27",
"short_title": "2 ½ rooms apartment",
"description": "Wunderschönes, grosszügiges Loft mit Yogastudio in Zürich zur Untermiete \n \n**Hardturmstrasse, Zürich – mit Blick auf die Limmat** \n**5\\. Dezember 2026 – 6. März 2027** \n**CHF 1'500.– pro Monat** \n \nWegen Ferienabwesenheit vermieten … [truncated]",
"price": 1500,
"price_unit": "monthly",
"price_type": "total",
"rent_net": null,
"rent_charges": null,
"rent_gross": 1500,
"currency": "CHF",
"rooms": 2.5,
"living_area_m2": null,
"property_area_m2": null,
"usable_area_m2": null,
"floor": 2,
"year_built": null,
"year_renovated": null,
"features": [
"view",
"balconygarden",
"dishwasher"
],
"furnished": false,
"temporary": true,
"reserved": false,
"available": "date",
"available_from": "2026-12-05",
"street": "Hardturmstrasse 68A",
"postal_code": "8005",
"city": "Zürich",
"address": "Hardturmstrasse 68A, 8005 Zürich",
"country": "CH",
"latitude": 47.3922241,
"longitude": 8.5185075,
"agency": null,
"agency_address": null,
"images": [
"https://flatfox.ch/media/ff/2026/11/gotbo6j85yz6b9t61dkn075ckg9epu1h0dc72jzreo0lqswto3.jpg",
"https://flatfox.ch/media/ff/2026/11/s5tvwu28klttpmodyqkusk9itbokncqfa818xth4ubb3gvhu8y.jpg",
"https://flatfox.ch/media/ff/2026/11/tliyp9fb2f2csjuz5kkwvd9ewmm4uh5hk0wz2yorrlbj1p8wcd.jpg"
],
"documents": [],
"video_url": null,
"tour_url": null,
"website_url": null,
"reference": null,
"published_at": "2026-11-17T14:41:25.907482+01:00",
"created_at": "2026-11-17T14:41:25.798299+01:00",
"fetched_at": "2026-11-19T18:07:40.168270Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 4,137 characters, the first 238 shown. - Shortened:
features: 5 items, the first 3 shown. - Shortened:
images: 7 items, the first 3 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Flatfox scrapers are in their own section there.