{
  "openapi": "3.0.1",
  "info": {
    "title": "Blibli Flash Sale & Promo Extractor",
    "description": "Track how aggressively Blibli sellers discount. Scrapes live Flash Sale products (with discount % and how much of the flash-sale quota is already claimed), the full running promo campaign catalogue, and any product matching a minimum discount or promo tag. No login or API key needed.",
    "version": "0.1",
    "x-build-id": "UwIhxApdpufyyepM0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zucchini_gopher_m2v~blibli-promo-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zucchini_gopher_m2v-blibli-promo-extractor",
        "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/zucchini_gopher_m2v~blibli-promo-extractor/runs": {
      "post": {
        "operationId": "runs-sync-zucchini_gopher_m2v-blibli-promo-extractor",
        "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/zucchini_gopher_m2v~blibli-promo-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-zucchini_gopher_m2v-blibli-promo-extractor",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "flashSale",
              "promoCampaigns",
              "discountedProducts"
            ],
            "type": "string",
            "description": "What to extract. 'flashSale' = products in Blibli's live Flash Sale sessions (with discount % and how much of the flash-sale quota is already claimed). 'promoCampaigns' = the catalogue of every running promo campaign with its start/end window. 'discountedProducts' = products matching a minimum discount and/or a promo tag, searched by keyword or category.",
            "default": "flashSale"
          },
          "scheduleScope": {
            "title": "Flash sale schedule scope",
            "enum": [
              "current",
              "all"
            ],
            "type": "string",
            "description": "Flash Sale mode only. 'current' scrapes just the session running right now; 'all' scrapes every session Blibli advertises (usually today's plus the next one).",
            "default": "current"
          },
          "flashSaleSort": {
            "title": "Flash sale sort order",
            "enum": [
              "biggestDiscount",
              "almostSoldOut",
              "mostStockLeft",
              "cheapest",
              "mostExpensive",
              "mostSearched",
              "relevance"
            ],
            "type": "string",
            "description": "Flash Sale mode only. Order Blibli returns products in. 'biggestDiscount' surfaces the most aggressive price cuts first.",
            "default": "biggestDiscount"
          },
          "promoSort": {
            "title": "Promo campaign sort order",
            "enum": [
              "ending_soon",
              "newest",
              "popularity",
              "relevance"
            ],
            "type": "string",
            "description": "Promo campaign mode only. 'ending_soon' is the most useful for catching promos before they expire.",
            "default": "ending_soon"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Discounted-products mode. Keywords to sweep, e.g. [\"laptop gaming\", \"skincare\"]. Each term is paged to Blibli's server-side limit of 800 products.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category codes or full Blibli category URLs, e.g. [\"FA-1000099\"] or [\"https://www.blibli.com/c3/memory-card/ME-1000006\"]. Used as a filter in Flash Sale mode and as a query in discounted-products mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Keep only products discounted by at least this much. 0 disables the filter. In discounted-products mode this is also pushed to Blibli's own discount facet (buckets of 10/25/50/75) so pagination is not wasted on cheap deals.",
            "default": 0
          },
          "promoFilter": {
            "title": "Promo tag filter",
            "type": "string",
            "description": "Discounted-products mode. Restrict to a Blibli promo programme, e.g. 'extraPromo', 'FREE_GIFT', 'COMBO', 'WHOLESALE', 'merchantVoucher', or a specific campaign like 'campaign_CAMP-03285_5407119_FLASHSALE'. Leave empty for no promo restriction."
          },
          "searchSort": {
            "title": "Search sort order",
            "enum": [
              "relevance",
              "bestSelling",
              "cheapest",
              "mostExpensive",
              "newest"
            ],
            "type": "string",
            "description": "Discounted-products mode. Order Blibli returns search results in.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many records (per query in discounted-products mode). 0 means no limit -- scrape until the source is exhausted.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Blibli is behind Cloudflare. Apify Residential proxy with country 'ID' is recommended for long runs; short runs usually succeed without a proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}