# METHODOLOGY: Can AI read your hotel? (Study A, stage 1) Status: method and definitions for the report at https://th1.ai/research/can-ai-read-your-hotel-2026. No individual site is named. ## 1. Question For a sample of independent hotel and rental websites, can an AI crawler find, read and act on the site? The scan measures eight things from the public web: robots.txt rules per AI crawler, a bot-wall test, the readable text in the raw HTML, head tags, schema.org data, `sitemap.xml`, `llms.txt`, and the booking path. ## 2. Source and sampling - **Source:** OpenStreetMap (ODbL). Objects (nodes, ways, relations) with `tourism=hotel` (type "hotel") or `tourism=apartment`, `tourism=chalet`, `tourism=guest_house` (type "rental"), and a `website` or `contact:website` tag. - **How the data was read.** Overpass API (`overpass-api.de`, `overpass.kumi.systems`; raw responses cached) for Europe, Canada and part of the United States. Two reasons forced a change for the rest: the public Overpass servers timed out on whole-country and large-tile queries, and refused connections for hours. From 13 Nov 2026 the missing strata (rest of the United States, Mexico, and all of "rest of world") came from **Geofabrik country and state extracts** (`.osm.pbf`), filtered on TH1's VPS with `osmium tags-filter` for the same tags. Same tags, same cleaning, a different transport. The `.pbf` files were deleted after filtering. - **Large countries were read in tiles, not in full.** For FR, DE, IT, ES, PT, NL, AT, CH, GR, SE, PL and CA, and for the 4 US tiles, Overpass was queried in random 4-degree tiles (random order from the seed) until about 1,500 objects and 3 non-empty tiles were cached (6 for FR and DE; at most 24 tiles tried). For those countries the candidate pool is therefore a **cluster sample of several regions**, not the whole country. The United States is read as 7 whole states (FL, TX, NY, CO, NC, WA, AZ) plus 4 Overpass tiles, not the whole country; California and the other states are missing. Mexico is the Geofabrik extract plus a few cached Overpass tiles. The Geofabrik extracts of AU, NZ, TH, ZA, AR, CL, VN, MA, TR and CO are whole countries. - **Regions and countries.** Europe (12): GB, FR, DE, IT, ES, PT, NL, AT, CH, GR, SE, PL. North America (3): US, CA, MX. Rest of world (10): AU, NZ, TH, ZA, AR, CL, VN, MA, TR, CO. Japan, Brazil, India and Indonesia were left out because their Geofabrik extracts are over 1.5 GB and the Overpass route failed. No Asian country except TH and VN, no African country except ZA and MA. "Rest of world" is a convenience set, not the world. - **Quota:** 1,000 hotels and 500 rentals, 40 % Europe / 30 % North America / 30 % rest of world, inside each type and region split equally across countries (shortfalls are given to the other countries of the region). Result: see `data/sample_summary.json`; every stratum reached its quota. - **Cleaning** (`build_sample.py`, `config.py`): the first URL of the tag is used; the domain is reduced to its registrable domain (built-in list of second-level suffixes, not the full Public Suffix List); one row per domain (the first country/type that reaches it); OTA, platform, social, directory, site-builder placeholder and booking-vendor hosts are dropped (`EXCLUDED_HOSTS`); big-chain brand domains are dropped and counted (`CHAIN_HOSTS`). Dropped: see `sample_summary.json` (chain objects and platform objects are counted per country). The chain list is a manual list; franchise sites on their own domains stay in. - **Random draw:** Python `random.Random` with a separate stream per stratum cell, seeded `"---"`, `SEED = 20261112` (`config.py`). The full candidate list is `data/candidates.csv`, the draw is `sample.csv`. - **Sites that fail stay in the data** as failed. After the scan, a sampled domain that redirects to a chain, an OTA/platform or a parked-domain marketplace is removed from every measure and counted on its own row in STATS.md. ## 3. The scan Code: `scan.py`, `checks.py`. Python 3 standard library + `requests`. **No LLM, no paid service, no rendering.** Run on TH1's VPS, 13 Nov 2026 (UTC), one visit per site, 8 sites in parallel, about 0.4 s between requests to one site. - **User agent:** `TH1-AIReadabilityStudy/1.0 (+https://th1.ai; research scan, one visit)`. No form submit, no login, no booking call. - **At most 6 requests per site:** (1) `/robots.txt`, (2) home page, (3) home page again with a `GPTBot/1.1` user agent, (4) `/sitemap.xml`, (5) `/llms.txt`, (6) one extra page from home-page links (a rooms/accommodation page first, else an FAQ page, else a contact page). Timeouts: 8 s connect, 12 s read, 15 s total per request. Each request may follow up to 5 redirects (not counted as separate requests; the number of hops is recorded). The home page is read from the URL in OSM, so a site that fails on its OSM address is "failed", even if another address would work. - **robots.txt obeyed:** if the file disallows the scanner's user agent or `*` for the home path, only `robots.txt` is fetched and the site is marked "disallowed the scanner" (12 sites). Extra pages are skipped when robots.txt disallows them. - **Departure from the contract:** the contract lists "up to 2 pages" and the bot-wall request "inside the 6". Those add up to 7. We kept 6 and fetched **one** extra page instead of two. FAQ and rooms pages are therefore under-sampled, and FAQPage / schema numbers are lower bounds. ## 4. Definitions - **AI crawlers (13):** GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-User, Claude-SearchBot, PerplexityBot, Perplexity-User, Google-Extended, Applebot-Extended, Amazonbot, Meta-ExternalAgent, CCBot. Bingbot and Googlebot are reported as a comparison. - **Blocked:** the bot's applicable group disallows `/` after Allow/Disallow resolution (longest matching pattern wins, Allow wins a tie, `*` and `$` supported). The group is the one that names the bot exactly, else the `*` group. **Explicit** = the bot is named in a rule; **only through `*`** = no AI bot is named in a blocking rule and the block comes from the `*` group. No robots.txt (HTTP 404) means nothing is disallowed. A robots.txt that could not be fetched (network error, 5xx, 401/403) gives no decision and the site is left out of the robots rows. - **Bot wall:** the home page is fetched a second time with a `GPTBot/1.1` user agent string. "Walled" = that response is a CDN/WAF challenge page (Cloudflare, Akamai, Imperva, Sucuri, DataDome, PerimeterX or a generic captcha page; on a 200 response the page must also have under 80 visible words) or HTTP 401/403/429. "Only GPTBot" = the scanner's own user agent got a normal page. - **Readable text:** visible words in the raw home page HTML (script, style, noscript, svg, template, head removed). For Chinese, Japanese, Korean and Thai text, 2 characters count as 1 word. Under 50 = empty shell, 50-199 = thin, 200 and more = readable. A home page that is a bot-wall page or returns 401/403/429 to the scanner is "no content (bot wall)"; other 4xx/5xx is "no content (HTTP error)". An SPA root (`div#root`, `#__next`, ``, `#__nuxt`, `div#app`) with under 50 words is counted separately. - **Lodging schema:** JSON-LD (including `@graph` and nested nodes) or schema.org microdata with a lodging type: Hotel, LodgingBusiness, Resort, BedAndBreakfast, Motel, Hostel, VacationRental, Apartment, House, SingleFamilyResidence, Campground, CampingPitch, Accommodation, Suite, Room, HotelRoom, SkiResort. Field count = how many of 10 fields (name, address, telephone, image, priceRange, starRating or aggregateRating, geo, url, checkinTime, amenityFeature) the best single lodging JSON-LD node fills. Counted on the home page and the one extra page. - **sitemap.xml:** HTTP 200 and a parseable `urlset` or `sitemapindex` at `/sitemap.xml`. **llms.txt:** HTTP 200, not HTML, not shaped like a robots.txt, and shaped like markdown (first line a heading, a quote or "Generated by", or a markdown link in the file). Many platforms now write this file automatically, so "present" does not mean the owner chose it. - **Booking link an agent can follow:** a plain `` to a known booking-engine host, or a link whose text or path has booking wording (book, reserve, availability and the same words in other languages). Not counted: `href="#"`, `javascript:`, buttons, forms, script embeds (reported as "form / embed / JavaScript only"). A link to an OTA is reported separately. **Booking engine:** list in `config.py` (`BOOKING_ENGINES`), matched on link, iframe/script and form-action hosts. **Technology:** generator tag and markers in the raw HTML (WordPress, Wix, Squarespace, Webflow, Shopify, Joomla, Drupal, Jimdo, Weebly, GoDaddy, Lodgify, Duda, Next.js, Nuxt, Gatsby); "custom SPA" = SPA root with no other marker. ## 5. Quality control - 37 unit tests on saved HTML, robots.txt, sitemap and llms.txt fixtures (3 or more fixtures per check, each with a negative): `python3 -m unittest discover -s tests`. - Pilot of 20 sites, then a hand check of 30 random sites against a separate `curl` read: 100 % agreement on robots (24/24), text class (22/22), lodging schema (22/22), booking link (22/22) after two scanner bugs were fixed (a Cloudflare script marker taken for a challenge page; `booking.com` matched inside `secure-hotel-booking.com`). Details and limits: `VALIDATION.md`. A later look at `llms.txt` hits found two soft-404 / parked-domain false positives; the check was tightened and the whole sample rescanned. - Results are written per site as JSON lines; a rerun skips finished sites. ## 6. Limits (read before quoting any number) 1. **OSM coverage bias.** Only places that an OSM mapper tagged with a website. Sites with a website tag are probably more digitally active than the average hotel. Coverage differs by country (very dense in DE, sparse in some of the rest-of-world countries) and OSM websites are sometimes stale: 18 % of the sampled domains gave no HTTP response (mostly DNS errors). 2. **Cluster sample inside large countries** (section 2), and equal country weights inside a region. Numbers are for this sample, not for "hotels in Europe". Do not weight the totals into a world figure. 3. **One visit, one origin.** A single scan from a single data-centre IP on 13 Nov 2026. WAFs often treat data-centre addresses and unverified bot user agents differently from residential visitors and from the real crawler. 4. **The bot-wall test uses a spoofed `GPTBot/1.1` user agent from a non-OpenAI address.** A 403 means "refuses a client that claims to be GPTBot from this address", not "refuses the real GPTBot". Some WAFs verify the source address of known bots and would let the real crawler in; others block it. The number is an upper bound on what a real crawler meets. 5. **Raw HTML only.** No JavaScript runs. A site that builds its text in the browser shows as empty shell or thin although a person sees a full page. Some AI crawlers do render JavaScript; the raw-HTML view is the lowest common reading. 6. **robots.txt is a declaration, not proof of enforcement.** A site that blocks a bot may still be fetched by it, and a site that allows a bot may block it at the network layer (that is what the bot-wall test looks at). 7. **Hotels vs rentals follows OSM tags, not the business model.** A guest house is a "rental" here. 8. **One extra page, not two** (section 3), so FAQPage, schema and booking-link numbers on rooms and FAQ pages are lower bounds. 9. **Domain list limits.** Chain brands are found by a manual list; a franchise on its own domain stays in. Registrable domains use a short list of second-level suffixes, so an unusual suffix can group two sites under one name. 10. **A 95 % Wilson interval** is shown for each percentage. It covers sampling noise inside the sample under random sampling; it does not cover the biases above.