{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Nightlife Search",
    "description": "Find bars, clubs, karaoke and KTV venues, live music spots, lounges, massage spas, and nightlife businesses worldwide by city, with optional review text and adult-oriented categories off by default.",
    "version": "0.1",
    "x-build-id": "plrJNf30kT5iSXFv7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~global-nightlife-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-global-nightlife-search",
        "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/lentic_clockss~global-nightlife-search/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-global-nightlife-search",
        "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/lentic_clockss~global-nightlife-search/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-global-nightlife-search",
        "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": [
          "cities",
          "venueCategories",
          "includeAdultOrientedVenues",
          "confirmAdultUse",
          "coverageMode",
          "maxPlacesPerCity",
          "maxTotalPlaces",
          "includeReviews",
          "maxReviewsPerPlace",
          "anonymizeReviewers",
          "language",
          "country",
          "proxyCountry",
          "filters"
        ],
        "properties": {
          "cities": {
            "title": "Cities",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Cities or metro areas to search. Add country names for better matching, for example Makati, Philippines.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": [
              "Makati, Philippines"
            ]
          },
          "venueCategories": {
            "title": "Venue categories",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Nightlife categories to search in each city.",
            "items": {
              "type": "string",
              "enum": [
                "bars",
                "nightclubs",
                "lounges",
                "karaoke_ktv",
                "live_music",
                "massage_spa",
                "sauna_wellness",
                "casinos",
                "adult_oriented"
              ],
              "enumTitles": [
                "Bars and pubs",
                "Nightclubs",
                "Lounges",
                "Karaoke / KTV",
                "Live music venues",
                "Massage and spa",
                "Sauna and wellness",
                "Casinos",
                "Adult-oriented nightlife"
              ]
            },
            "default": [
              "bars",
              "nightclubs",
              "lounges"
            ]
          },
          "includeAdultOrientedVenues": {
            "title": "Include adult-oriented venues",
            "type": "boolean",
            "description": "Default is off. Enable only if you are 18+ and the local rules that apply to you allow searching this category.",
            "default": false
          },
          "confirmAdultUse": {
            "title": "I am 18+ and local rules allow this search",
            "type": "boolean",
            "description": "Required only for adult-oriented nightlife. Keep off unless you are 18+ and have confirmed the local rules allow this use.",
            "default": false
          },
          "coverageMode": {
            "title": "Coverage mode",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Quick is best for small tests. Standard gives broader city coverage. Deep runs more searches and may take longer.",
            "default": "quick"
          },
          "maxPlacesPerCity": {
            "title": "Max venues per city",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum venue records to return for each city.",
            "default": 20
          },
          "maxTotalPlaces": {
            "title": "Max total venues",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap across all cities and categories. Keeps default runs small and predictable.",
            "default": 20
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Scrape review text for each venue. Reviews are included in the venue price.",
            "default": true
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per venue",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per venue.",
            "default": 3
          },
          "anonymizeReviewers": {
            "title": "Anonymize reviewers",
            "type": "boolean",
            "description": "Default is on. Keeps review text but removes reviewer avatar, profile URL, and full identity fields.",
            "default": true
          },
          "language": {
            "title": "Language",
            "minLength": 2,
            "maxLength": 5,
            "type": "string",
            "description": "Language code for place and review results, for example en, ja, th, es, or fr.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "maxLength": 2,
            "type": "string",
            "description": "Optional ISO-2 country hint for search and localization. Leave empty for automatic matching from the city names.",
            "default": ""
          },
          "proxyCountry": {
            "title": "Proxy country",
            "maxLength": 2,
            "type": "string",
            "description": "Optional ISO-2 proxy country. Leave empty to run without a proxy. Use only if you specifically need residential proxy routing.",
            "default": ""
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "Optional venue filters applied after scraping.",
            "properties": {
              "minRating": {
                "title": "Minimum rating",
                "description": "0 means no minimum rating filter.",
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "minReviewCount": {
                "title": "Minimum review count",
                "description": "0 means no minimum review-count filter.",
                "type": "integer",
                "minimum": 0
              },
              "requirePhone": {
                "title": "Require phone",
                "description": "Keep only venues with a phone number.",
                "type": "boolean"
              },
              "requireWebsite": {
                "title": "Require website",
                "description": "Keep only venues with a website.",
                "type": "boolean"
              },
              "openNow": {
                "title": "Open now",
                "description": "Keep only venues marked open now when this signal is available.",
                "type": "boolean"
              }
            },
            "default": {
              "minRating": 0,
              "minReviewCount": 0,
              "requirePhone": false,
              "requireWebsite": false,
              "openNow": false
            },
            "additionalProperties": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}