Thailand buildings, neighborhoods and open listings as JSON. Free to read, no key, and nothing about a person.
The BAANLYY data API is a free, read-only JSON service for developers, researchers, relocation teams and AI systems. It returns the same building, neighborhood and open listing records, and the same monthly area rent figures, that a signed-out visitor can read on baanlyy.com, without a key or an account, and it never returns anything about a person.
Use it when you want the records themselves and not the pages: a list of condominium buildings in a city, the written profile of a neighborhood, or the homes for rent and for sale that are open right now. The data comes from the same database as the building directory, the neighborhood guides and the homes for rent and for sale, and how those records are compiled is set out in the data methodology.
Send a GET request to any URL below and read the JSON answer. There is nothing to install and no header to set. The first URL is the index: it lists every resource with its fields, its filters and the current limits, so a program can read the rules before it asks for data.
The API has 4 resources today. Each one returns a short, fixed list of fields. A field that is not listed here cannot be asked for. A field comes back null or empty when the record does not hold it yet: the API returns what is on file and does not fill gaps. Many area records hold a name, a city and an overview today, with the transport, school and hospital notes still to be written.
https://baanlyy.com/api/intelligence/v1/buildingsCondominium and apartment buildings in the BAANLYY building database: name, city, developer, year built, floors, units, facilities.
Fields:
id, name, slug, area_id, city, developer, year_built, total_floors, total_units, description, facilities
Filters:
| slug | One building by its slug. |
| city | City name, any letter case (Bangkok, Chiang Mai). |
| year_built | Completion year. |
https://baanlyy.com/api/intelligence/v1/areasNeighborhoods and districts: name, city, overview, transport, schools, hospitals, shopping, dining, attractions.
Fields:
id, name, slug, city, overview, transport, schools, hospitals, shopping, dining, attractions
Filters:
| slug | One area by its slug. |
| city | City name, any letter case. |
https://baanlyy.com/api/intelligence/v1/listingsHomes for rent and for sale that are open on baanlyy.com now: type, city, bedrooms, size, asking rent or price, and the page to read more. No address, no map point, no agent or owner details.
Which rows: Only homes that are open on baanlyy.com now: not a draft, not archived, not rented or sold, and listed by an approved agent.
Fields:
id, slug, url, title, ptype, city, area_id, building_id, bedrooms, bathrooms, size_sqm, furnishing, pet_policy, deal, price, currency, created_at, updated_at
Filters:
| slug | One listing by its slug. |
| city | City name, any letter case (Bangkok, Phuket). |
| ptype | Property type: condo, apartment, villa, townhouse, penthouse, serviced_apartment, house, commercial, land, duplex. |
| bedrooms | Bedroom count. 0 is a studio or a count the agent did not give. |
| area_id | Listings in one area (the id from the areas resource). |
| building_id | Listings in one building (the id from the buildings resource). |
| deal | rent or sale. |
https://baanlyy.com/api/intelligence/v1/rent_statisticsMonthly asking rent figures for each area, counted from the homes for rent on baanlyy.com: one row per area per month. captured_on is the first day of the month. sample_count is the number of homes counted. rent_low, rent_median and rent_high are the 25th percentile, the median and the 75th percentile of the monthly asking rent in Thai baht; persqm_low, persqm_median and persqm_high are the same three points in baht per square meter per month. Asking rents, not achieved rents.
Which rows: Only months in which at least 4 homes were counted in the area. A figure from fewer homes is never served. A month whose upper rent point is 500,000 baht or more is left out too: a figure that size is a sale price entered as a rent.
Fields:
area, area_name, captured_on, sample_count, rent_low, rent_median, rent_high, persqm_low, persqm_median, persqm_high
Filters:
| area | One area by its slug (the slug from the areas resource). |
Every resource takes three more parameters. limit is the number of rows, from 1 to 25; a larger number is cut to 25. offset is the row to start from, from 0 to 10,000. fields is a comma list of the resource's own fields, for when you want only some of them.
To read everything, start at offset 0 and keep sending the next_offset from each answer until it is null. A filter value may hold letters, digits, spaces and the characters period, apostrophe, ampersand and hyphen, up to 80 characters. A city is matched exactly, in any letter case. Any parameter that is not on the resource's list is refused with a 400 answer, so a typing mistake never returns the wrong rows without telling you.
Each caller may make 20 calls a minute and 500 calls a day, and one call returns up to 25 rows. Refused calls count too. When you are over a limit the answer is 429 with a Retry-After header that gives the seconds to wait. The limits exist so the API stays quick for everyone and so it cannot be used to copy the whole site in an afternoon.
Nothing on this page needs a key. Optional. BAANLYY can give a named partner or researcher a key with higher call limits. A key changes the limits and nothing else: the resources, fields and rows are the same. Send it in the Authorization header as Bearer, never in the URL. A key is a long string that starts with blk_ and travels in one header, Authorization: Bearer blk_.... A call that carries a good key is counted against that key's own limits, which can be set up to 600 calls a minute and 100,000 calls a day, and the index then shows them under key_limits. One call still returns up to 25 rows. A key that is not valid gets a 401 answer and no data. BAANLYY stores only a scrambled form of each key, so a lost key is replaced, not looked up. Keys are not on general offer yet: to ask about one, write to hello@baanlyy.com.
Every data answer is one JSON object with these fields, in this order:
| Field | What it holds |
|---|---|
| api, version, resource | Which API and which resource answered. |
| publisher, license | Who publishes the data and the terms for using it. |
| generated_at | The moment the answer was read from the database, in UTC. |
| total | How many rows match your filters in all, not just on this page. |
| limit, offset | The page size and starting row that were applied. |
| next_offset | The offset to send for the next page, or null on the last page. |
| fields | The fields each row carries, in order. |
| data | The rows. |
The answer code tells you what happened. An error answer is a JSON object with one field, error, that says what was wrong in plain words.
| Code | What it means here |
|---|---|
| 200 OK | The call worked. The body carries the data. |
| 400 Bad Request | A parameter is not on the resource's list, a value has a character that is not allowed, or the call tried to say who the caller is (user_id, agent_id, role and similar). Fix the call; sending it again unchanged will fail again. |
| 401 Unauthorized | The call carried an Authorization header and the key in it is not valid: it is mistyped, unknown, switched off or past its end date. The answer has a WWW-Authenticate header. Send the key again correctly, or send no Authorization header to call without a key. |
| 403 Forbidden | The access rules refused the read. No part of the data is returned. |
| 404 Not Found | The resource name is not one the index lists, or the API is switched off. |
| 429 Too Many Requests | The caller is over the minute or the day limit. The Retry-After header gives the number of seconds to wait. |
| 503 Service Unavailable | The call could not be counted, read or recorded, so nothing was returned. The Retry-After header says 60 seconds. A partial answer is never sent. |
The API describes itself in two documents that a program can read, so an AI assistant can be given these calls as tools without anyone typing them out. Both are built from the same list of resources as the API itself and always match what it serves. An AI tool reads exactly what this page lists: buildings, neighborhoods and open listings, and nothing about a person.
Every call of this API in the OpenAPI 3.1 format, for API clients and for a custom GPT in ChatGPT. A GPT Action needs an OpenAPI schema: copy this document into the Actions section of your GPT. This API needs no sign-in, so the authentication step can be skipped.
The same calls as function definitions, once in the shape the OpenAI Responses API takes and once in the Chat Completions shape. Your program passes one list as the tools of its request. When the model asks for a tool, your program makes the GET call listed beside that tool and hands the JSON answer back to the model.
Reading either document counts as one call toward the limits above, and neither takes a parameter. Calls an AI tool makes are counted and recorded like any other call, and the same limits apply.
A listing appears only while a signed-out visitor can find it on the site: it is not a draft, not archived, not rented or sold, and its agent is listed in public. No parameter can change that rule. Newest listings come first.
deal is rent or sale. price is the monthly rent for a rental and the asking price for a sale, in the currency the row names. All three are null when the listing has no price, or when a figure of 500,000 baht or more was typed as a monthly rent. bedrooms and bathrooms are null for land and commercial space; on a home, 0 bedrooms is a studio or a count the agent did not give. area_id and building_id are null on listings that are not matched to an area or a building yet, so city is the reliable place filter. Each row carries url, the listing's page on baanlyy.com.
One row is one area in one month: the figures the area's page in the Area Rent Index showed when the month was recorded. captured_on is the first day of that month and sample_count is the number of homes counted. rent_low, rent_median and rent_high are the 25th percentile, the median and the 75th percentile of the monthly asking rent in Thai baht. persqm_low, persqm_median and persqm_high are the same three points in baht per square meter per month. area is the area's slug, the same slug the areas resource returns, and it is the one filter; area_name is the area's name. Newest months come first.
A home is counted when it is for rent, states a monthly asking rent and a floor size, and is a condo, apartment, hotel residence, penthouse, duplex, townhouse, house or villa. An area has a row for a month only when at least 4 homes were counted, and no parameter can change that rule. A month whose upper rent point is 500,000 baht or more is left out too, because a figure that size is a sale price entered as a rent. These are asking rents, not achieved rents, and the mix of homes changes from month to month. Months recorded before December 2026 also counted commercial space and land for rent. Most areas have figures from October 2026 on.
No street address, no map point, no agent, owner or source details, no description text and no photos. Nothing about a renter, a buyer, an owner or an agent is served by any resource, with a key or without one. A call that tries to say who the caller is, with a parameter such as user_id or agent_id, is refused.
Every call is counted and recorded before any data is returned. The record holds the resource, the names of the parameters and the number of rows. It does not hold the values you sent or your network address. For a call made with a key it also holds which key was used. If a call cannot be counted or recorded, no data is returned. Answers are never cached, so each one is a fresh read.
Free to cite with attribution to BAANLYY (baanlyy.com). Name BAANLYY as the source and link to baanlyy.com, or to the page URL a listing row carries. BAANLYY is operated by BAANLYY LLC. The data is general information, not legal, tax or investment advice, and a listing's price and availability are as the listing agent last gave them.
Price and size filters on listings, listing photos and rent figures by bedroom count are not part of the API today. For figures that are already published, see the Bangkok Rent Index, the Thailand Condo Developer Index and the rest of BAANLYY Research. To ask for a resource or report a field that looks wrong, write to hello@baanlyy.com. Corrections follow the editorial policy.
No. Every resource on this page is open without a key, an account or a sign-in. Send a plain GET request to the URL and read the JSON that comes back. A key only raises the call limits for a named partner or researcher; it opens no extra data.
Each caller may make 20 calls a minute and 500 calls a day, with up to 25 rows in one call. A call over the limit gets a 429 answer with a Retry-After header. Refused calls count toward the limit too.
Today it has 4 resources: buildings, areas, listings, rent_statistics. Buildings and areas are BAANLYY reference records. Listings are the homes for rent and for sale that are open on baanlyy.com at the moment of the call. Rent statistics (rent_statistics) are the monthly rent figures of each area: how many homes were counted, and the 25th percentile, median and 75th percentile of the asking rent.
No. A listing row has no street address, no map point, no agent, owner or source details, no description text and no photos. Nothing about a renter, a buyer, an owner or an agent is served by any resource. Each listing row carries the URL of its page on baanlyy.com, where a person can read more and send an inquiry.
Yes. The terms are: Free to cite with attribution to BAANLYY (baanlyy.com). Name BAANLYY as the source and link to baanlyy.com, or to the page URL a listing row carries.
Every answer is read from the database when you call. Nothing is served from a cache, and each answer carries a generated_at time. A home that is rented, sold or taken down stops appearing on the next call. Rent statistics are recorded once a month for each area, so a month's row does not change after it is written.
Homes for rent on baanlyy.com that state a monthly asking rent and a floor size: condos, apartments, hotel residences, penthouses, duplexes, townhouses, houses and villas. An area has a row for a month only when at least 4 homes were counted, so no figure can be traced to one home. A month whose upper rent point is 500,000 baht or more is left out, because a figure that size is a sale price entered as a rent. The figures are asking rents, not achieved rents, and months recorded before December 2026 also counted commercial space and land for rent.
The deal, price and currency fields are null when the listing has no price, or when the figure typed as a monthly rent is 500,000 baht or more, which is an asking price in the wrong box. The API leaves the field empty instead of guessing which one was meant.
The answer codes this API sends are defined by the two IETF standards above. The two OpenAI pages describe the formats of the two documents for AI tools. Each source is listed with the date we last opened it. What each code means on this API is set out on this page.