{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrapeatlas/json-schema/scrapeatlas-facebook-unified-event-details-response-schema-schema.json",
  "title": "facebookUnifiedEventDetailsResponseSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrapeatlas-facebook-events-api-openapi.yml#/components/schemas/facebookUnifiedEventDetailsResponseSchema",
  "anyOf": [
    {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "series_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "occurrence_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "category": {
              "type": [
                "string",
                "null"
              ]
            },
            "categories": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "is_online": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "is_past": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "event_kind": {
              "type": [
                "string",
                "null"
              ]
            },
            "privacy": {
              "type": [
                "string",
                "null"
              ]
            },
            "start_time": {
              "type": [
                "string",
                "null"
              ]
            },
            "end_time": {
              "type": [
                "string",
                "null"
              ]
            },
            "time_text": {
              "type": [
                "string",
                "null"
              ]
            },
            "duration": {
              "type": [
                "string",
                "null"
              ]
            },
            "price": {
              "type": [
                "string",
                "null"
              ]
            },
            "ticket_url": {
              "type": [
                "string",
                "null"
              ]
            },
            "ticket_source": {
              "type": [
                "string",
                "null"
              ]
            },
            "ticket_provider": {
              "type": [
                "string",
                "null"
              ]
            },
            "location_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "address": {
              "type": [
                "string",
                "null"
              ]
            },
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "city_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "latitude": {
              "type": [
                "number",
                "null"
              ]
            },
            "longitude": {
              "type": [
                "number",
                "null"
              ]
            },
            "attendance_count": {
              "type": [
                "number",
                "null"
              ]
            },
            "attendance_facepile_count": {
              "type": [
                "number",
                "null"
              ]
            },
            "can_view_members": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "host_context_text": {
              "type": [
                "string",
                "null"
              ]
            },
            "hosts": {
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "maxItems": 100
            },
            "host_names": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "creator": {
              "anyOf": [
                {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                {
                  "type": "null"
                }
              ]
            },
            "description_links": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "can_viewer_message": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "is_viewer_host": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "is_canceled": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "cover_photo_url": {
              "type": [
                "string",
                "null"
              ]
            },
            "day_time_sentence": {
              "type": [
                "string",
                "null"
              ]
            },
            "rsvp_style": {
              "type": [
                "string",
                "null"
              ]
            },
            "event_place": {
              "anyOf": [
                {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                {
                  "type": "null"
                }
              ]
            },
            "price_info": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            },
            "current_start_timestamp": {
              "type": [
                "number",
                "null"
              ]
            },
            "start_timestamp": {
              "type": [
                "number",
                "null"
              ]
            },
            "start_time_formatted": {
              "type": [
                "string",
                "null"
              ]
            },
            "interested_count": {
              "type": [
                "number",
                "null"
              ]
            },
            "going_count": {
              "type": [
                "number",
                "null"
              ]
            },
            "data": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            "hydration": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "enriched": {
                  "type": "integer"
                },
                "failed": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "enriched",
                "failed"
              ],
              "additionalProperties": false
            },
            "success": {
              "type": "boolean",
              "const": true
            },
            "status": {
              "type": "string",
              "enum": [
                "success",
                "partial"
              ]
            },
            "requestId": {
              "type": "string",
              "format": "uuid"
            },
            "sourceUrl": {
              "type": "string",
              "format": "uri"
            },
            "fetchedAt": {
              "type": "string",
              "format": "date-time"
            },
            "coverage": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "const": "public_web"
                },
                "complete": {
                  "type": "boolean"
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "order": {
                  "type": "string",
                  "enum": [
                    "newest_first",
                    "oldest_first",
                    "ranked",
                    "relevance",
                    "source_order"
                  ]
                },
                "window": {
                  "type": "object",
                  "properties": {
                    "since": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "until": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [],
                  "additionalProperties": false
                }
              },
              "required": [
                "source",
                "complete",
                "warnings"
              ],
              "additionalProperties": false
            },
            "accounting": {
              "type": "object",
              "properties": {
                "upstreamRequests": {
                  "type": "integer",
                  "minimum": 0
                },
                "responseBytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "durationMs": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "upstreamRequests",
                "responseBytes",
                "durationMs"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "id",
            "series_id",
            "occurrence_id",
            "url",
            "name",
            "description",
            "category",
            "categories",
            "is_online",
            "is_past",
            "event_kind",
            "privacy",
            "start_time",
            "end_time",
            "time_text",
            "duration",
            "price",
            "ticket_url",
            "ticket_source",
            "ticket_provider",
            "location_name",
            "address",
            "city",
            "city_id",
            "latitude",
            "longitude",
            "attendance_count",
            "attendance_facepile_count",
            "can_view_members",
            "host_context_text",
            "hosts",
            "host_names",
            "creator",
            "description_links",
            "can_viewer_message",
            "is_viewer_host",
            "is_canceled",
            "cover_photo_url",
            "day_time_sentence",
            "rsvp_style",
            "event_place",
            "current_start_timestamp",
            "start_timestamp",
            "start_time_formatted",
            "interested_count",
            "going_count",
            "success",
            "status",
            "requestId",
            "sourceUrl",
            "fetchedAt",
            "coverage",
            "accounting"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "success": {
              "type": "boolean",
              "const": false
            },
            "status": {
              "type": "string",
              "enum": [
                "failed",
                "challenged"
              ]
            },
            "requestId": {
              "type": "string",
              "format": "uuid"
            },
            "failure": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "invalid_request",
                    "unauthorized",
                    "not_found",
                    "restricted_page",
                    "upstream_challenged",
                    "upstream_rate_limited",
                    "upstream_error",
                    "unsupported_page",
                    "response_too_large",
                    "unsafe_redirect",
                    "request_limit",
                    "timeout",
                    "payload_too_complex",
                    "busy"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "accounting": {
              "type": "object",
              "properties": {
                "upstreamRequests": {
                  "type": "integer",
                  "minimum": 0
                },
                "responseBytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "durationMs": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "upstreamRequests",
                "responseBytes",
                "durationMs"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "success",
            "status",
            "requestId",
            "failure",
            "accounting"
          ],
          "additionalProperties": false
        }
      ]
    },
    {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "data": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            "hydration": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "enriched": {
                  "type": "integer"
                },
                "failed": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "enriched",
                "failed"
              ],
              "additionalProperties": false
            },
            "success": {
              "type": "boolean",
              "const": true
            },
            "status": {
              "type": "string",
              "enum": [
                "success",
                "partial"
              ]
            },
            "requestId": {
              "type": "string",
              "format": "uuid"
            },
            "sourceUrl": {
              "type": "string",
              "format": "uri"
            },
            "fetchedAt": {
              "type": "string",
              "format": "date-time"
            },
            "coverage": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "const": "public_web"
                },
                "complete": {
                  "type": "boolean"
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "order": {
                  "type": "string",
                  "enum": [
                    "newest_first",
                    "oldest_first",
                    "ranked",
                    "relevance",
                    "source_order"
                  ]
                },
                "window": {
                  "type": "object",
                  "properties": {
                    "since": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "until": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [],
                  "additionalProperties": false
                }
              },
              "required": [
                "source",
                "complete",
                "warnings"
              ],
              "additionalProperties": false
            },
            "accounting": {
              "type": "object",
              "properties": {
                "upstreamRequests": {
                  "type": "integer",
                  "minimum": 0
                },
                "responseBytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "durationMs": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "upstreamRequests",
                "responseBytes",
                "durationMs"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "data",
            "success",
            "status",
            "requestId",
            "sourceUrl",
            "fetchedAt",
            "coverage",
            "accounting"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "success": {
              "type": "boolean",
              "const": false
            },
            "status": {
              "type": "string",
              "enum": [
                "failed",
                "challenged"
              ]
            },
            "requestId": {
              "type": "string",
              "format": "uuid"
            },
            "failure": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "invalid_request",
                    "unauthorized",
                    "not_found",
                    "restricted_page",
                    "upstream_challenged",
                    "upstream_rate_limited",
                    "upstream_error",
                    "unsupported_page",
                    "response_too_large",
                    "unsafe_redirect",
                    "request_limit",
                    "timeout",
                    "payload_too_complex",
                    "busy"
                  ]
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": false
            },
            "accounting": {
              "type": "object",
              "properties": {
                "upstreamRequests": {
                  "type": "integer",
                  "minimum": 0
                },
                "responseBytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "durationMs": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "upstreamRequests",
                "responseBytes",
                "durationMs"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "success",
            "status",
            "requestId",
            "failure",
            "accounting"
          ],
          "additionalProperties": false
        }
      ]
    }
  ]
}