# Habitaclia Barcelona Real Estate Listings

> Habitaclia Barcelona Real Estate Listings is a paid API for AI agents from api.jobsproperty-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns the first page of Barcelona homes for sale from habitaclia.com, including title, asking price in EUR, rooms, surface area in m², location, and listing URL.

## Facts

- Endpoint: GET https://api.jobsproperty-api.workers.dev/api/realestate/habitaclia-spain?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/habitaclia-barcelona-real-estate-listings-31d1778b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ABXC7l_5l6HMpJQ5h4Wun

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability habitaclia-barcelona-real-estate-listings-31d1778b
```

Example prompt: Pull the latest Barcelona homes for sale from habitaclia.com — I want to see up to 20 listings with their prices in euros, number of rooms, surface area, and location.

## When to prefer this

Choose this endpoint when you need structured Barcelona residential property listings from habitaclia.com without a dedicated API key or subscription. It is the best option when you want price, size, room count, and location data for Barcelona homes in a single cheap call. Prefer alternatives if you need listings outside Barcelona, rental properties, or deeper pagination beyond the first results page.

## Known failure modes

- habitaclia.com page structure changes may break embedded JSON parsing, returning empty or malformed results
- Requesting more than 30 listings returns an error or defaults back to the maximum
- If habitaclia.com is temporarily unavailable or rate-limits the scraper, the endpoint may return no listings
- Network timeout from the Cloudflare Worker scraper if habitaclia takes too long to respond

## How this service works

Barcelona homes for sale (first results page) from the public habitaclia.com search page: title, asking price in EUR, rooms, surface in m2, location and listing link. Read from the page's embedded state JSON; Habitaclia has no free public API.

## Output

A JSON object containing a list of Barcelona property listings (up to 30), each with a unique ID, listing URL, title, location, price in EUR, number of rooms, and surface area in m². Also includes the total count, the source URL, and a timestamp of when the data was checked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "How many listings, 1 to 30 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "source": "https://www.habitaclia.com/viviendas-barcelona.htm",
  "listings": [
   {
    "id": "cef27669-3dc0-4377-9a7e-1f58cacdd38a",
    "url": "https://www.habitaclia.com/a/cef27669-3dc0-4377-9a7e-1f58cacdd38a?lo=54",
    "rooms": 2,
    "title": "Piso en Can Baró",
    "location": "Barcelona - Can Baró",
    "priceEur": 136000,
    "surfaceM2": 60
   },
   {
    "id": "88f1263b-ee4a-4fae-b3ab-c0bd08ef7d14",
    "url": "https://www.habitaclia.com/a/88f1263b-ee4a-4fae-b3ab-c0bd08ef7d14?lo=54",
    "rooms": 1,
    "title": "Piso en Carmel",
    "location": "Barcelona - Carmel",
    "priceEur": 122000,
    "surfaceM2": 40
   }
  ],
  "checkedAt": "2026-10-23T09:37:01.101Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/habitaclia-barcelona-real-estate-listings-31d1778b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jobsproperty-api.workers.dev](https://www.zero.xyz/host/api.jobsproperty-api.workers.dev/llms.txt)
