# Place schema (/docs/schema/place) {/* AUTO-GENERATED. Do not hand-edit. Source: packages/social-api/src/docs/generate-schema-pages.ts Regenerate with: pnpm -F @repo/social-api generate:docs Field tables derive from the canonical Zod schemas (packages/social-api/src/schemas/canonical.ts); availability + equivalence derive from the registry fieldMaps. */} Place schema [#place-schema] Every SocialCrawl endpoint that returns a place or business gives you this exact shape, whatever the source platform. Write your parser once and the same code reads place data from every platform below. That is the unified schema: one contract instead of a dozen raw upstream formats. Field reference [#field-reference] | Field | Type | Nullable | Description | | ------------------------- | -------------------- | -------- | ------------------------------------------------------------------- | | `id` | `string` | No | Place ID (Google cid for a business, hotel\_identifier for a hotel) | | `name` | `string` | Yes | Business / hotel name | | `url` | `string` | Yes | Website or canonical URL | | `category` | `string` | Yes | Primary category (e.g. "Coffee shop", "Hotel") | | `rating.value` | `integer` | Yes | | | `rating.max` | `integer` | Yes | | | `reviews_count` | `integer` | Yes | Number of ratings | | `price_level` | `string` | Yes | Price band ("inexpensive" / "$$" / null) | | `address` | `string` | Yes | | | `phone` | `string` | Yes | | | `latitude` | `integer` | Yes | | | `longitude` | `integer` | Yes | | | `verified` | `boolean` | Yes | Claimed-business flag (Google is\_claimed) | | `description` | `string` | Yes | | | `image_urls` | `string or string[]` | Yes | Union: string \| array \| null | | `categories` | `string[]` | Yes | | | `hotel.stars` | `integer` | Yes | | | `hotel.stars_description` | `string` | Yes | | | `hotel.check_in_time` | `string` | Yes | | | `hotel.check_out_time` | `string` | Yes | | | `hotel.amenities` | `object[]` | Yes | | | `hotel.review_topics` | `object[]` | Yes | | | `hotel.prices` | `object[]` | Yes | | Extension fields (`ext`) [#extension-fields-ext] Platform-specific passthrough. Each field is present only on the platforms that expose it and is absent everywhere else, so treat every `ext.*` field as optional. These carry the richer, per-platform signals the unified leaves cannot hold, and the join keys that chain endpoints together. | Field | Type | Nullable | Description | | -------------- | ---------- | -------- | ----------- | | `ext.distance` | `integer` | Yes | | | `ext.status` | `string` | Yes | | | `ext.timezone` | `string` | Yes | | | `ext.hours` | `object[]` | Yes | | Platform availability [#platform-availability] 3 platforms return the `Place` shape. `id` are never null on any platform. The fields below vary: **yes** means the platform populates it (the value may still be null); a blank means the platform never provides it, so it is always null.