Scraper APIFlatfox
flatfox.listing
One listing on flatfox.ch: the rent with and without utilities or the selling price, rooms, areas, floor, features, move-in date, address, coordinates, description, photos and the agency.
- Id
flatfox.listing- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/flatfox.listing/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 |
|---|---|---|
listingrequired | string | The listing's number on flatfox.ch, e.g. 32751, or the address of its page (https://flatfox.ch/en/flat/4464-maisprach/32751/).Limit: at least 1 characters, at most 300 characters. |
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.listing/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"listing":"32751"}}'
# 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.listing", {"listing": "32751"})
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.listing", { listing: "32751" });
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.listing", map[string]any{"listing": "32751"})
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.listing", Map.of("listing", "32751"));
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.listing --input-json '{"listing":"32751"}'Install 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": {
"listing": "32751"
}
}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.listing",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"listing": "32751"
},
"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": null,
"listing_id": 32751,
"url": "https://flatfox.ch/en/flat/4464-maisprach/32751/",
"offer_type": "rent",
"category": "house",
"object_type": "single_house",
"title": "Erstbezug: Frisch renoviertes, denkmalgeschütztes Bauernhaus mit privatem Innenhof und Garten",
"short_title": "6 rooms single house",
"description": "Dieses hochwertig renovierte 6-Zimmer-Bauernhaus auf Eigentumswohnungsstandard überzeugt mit einem eigenen Garten, einem privaten Innenhof, einer Garage, sowie einem separaten Keller/Hobbyraum. Mit einer Nettowohnfläche von über 200 m² … [truncated]",
"price": 3125,
"price_unit": "monthly",
"price_type": "total",
"rent_net": 3125,
"rent_charges": null,
"rent_gross": null,
"currency": "CHF",
"rooms": 6,
"living_area_m2": 200,
"property_area_m2": 380,
"usable_area_m2": null,
"floor": null,
"year_built": null,
"year_renovated": null,
"features": [
"view",
"balconygarden",
"parkingspace"
],
"furnished": false,
"temporary": false,
"reserved": false,
"available": "by_agreement",
"available_from": null,
"street": null,
"postal_code": "4464",
"city": "Maisprach",
"address": "4464 Maisprach",
"country": "CH",
"latitude": 47.520511611155,
"longitude": 7.840252334861,
"agency": null,
"agency_address": null,
"images": [
"https://flatfox.ch/media/ff/2026/11/3zdeqnd7qsuispgapvz9j3yssfl1uav76id3pnautbikefhnpu.jpg",
"https://flatfox.ch/media/ff/2026/11/fav84saqt8s2w50kfig3f7er01i31ik1npwx9smmtpdygpuwos.jpg",
"https://flatfox.ch/media/ff/2026/11/1sqsu8o3su6bvt6iohngfto0wswpizivu7ew7vpcs3koposrsn.jpg"
],
"documents": [],
"video_url": null,
"tour_url": null,
"website_url": null,
"reference": null,
"published_at": "2018-03-10T17:18:45.994082+01:00",
"created_at": "2018-03-10T17:18:45.866162+01:00",
"fetched_at": "2026-11-19T18:07:40.161380Z"
}
],
"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: 1,359 characters, the first 235 shown. - Shortened:
features: 12 items, the first 3 shown. - Shortened:
images: 11 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.