{
  "openapi": "3.0.1",
  "info": {
    "title": "Blibli Affiliate Link Generator & Content Parser",
    "description": "Source best-selling, high-rated Blibli products (optionally official-warranty only), extract images and clean descriptions, and generate share links plus ready-to-post captions. Built for affiliate and content marketers. No login needed.",
    "version": "0.1",
    "x-build-id": "oeyRd2CspTD2OEhkL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zucchini_gopher_m2v~blibli-affiliate-content-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zucchini_gopher_m2v-blibli-affiliate-content-generator",
        "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-affiliate-content-generator/runs": {
      "post": {
        "operationId": "runs-sync-zucchini_gopher_m2v-blibli-affiliate-content-generator",
        "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-affiliate-content-generator/run-sync": {
      "post": {
        "operationId": "run-sync-zucchini_gopher_m2v-blibli-affiliate-content-generator",
        "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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to source products from, e.g. [\"laptop gaming\", \"skincare\"]. Combine with the quality filters below to surface only products worth promoting.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Blibli category codes or full category URLs, e.g. [\"TI-1000001\"] or [\"https://www.blibli.com/c3/memory-card/ME-1000006\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "bestSelling",
              "relevance",
              "cheapest",
              "mostExpensive",
              "newest"
            ],
            "type": "string",
            "description": "How Blibli orders the source list. 'bestSelling' is the default and what most affiliate sourcing wants.",
            "default": "bestSelling"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only products rated at least this many stars. Pushed to Blibli's own rating filter where possible, then enforced exactly on each product's real rating. 0 disables.",
            "default": 4
          },
          "minReviewCount": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip products with too few reviews for the rating to mean anything. 0 disables.",
            "default": 10
          },
          "minSoldCount": {
            "title": "Minimum units sold",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only proven sellers. 0 disables.",
            "default": 0
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Keep only products discounted by at least this much - a discount makes a far better post. Pushed to Blibli's discount facet (buckets of 10/25/50/75) and then enforced exactly. 0 disables.",
            "default": 0
          },
          "officialWarrantyOnly": {
            "title": "Official warranty only (Garansi Resmi)",
            "type": "boolean",
            "description": "Restrict to products carrying an official manufacturer warranty - the 'produk orisinal bergaransi resmi' filter. Applied server-side by Blibli.",
            "default": false
          },
          "officialStoreOnly": {
            "title": "Official stores only",
            "type": "boolean",
            "description": "Keep only products sold by an official brand store, which are the safest to promote.",
            "default": false
          },
          "topRatedSellerOnly": {
            "title": "Top-rated sellers only",
            "type": "boolean",
            "description": "Restrict to sellers Blibli marks as top rated.",
            "default": false
          },
          "generateShareLink": {
            "title": "Generate Blibli share link",
            "type": "boolean",
            "description": "Mint Blibli's own OneLink short link (blibli.onelink.me/...) for each product, carrying your tracking values. Costs one extra request per product. NOTE: this is a tracking/deep link, not a commission link - see the actor README on what Blibli's affiliate commission API requires.",
            "default": true
          },
          "trackingCampaign": {
            "title": "Tracking campaign (utm_campaign)",
            "type": "string",
            "description": "Stamped onto every link as utm_campaign. This is where your affiliate or creator ID goes, e.g. 'aff-yourname-sep2026'."
          },
          "trackingSource": {
            "title": "Tracking source (utm_source)",
            "type": "string",
            "description": "Stamped onto every link as utm_source, e.g. 'instagram', 'tiktok', 'blog'."
          },
          "trackingMedium": {
            "title": "Tracking medium (utm_medium)",
            "type": "string",
            "description": "Stamped onto every link as utm_medium, e.g. 'social', 'bio-link', 'newsletter'."
          },
          "captionTemplate": {
            "title": "Caption template",
            "type": "string",
            "description": "Ready-to-post caption built for every product. Placeholders: {name} {brand} {price} {listPrice} {discount} {rating} {reviewCount} {sold} {warranty} {description} {link} {merchant}. Leave empty to skip caption generation.",
            "default": "{name}\nRp{price} (diskon {discount}, dari Rp{listPrice})\n{rating} bintang - {sold} terjual\n{description}\n{link}"
          },
          "enrichFromProductPage": {
            "title": "Enrich from product page",
            "type": "boolean",
            "description": "Open each product page to add the exact warranty statement (e.g. 'Garansi resmi 2 tahun'), Blibli's own SEO description, and stock. Costs one extra request per product but is the only way to get the warranty wording - search results do not carry it.",
            "default": false
          },
          "imageSize": {
            "title": "Image size",
            "enum": [
              "full",
              "medium",
              "thumbnail"
            ],
            "type": "string",
            "description": "Which image variant to return. 'full' is best for posts.",
            "default": "full"
          },
          "maxItemsPerQuery": {
            "title": "Max products per query",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many qualifying products per search term or category. 0 means no limit (Blibli serves at most 800 per query).",
            "default": 50
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel link-minting and enrichment requests. Keep low to stay under Blibli's rate limiting.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Blibli is behind Cloudflare and throttles sustained traffic from one IP. Apify Residential proxy with country 'ID' is strongly recommended here.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}