{
  "openapi": "3.0.1",
  "info": {
    "title": "Accupass Public Events Scraper — Taiwan Event Data",
    "description": "Export public Accupass events in Taiwan by keyword, city or category, or by event URL. Optional public event details. Schedule runs to watch for new events. $1.50 per 1,000 events, no start fee.",
    "version": "0.1",
    "x-build-id": "2IhPaBJ5JlxhdSLfG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~accupass-public-events/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-accupass-public-events",
        "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/stone_jadex~accupass-public-events/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-accupass-public-events",
        "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/stone_jadex~accupass-public-events/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-accupass-public-events",
        "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",
        "properties": {
          "maxItems": {
            "title": "Maximum events",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum unique events across API pages (25 per page).",
            "default": 1000
          },
          "fetchDetails": {
            "title": "Fetch event details",
            "type": "boolean",
            "description": "Fetch public event pages for description, address, organizer and available ticket prices.",
            "default": false
          },
          "includeOrganizerContact": {
            "title": "Include public organizer business contact",
            "type": "boolean",
            "description": "Opt in to public organizer email/phone from event pages; requires fetchDetails. No attendee data.",
            "default": false
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Keyword sent to the public listing API.",
            "default": ""
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy by default.",
            "default": {
              "useApifyProxy": false
            }
          },
          "includeAds": {
            "title": "Include advertisements",
            "type": "boolean",
            "description": "Include listing entries marked isAD true.",
            "default": false
          },
          "categoryTypeList": {
            "title": "Categories",
            "type": "array",
            "description": "Category slugs put into the search POST as categoryTypeList, passed through as given (original values, not remapped). Known public slugs from listing fixtures and URL samples (event_category_* / c=), not live-verified against the site bundle codes: arts (Arts), food (Food & Drink), sports (Sports & Fitness), travel (Outdoor), technology (Science & Tech), entertainment (Entertainment), learning (Learning), fashion (Fashion), charitable (Charity), photography (Photography), business (Business), health (Health & Wellness), blockchain (Blockchain), family (Family), other (Other), pet (Pet), startup (Startup), investment (Investment), design (Design), handmade (Handmade), game (Game), music (Music), film (Film). Default is an empty array (no category filter), same as the previous online behaviour.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cityLocationList": {
            "title": "Cities",
            "type": "array",
            "description": "City slugs put into the search POST as cityLocationList, passed through as given (original values, not remapped). Known public slugs from listing fixtures and URL samples (location_* / l=), not live-verified against the site bundle codes: taipei (Taipei), new-taipei (New Taipei), taoyuan (Taoyuan), hsinchu (Hsinchu), miaoli (Miaoli), taichung (Taichung), nantou (Nantou), changhua (Changhua), yunlin (Yunlin), chiayi (Chiayi), tainan (Tainan), kaohsiung (Kaohsiung), pingtung (Pingtung), yilan (Yilan), keelung (Keelung), hualien (Hualien), taitung (Taitung), penghu (Penghu), kinmen (Kinmen), lienchiang (Lienchiang), singapore (Singapore). Default is an empty array (no city filter).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "simpleEventPlaceTypeList": {
            "title": "Event place type",
            "type": "array",
            "description": "Place-type codes put into the search POST as simpleEventPlaceTypeList, passed through as given (original values, not remapped). Known values from research notes (not live-verified): \"1\" = offline, \"2\" = online. Default is an empty array (any place type).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Sort key put into the search POST as sortBy, passed through as given (original value, not remapped). A number is turned into a string. Default \"4\". Known values from research notes (not live-verified): \"1\" = newest (latest), \"2\" = most favorited, \"3\" = most viewed, \"4\" = relevance. Empty or omitted uses \"4\".",
            "default": "4"
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Extra search keywords (at most 20; more than 20 is invalid input). Merged with the existing keyword field: trimmed, empty strings dropped, then de-duplicated, and each remaining keyword is searched in order. Across keywords, events already written (same eventId) are skipped and counted in OUTPUT.duplicatesSkipped; only the unique rows that are written are charged (the default dataset event). maxItems applies to the whole run. Default is an empty array.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "eventUrls": {
            "title": "Event URLs",
            "maxItems": 2000,
            "type": "array",
            "description": "Public event URLs or numeric event ids (at most 2000; more than 2000 is invalid input). Accepts https://www.accupass.com/event/<id> (query string and a trailing slash are fine) or a string of digits. Combined with eventIds, de-duplicated by eventId (duplicates go to OUTPUT.duplicatesSkipped). A login/account URL is skipped (warning: \"skipping login/account event URL \"); an unrecognized value is skipped (warning: \"skipping unrecognized event URL or id \"). When only eventUrls and/or eventIds are given and there is no keyword, the Actor does not call the listing search API. In list mode (fetchDetails off) it writes skeleton rows from the ids alone (title and other listing fields are null; no extra request). With fetchDetails it requests only those public event pages. Default is an empty array.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "eventIds": {
            "title": "Event IDs",
            "maxItems": 2000,
            "type": "array",
            "description": "Numeric event ids as strings (at most 2000; more than 2000 is invalid input). Combined with eventUrls and de-duplicated by eventId. Same rules: when only eventIds and/or eventUrls are given and there is no keyword, the Actor does not call the listing search API. Default is an empty array.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "onlyNewEvents": {
            "title": "Only new events (incremental)",
            "type": "boolean",
            "description": "Off by default. When on, the Actor loads eventIds it has already delivered from a named key-value store (stateStoreName + stateRecordName — not the default run store) and writes and charges only events it has not seen before. Already-seen events are filtered out before detail-page requests, so they are not requested, written or charged, and those skips are not counted in duplicatesSkipped and do not count toward maxItems (the Actor keeps paging until it fills maxItems with new events or the list is exhausted). An event's id is added to that store only after it was written (and therefore charged); pushData failure does not record it. If every matching event was already seen, the run is platform SUCCEEDED with 0 rows, nothing charged, stopReason completed, newEventsCount 0 and skippedSeenCount set; the platform status message is set to 'All matching events were already seen; 0 new events written (<N> skipped).' OUTPUT has no statusMessage field. A non-boolean value is invalid-input (Failed, 0 rows, nothing charged). Use this with a scheduled run to subscribe to new events. No extra fee. If the seen list cannot be read for a storage or network reason (not corrupt JSON), the run stops before scraping with stopReason state-read-error (Failed, 0 rows, nothing charged, list unchanged); retry later.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name (seen events)",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "minLength": 3,
            "maxLength": 63,
            "type": "string",
            "description": "Name of the named key-value store (Actor.openKeyValueStore) that keeps already-delivered eventIds when onlyNewEvents is on — this is not the default run key-value store, so the seen-id record is not a key of the default-store OUTPUT schema. Use a different name per saved search to keep their histories apart. Must be 3–63 characters: lowercase letters a-z, digits 0-9, and hyphens only in the middle (for example my-search-1); an illegal value is invalid-input (Failed, 0 rows, nothing charged), and the name is still validated even when onlyNewEvents is off. When onlyNewEvents is off the store is not opened, not read and not written (the name is only checked). The record at stateRecordName is written as a JSON array of eventId strings (the full set: previously seen ∪ successfully written this run), after each successful pushData batch. On read, a plain array or {\"eventIds\": [...]} is accepted; a missing or malformed value is treated as empty. Default accupass-events-seen. Cap: the serialized seen list is kept at or under 8 MiB (8,388,608 bytes; about 335,000 Accupass eventIds). The array is ordered oldest first: newly delivered ids are appended and already-seen ids met again in a run move to the end; before each save the oldest ids are evicted until it fits, so an evicted older event may be delivered again as new (and charged) if it reappears; runNotice.messages reports the eviction. A malformed value now means a reset with a notice, not a silent empty list: if the stored value is corrupt — unparsable JSON (the read throws a SyntaxError, or an error whose direct cause is a SyntaxError) or a wrong value type — the list is reset to empty for this run and the run continues (failed stays false, runNotice.messages explains); invalid entries (not a non-empty string, including numbers) are dropped. A reset alone is not written back; the next save rewrites a valid JSON array of eventId strings. The list is also saved when already-seen ids were skipped, including an all-seen 0-row run (still nothing pushed or charged). Any other read error (storage or network failure after retries) is not a reset: the run stops with stopReason state-read-error before any site request — platform Failed, failed=true, 0 rows, nothing charged, the stored list left unchanged — so simply retry later (or wait for the next scheduled run). Only two cases can deliver and charge an event again: a corrupt or wrong-type list that was reset, and the oldest ids evicted at the 8 MiB cap.",
            "default": "accupass-events-seen"
          },
          "stateRecordName": {
            "title": "State record name (seen events)",
            "minLength": 1,
            "maxLength": 256,
            "type": "string",
            "description": "Record name inside the named key-value store that holds the seen eventIds (written as a JSON array of eventId strings; on read a plain array or {\"eventIds\": [...]} is accepted). Legacy alias stateKey is still accepted at runtime. Must be 1–256 characters with no control characters; an illegal value is invalid-input (Failed, 0 rows, nothing charged), and the name is still validated even when onlyNewEvents is off. When onlyNewEvents is off the store is not opened, not read and not written. Default seenEventIds. Cap: the serialized seen list is kept at or under 8 MiB (8,388,608 bytes; about 335,000 Accupass eventIds). The array is ordered oldest first: newly delivered ids are appended and already-seen ids met again in a run move to the end; before each save the oldest ids are evicted until it fits, so an evicted older event may be delivered again as new (and charged) if it reappears; runNotice.messages reports the eviction. If the stored value is corrupt — unparsable JSON (the read throws a SyntaxError, or an error whose direct cause is a SyntaxError) or a wrong value type — the list is reset to empty for this run and the run continues (failed stays false, runNotice.messages explains); invalid entries (not a non-empty string, including numbers) are dropped. A reset alone is not written back; the next save rewrites a valid JSON array of eventId strings. Any other read error (storage or network failure after retries) is not a reset: the run stops with stopReason state-read-error before any site request — platform Failed, failed=true, 0 rows, nothing charged, the stored list left unchanged — so simply retry later (or wait for the next scheduled run). Only two cases can deliver and charge an event again: a corrupt or wrong-type list that was reset, and the oldest ids evicted at the 8 MiB cap.",
            "default": "seenEventIds"
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}