{
  "openapi": "3.0.1",
  "info": {
    "title": "Ticket Price Drop & Availability Monitor",
    "description": "Monitor Ticketmaster and StubHub events for price drops, new listings, sold-out inventory, back-in-stock tickets, and section-level availability changes.",
    "version": "0.1",
    "x-build-id": "76npRCY6LXHWeGmYr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataforge_labs~event-ticket-price-availability-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataforge_labs-event-ticket-price-availability-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dataforge_labs~event-ticket-price-availability-monitor/runs": {
      "post": {
        "operationId": "runs-sync-dataforge_labs-event-ticket-price-availability-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dataforge_labs~event-ticket-price-availability-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-dataforge_labs-event-ticket-price-availability-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "monitorId",
          "targets"
        ],
        "properties": {
          "monitorId": {
            "title": "Stable monitor ID",
            "pattern": "^[A-Za-z0-9_-]{1,100}$",
            "type": "string",
            "description": "Reuse this ID on every scheduled run to preserve the baseline."
          },
          "targets": {
            "title": "Ticketmaster or StubHub events",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One to 100 public event URLs. Give each event a stable unique ID.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "Target ID",
                  "type": "string",
                  "description": "Stable key used in state and change events."
                },
                "name": {
                  "title": "Display name",
                  "type": "string",
                  "description": "Optional human-readable label for output and alerts."
                },
                "platform": {
                  "title": "Platform",
                  "type": "string",
                  "description": "Detected from the URL when omitted.",
                  "enum": [
                    "ticketmaster",
                    "stubhub"
                  ]
                },
                "url": {
                  "title": "Public event URL",
                  "type": "string",
                  "description": "Full public Ticketmaster or StubHub event page URL."
                },
                "eventId": {
                  "title": "Platform event ID",
                  "type": "string",
                  "description": "Ticketmaster can be checked by ID without a URL."
                },
                "sections": {
                  "title": "Section name filters",
                  "type": "array",
                  "description": "Optional case-insensitive section-name fragments.",
                  "items": {
                    "type": "string"
                  }
                },
                "minQuantity": {
                  "title": "Minimum adjacent quantity",
                  "type": "integer",
                  "description": "Ignore StubHub listings with fewer available tickets.",
                  "minimum": 1,
                  "maximum": 20
                }
              }
            }
          },
          "priceDropThresholdPercent": {
            "title": "Minimum price change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Ignore smaller price increases and drops.",
            "default": 5
          },
          "quantity": {
            "title": "Global minimum adjacent quantity",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional default applied when a target has no minQuantity."
          },
          "sections": {
            "title": "Global section filters",
            "type": "array",
            "description": "Case-insensitive section-name fragments.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "changes",
              "all",
              "all_current"
            ],
            "type": "string",
            "description": "Emit changes, include initial listings, or return current snapshots without changing the baseline.",
            "default": "changes"
          },
          "soldOutAfterMissingRuns": {
            "title": "Missing runs before SOLD_OUT",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Consecutive complete observations required before a listing is marked sold out.",
            "default": 2
          },
          "maxOffersPerTarget": {
            "title": "Maximum offers per event",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Higher limits improve completeness but cost more and run longer.",
            "default": 100
          },
          "maxParallelTargets": {
            "title": "Parallel event checks",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of child Actor calls running concurrently.",
            "default": 4
          },
          "maxUpstreamChargeUsd": {
            "title": "Total upstream spend limit (USD)",
            "minimum": 0.01,
            "maximum": 100,
            "type": "number",
            "description": "Hard PPE ceiling split equally across child Actor calls.",
            "default": 5
          },
          "ticketmasterActorId": {
            "title": "Ticketmaster upstream Actor",
            "type": "string",
            "description": "Advanced: replace the selected Ticketmaster adapter.",
            "default": "unfenced-group/ticketmaster-price-monitor"
          },
          "stubhubActorId": {
            "title": "StubHub upstream Actor",
            "type": "string",
            "description": "Advanced: replace the selected StubHub adapter.",
            "default": "stealth_mode/stubhub-tickets-listings-scraper"
          },
          "ticketmasterInputOverrides": {
            "title": "Ticketmaster input overrides",
            "type": "object",
            "description": "Advanced vendor-specific values merged into generated Ticketmaster input.",
            "default": {}
          },
          "stubhubInputOverrides": {
            "title": "StubHub input overrides",
            "type": "object",
            "description": "Advanced vendor-specific values merged into generated StubHub input.",
            "default": {}
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}