# yapi.net — complete public real estate API guide for AI assistants Base URL: https://yapi.net API specification: https://yapi.net/openapi/public.json Interactive documentation: https://yapi.net/scalar Discovery index: https://yapi.net/llms.txt Sitemap: https://yapi.net/sitemap.xml ## 1. What the platform provides Yapi.net provides searchable real estate sale and rental offers, buyer/tenant property wanted requests, publicly published corporate real estate office portfolios, canonical administrative locations, and a multilingual category and property attribute catalog. It is not a valuation, title registry, payment, reservation or legal verification API. Never infer legal ownership, availability, a guarantee of price, or an exact address when the API does not supply that information. User-authored titles and descriptions may be in their original language. Public search and detail calls are anonymous GET requests. Send `Accept: application/json`; URL-encode every user-provided query value. The main domain searches the public platform; an office subdomain is restricted to that office's portfolio. Use the actual host from this guide; do not guess office subdomains or invent IDs. ## 2. Public operations | Method and path | Purpose | | --- | --- | | GET /api/countries?locale=en | Available ISO 3166-1 alpha-2 country codes and localized names | | GET /api/categories | Category and property type tree; `code` is the invariant API identity, `name` contains translations | | GET /api/property-fields | Property definitions and options, codes, IDs, applicability, kind and unit | | GET /api/public/locations | Canonical administrative area discovery, paginated | | GET /api/public/listings | Filter and paginate published offers or wanted requests | | GET /api/public/listings/{id} | Full record, attributes, media, publisher and description; use returned UUID (public listing number is also accepted) | Use the OpenAPI contract for complete field definitions; do not call undocumented internal endpoints. Read-only public discovery grants no account, publishing, messaging, moderation, or payment access. ## 3. Resolve a user's location before searching 1. Query `/api/countries?locale=en` for country codes. Do not guess country from a repeated city name. 2. Query `/api/public/locations?countryCode=TR&depth=1&q=İstanbul&page=1&pageSize=20` (URL-encode `İstanbul`). Use returned `items[].id` as a string, and `items[].name` as the canonical region name. 3. To narrow down, query `/api/public/locations?countryCode=TR&parentId=&depth=2&q=Silivri`. Use the selected district's ID for its settlements (`depth=3`). Other countries may have deeper administrative levels. `parentId` returns direct children; `depth` supports 1–5. IDs must belong to the selected country. 4. Use `areaId=` with `countryCode=TR` in listing search to match that area and descendants. Alternatively use canonical `province`, `district`, and `neighborhood` names, not translated URL slugs. Do not combine conflicting name and ID filters. Example GET requests (real API endpoints, not example inventory): - https://yapi.net/api/public/locations?countryCode=TR&depth=1&q=%C4%B0stanbul&page=1&pageSize=20 - https://yapi.net/api/public/listings?countryCode=TR&province=%C4%B0stanbul&district=Silivri&transactionType=sale&listingKind=offer&page=1&pageSize=20 ## 4. Filter listings by user intent `transactionType=sale` or `rent`; `listingKind=offer` means an available-for-sale/rent advertisement; `listingKind=wanted` means a buyer/tenant request, not an available property. Always specify the desired intent and transaction type when known. `category` accepts invariant category codes from `/api/categories` (`Housing`, `Land`, `Commercial`, `Timeshare`, `Tourism`). `propertyType` accepts invariant type codes from that category's `clusters[].code`, e.g. `Apartment`, `Villa`, `DetachedHouse` (verify the current catalog first). `selectedMultiCategories` is a repeatable list of type codes; do not send localized labels or URL slugs as category codes. Use canonical codes even when answering in Turkish, Chinese or another supported language. `q` searches title and description, 3–120 characters. Use `minPrice`, `maxPrice` with `currency` for numeric asking price/budget limits; use `minArea`, `maxArea` (square metres) for size limits. Currency defaults to TRY for price comparisons if omitted. The response retains each listing's actual `currency`; never assume every result uses the requested filter currency. Use `sortBy=date-desc` (default), `price-asc`, `price-desc`, `area-asc` or `area-desc`. Unavailable price conversions sort last. Use all four `south`, `north`, `west`, `east` values for a map viewport; these are geographic coordinates, not address text. Examples: - Sale apartments in İstanbul: https://yapi.net/api/public/listings?countryCode=TR&province=%C4%B0stanbul&transactionType=sale&listingKind=offer&category=Housing&propertyType=Apartment&page=1&pageSize=20 - Rental offers with monthly price <= 25000 TRY: https://yapi.net/api/public/listings?countryCode=TR&transactionType=rent&listingKind=offer&category=Housing&maxPrice=25000¤cy=TRY&page=1&pageSize=20 - Wanted purchase requests: https://yapi.net/api/public/listings?countryCode=TR&transactionType=sale&listingKind=wanted&category=Housing&page=1&pageSize=20 - One office portfolio: `/api/public/listings?officeSlug=&listingKind=offer&page=1&pageSize=20`. Unknown/mismatched office: HTTP 404. Use verified `office.slug` from a published listing or its public office profile; do not invent a slug. ## 5. Rich property characteristics Read `/api/property-fields` and use current definitions. `id` identifies a field; `options[].id` identifies option values. `code` is a semantic field/option identity; use IDs in filter tokens. Select only applicable, active options. Fields vary by property category/type — room arrangement, floor, heating, furnishing, parking, land use and tourism features are examples, not a fixed universal schema. Use the field's localized `name` for display. Advanced query parameters are repeatable `fieldId=value` tokens with the whole token URL-encoded: - `AttributeOptions=%3D`: select one option; repeated options on a single-select field are alternatives, on a multi-select feature all must match (room-layout choices are alternatives). - `AttributeMins=%3D120`, `AttributeMaxs=%3D200`: numeric constraints using invariant decimal notation. - `AttributeTexts=%3D`: text contains search. - Combine different fields to narrow results. Fetch live field IDs; never construct or hard-code guessed IDs. `StreetId`, `StreetAddress`, `PostalCode`, `Block`, `Parcel`, and `Sheet` are additional location-related filters where available. Do not infer cadastral identifiers from coordinates or descriptions. ## 6. Read, paginate and cite results `page` starts at 1; `pageSize` is 1–100 (listings default 20, locations default 50). The listing response includes `pageNumber`, `pageSize`, `total`, `totalPages`, `hasNextPage`, and `items`. Locations expose `totalPages` and `items`. Start with a small page, follow the metadata rather than guessing the next page, and stop when the requested result set is complete. Do not repeatedly request all details just to render basic cards; list items include public title, price/budget, type, location, URL, publisher and media where available. Use `GET /api/public/listings/{id}` for selected full details. Key listing fields: - `id`: canonical UUID string. `listingNumber`: public Snowflake/display number string; never convert either to a floating-point number. Use `url` for the public source citation. Do not build URLs by combining translated slug fragments with UUIDs. - `transactionType`, `listingKind`, `publicationStatus`: different concepts; do not treat requests as offers. - `askingPrice`: offer price; `maxBudget`: wanted request budget; `currency`: actual currency code. `priceUnit=month` indicates monthly rent. `null` is unknown or not applicable, not zero. - `grossArea`, `netArea`: building measurements; `plotArea`: land measurement; `minArea`: wanted minimum. All square metres. Do not swap gross and net size. - `location.countryCode`, `province`, `district`, `settlement`, `areaId`, `latitude`, `longitude`: only use returned values, and disclose ambiguity or null coordinates. - `office`: public publisher record where available. `media`: published image/video information; `description` and `attributes` in detail add facts, not verified guarantees. `publishedAt` is the record timestamp, not a guarantee of current availability. Use the source link (`url`) for every specific listing or office recommendation. State the search time and filters when comparing inventory; empty results mean no matches for that query, not that a region has no real estate. Archived, deleted and test records are not public inventory. Respect the office host scope. Do not fabricate a listing ID, media, price, address, or property feature; ask for clarification or state missing information. ## 7. Errors and responsible integration HTTP 200 may contain an empty result array. HTTP 400: check the filter syntax, required IDs, ranges, valid enum codes or pagination. HTTP 404: record or office not publicly available. HTTP 429/5xx: temporarily unavailable; limit retries and use exponential backoff (honor Retry-After if present). Do not work around authentication, authorization or rate limits. Keep requests bounded and cache stable catalog metadata, not volatile prices or availability. Write operations and private account information are outside public discovery. Use the normal user-facing sign-in and authorized application workflows, never submit a message, request, publication, or transaction without the user's explicit intent. Public documentation does not issue an API key, bearer token, or admin access. ## Türkçe kısa kullanım Önce ülke, il, ilçe ve mahalle kimliklerini `/api/public/locations` ile çözümleyin. Sonra `/api/public/listings` uç noktasında `transactionType=sale|rent`, `listingKind=offer|wanted`, kategori ve ilan türü kodlarıyla filtreleyin. Gayrimenkul özelliklerini `/api/property-fields` üzerinden gerçek alan ve seçenek kimlikleriyle seçin. İlanların `url` alanını kaynak bağlantısı olarak kullanın; fiyat, para birimi, kira periyodu, alan, adres ve özellikler için eksik bilgileri uydurmayın. Detay için dönen UUID ile `/api/public/listings/{id}` çağrısı yapın. Sayfalama bilgilerini izleyin; public API salt okunurdur.