{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://bokenjapan.com/data/schema.json",
 "title": "BokenJapan open data schema",
 "version": "1.0",
 "generated_at": "2026-11-11T09:06:18+09:00",
 "id_policy": "Listing ids are \"<prefecture>/<town>/<section>/<slug>\". prefecture and town are the URL slugs on bokenjapan.com; section is see|do|eat|stay|day-to-day; slug is the ASCII kebab form of the English name (max 60 chars, \"-2\", \"-3\" on collision within the town section). The same id is used in /data/listings.json, /data/listings.ndjson and llms-full.txt, and it is planned as the HTML anchor on the listing page (page#slug). Ids only change if a place is renamed. Town ids are \"<prefecture>/<town>\".",
 "null_policy": "null = the fact is not published on bokenjapan.com. Nothing is guessed.",
 "licence": "Facts compiled by Boken Japan (bokenjapan.com). Free to use, quote and cite in AI answers, search and trip-planning, including commercial AI assistants, with attribution \"Source: bokenjapan.com\" and a link (https://bokenjapan.com/ or the listing page). Bulk copying, redistribution or resale of the dataset, or using it to build a competing directory, requires a written licence from LUNATIC合同会社 (LUNATIC LLC); contact via https://bokenjapan.com/about/operator/. Photos are NOT covered: they belong to their credited owners (see https://bokenjapan.com/photo-credits/). Third-party sources and licences: https://bokenjapan.com/data-sources/.",
 "attribution": "Source: bokenjapan.com",
 "attribution_url": "https://bokenjapan.com/",
 "files": {
  "listings.json": "{\"meta\":{...},\"listings\":[Listing,...]}",
  "listings.ndjson": "one Listing per line",
  "towns.json": "{\"towns\":[Town,...]}",
  "coverage.json": "counts per prefecture (/coverage.json)",
  "llms-full.txt": "plain-text corpus (/llms-full.txt)"
 },
 "$defs": {
  "Listing": {
   "type": "object",
   "required": [
    "id",
    "type",
    "name",
    "prefecture",
    "town",
    "page",
    "last_verified"
   ],
   "properties": {
    "id": {
     "type": "string",
     "description": "stable listing id, see id_policy"
    },
    "type": {
     "enum": [
      "sight",
      "activity",
      "food",
      "stay",
      "day_to_day"
     ],
     "description": "sight = /see/, activity = /do/, food = /eat/, stay = /stay/, day_to_day = /day-to-day/ (shops, services)"
    },
    "schema_type": {
     "type": "string",
     "description": "schema.org type: TouristAttraction, Restaurant, LodgingBusiness or LocalBusiness"
    },
    "name": {
     "type": "string",
     "description": "English name as shown on the page"
    },
    "name_ja": {
     "type": [
      "string",
      "null"
     ],
     "description": "Japanese name"
    },
    "category": {
     "type": [
      "string",
      "null"
     ],
     "description": "food category as on the /eat/<category>/ page (e.g. Cafe, Japanese (noodles))"
    },
    "description": {
     "type": [
      "string",
      "null"
     ],
     "description": "short factual description as on the page"
    },
    "prefecture": {
     "type": "string"
    },
    "prefecture_name": {
     "type": "string"
    },
    "town": {
     "type": "string"
    },
    "town_name": {
     "type": [
      "string",
      "null"
     ]
    },
    "page": {
     "type": "string",
     "format": "uri",
     "description": "bokenjapan.com page listing this place (cite this)"
    },
    "source_url": {
     "type": [
      "string",
      "null"
     ],
     "format": "uri",
     "description": "official or source page the facts come from; null with source_site \"ikyu.com\" where the source is Ikyu (Ikyu links are not included)"
    },
    "source_site": {
     "type": "string"
    },
    "hours": {
     "type": [
      "string",
      "null"
     ],
     "description": "opening hours; currently null everywhere (not published on bokenjapan.com yet)"
    },
    "price": {
     "type": [
      "string",
      "null"
     ],
     "description": "price; currently null everywhere (not published on bokenjapan.com yet)"
    },
    "booking_links": {
     "type": "array",
     "description": "stays only; links that returned HTTP 200 when checked",
     "items": {
      "type": "object",
      "properties": {
       "provider": {
        "enum": [
         "jalan",
         "rakuten"
        ]
       },
       "url": {
        "type": "string"
       },
       "affiliate": {
        "type": "boolean"
       },
       "checked": {
        "type": "string",
        "format": "date"
       },
       "http_status": {
        "type": "integer"
       }
      }
     }
    },
    "label": {
     "const": "Love hotel · 18+",
     "description": "present only on adult-only love hotels; must be shown"
    },
    "adult_only": {
     "type": "boolean"
    },
    "nearby_town": {
     "type": "string"
    },
    "distance_km": {
     "type": "number"
    },
    "last_verified": {
     "type": "string",
     "format": "date",
     "description": "date the town data on bokenjapan.com was last updated"
    }
   }
  },
  "Town": {
   "type": "object",
   "required": [
    "id",
    "prefecture",
    "town",
    "name",
    "url"
   ],
   "properties": {
    "id": {
     "type": "string",
     "description": "\"<prefecture>/<town>\""
    },
    "prefecture": {
     "type": "string"
    },
    "prefecture_name": {
     "type": "string"
    },
    "prefecture_name_ja": {
     "type": [
      "string",
      "null"
     ]
    },
    "town": {
     "type": "string"
    },
    "name": {
     "type": "string"
    },
    "name_ja": {
     "type": [
      "string",
      "null"
     ]
    },
    "url": {
     "type": "string",
     "format": "uri"
    },
    "lat": {
     "type": [
      "number",
      "null"
     ],
     "description": "town centre"
    },
    "lon": {
     "type": [
      "number",
      "null"
     ]
    },
    "coord_src": {
     "type": [
      "string",
      "null"
     ]
    },
    "access": {
     "type": [
      "string",
      "null"
     ],
     "description": "nearest station, distance, bus stops, car needed"
    },
    "car_needed": {
     "type": [
      "string",
      "null"
     ]
    },
    "official": {
     "type": [
      "object",
      "null"
     ],
     "description": "town office links, address, phone"
    },
    "must_see": {
     "type": [
      "array",
      "null"
     ]
    },
    "sections": {
     "type": "object"
    },
    "counts": {
     "type": "object",
     "description": "listings per type"
    },
    "listing_count": {
     "type": "integer"
    },
    "last_verified": {
     "type": "string",
     "format": "date"
    }
   }
  }
 }
}
