Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of flatfox.listing
    FieldTypeDescription
    listingrequiredstringThe 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.

    Record fields of flatfox.listing
    FieldTypeNotes
    positioninteger or nullThe listing's place in the search's answer, from 1 (newest first). Null for flatfox.listing.
    listing_idintegerFlatfox's number of the listing, the last part of its address.
    urlstringThe listing's page on flatfox.ch.
    offer_typestringrent or sale.
    categorystring or nullThe 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_typestring or nullThe narrower kind, in Flatfox's words in lower case: apartment, duplex, single_house, shared_flat, garage_slot, office, …
    titlestring or nullThe advertiser's headline.
    short_titlestring or nullFlatfox's own short line for the object, e.g. 3 rooms apartment.
    descriptionstring or nullThe advertiser's description, as written (most are in German, French or Italian).
    pricenumber or nullThe price the listing shows, in Swiss francs: a rent, or the selling price of a listing for sale.
    price_unitstring or nullWhat a rent is for: monthly, or yearlym2 (per square metre a year, on commercial premises). Null for a selling price.
    price_typestring or nulltotal when the price is for the whole object, m2 when it is per square metre. Null where Flatfox does not say.
    rent_netnumber or nullThe monthly rent without utilities, in francs.
    rent_chargesnumber or nullThe monthly utilities and charges, in francs.
    rent_grossnumber or nullThe monthly rent with utilities, in francs.
    currencystringCHF.
    roomsnumber or nullThe number of rooms as Switzerland counts them (a living room counts, a kitchen does not): 2.5, 3, 4.5.
    living_area_m2number or nullThe living area in square metres.
    property_area_m2number or nullThe area of the plot in square metres.
    usable_area_m2number or nullThe usable area in square metres (commercial premises).
    floorinteger or nullThe floor: 0 is the ground floor.
    year_builtinteger or nullThe year the building was built.
    year_renovatedinteger or nullThe year of the last renovation.
    featuresarray of stringWhat the listing ticks, in Flatfox's own codes: balconygarden, lift, petsallowed, dishwasher, parkingspace, …
    furnishedboolean or nullTrue when the object is let furnished.
    temporaryboolean or nullTrue when the let is for a limited time.
    reservedboolean or nullTrue when Flatfox marks the listing as reserved.
    availablestring or nullWhen the object can be moved into: immediately, by_agreement, or date (then available_from says which).
    available_fromstring (date) or nullThe move-in date, where the listing names one.
    streetstring or nullThe street and house number, where the advertiser shows them.
    postal_codestring or nullThe four-digit Swiss postcode.
    citystring or nullThe town.
    addressstring or nullThe address as the listing shows it on one line.
    countrystring or nullThe two-letter country code: CH.
    latitudenumber or nullThe latitude of the listing's pin, in decimal degrees.
    longitudenumber or nullThe longitude of that pin.
    agencystring or nullThe name of the agency or property manager advertising the object. Null for a listing placed by a private person.
    agency_addressstring or nullThe agency's own address, on one line.
    imagesarray of stringThe listing's photos, the cover first.
    documentsarray of stringThe documents attached to the listing (a floor plan, a brochure).
    video_urlstring or nullThe listing's video, where it has one.
    tour_urlstring or nullThe listing's virtual tour, where it has one.
    website_urlstring or nullThe object's own website, where the listing names one.
    referencestring or nullThe advertiser's own reference for the object.
    published_atstring (date-time) or nullWhen the listing was published, with Flatfox's own time zone offset.
    created_atstring (date-time) or nullWhen the listing was first created.
    fetched_atstring (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:

    JSON
    {
      "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.

    JSON
    {
      "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.

    JSON
    {
      "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.