{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Slideshow Downloader",
    "description": "Save public TikTok slideshow photos with custom filenames, labels, SHA-256 checksums and an archive manifest. This independent Actor is not affiliated with, associated with, or endorsed by TikTok.",
    "version": "0.4",
    "x-build-id": "XNaPIWV1sd3vvvGRL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~tiktok-slideshow-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-tiktok-slideshow-downloader",
        "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/khadinakbar~tiktok-slideshow-downloader/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-tiktok-slideshow-downloader",
        "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/khadinakbar~tiktok-slideshow-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-tiktok-slideshow-downloader",
        "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": {
          "slideshowUrls": {
            "title": "TikTok slideshow URLs",
            "maxItems": 5000,
            "type": "array",
            "description": "Paste public TikTok photo-post links, short-share links, legacy mobile links or numeric post IDs (up to 5,000). For per-post labels use Labeled posts. Videos are detected: you get one free row pointing to the video downloader.",
            "items": {
              "type": "string"
            }
          },
          "maxSlideshows": {
            "title": "Max slideshows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Process up to this many distinct posts, from 1 to 5,000; default 10. Duplicate IDs are processed once. Photo limits, the time limit or a refused request may stop a larger job early; check the run summary.",
            "default": 10
          },
          "maxPhotos": {
            "title": "Max photos per slideshow",
            "minimum": 1,
            "maximum": 35,
            "type": "integer",
            "description": "Maximum pictures delivered per post, 1 to 35; default 35. Billing covers at most 10 pictures per post even when more are delivered. totalPhotoCount records the source slides.",
            "default": 35
          },
          "saveFiles": {
            "title": "Save image files",
            "type": "boolean",
            "description": "When on, every picture is saved to storage and returned with downloadUrl. When off, only the source picture link is returned (it expires) and billing is per post once that price is live. Memory is 256 MB by default: it is enough for links only, but a run that saves files for more than about 120 posts should set Memory to 1024 MB in the run options.",
            "default": true
          },
          "maxItems": {
            "title": "Total photo limit",
            "minimum": 1,
            "maximum": 175000,
            "type": "integer",
            "description": "Stop after this many pictures across all posts, from 1 to 175,000. Omit for no total limit beyond the per-post and post-count limits."
          },
          "fileNamePattern": {
            "title": "Image filename pattern",
            "maxLength": 160,
            "type": "string",
            "description": "Name saved images using {postId}, {photoIndex} and {extension}. Paths are not allowed. A unique post and slide suffix is added when needed; characters outside letters, numbers, dot, underscore and hyphen become underscores.",
            "default": "{postId}-photo-{photoIndex}.{extension}"
          },
          "postRequests": {
            "title": "Labeled posts",
            "maxItems": 5000,
            "type": "array",
            "description": "Optionally attach a small campaign or archive label object to each post. Each delivered photo includes that userData and its original input position. Duplicate references keep the first labels. Can be used instead of the plain URL list.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Post link or ID",
                  "type": "string",
                  "editor": "textfield",
                  "description": "Enter a public TikTok photo-post URL or numeric post ID."
                },
                "userData": {
                  "title": "Labels",
                  "type": "object",
                  "editor": "json",
                  "description": "Optional JSON labels, up to 4096 bytes per post."
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "connectionMode": {
            "title": "Connection mode (no longer used)",
            "type": "string",
            "description": "Old setting. Accepted so saved inputs keep working, and ignored."
          },
          "maxLookupCostUsd": {
            "title": "Recovery budget (no longer used)",
            "type": "number",
            "description": "Old setting. Accepted so saved inputs keep working, and ignored."
          },
          "saveCover": {
            "title": "Save cover picture",
            "type": "boolean",
            "description": "Also save each slideshow's cover picture as a file. Free; no extra billing.",
            "default": false
          },
          "saveSound": {
            "title": "Save sound",
            "type": "boolean",
            "description": "Also save each slideshow's sound as an audio file when its host allows it. Free; no extra billing.",
            "default": false
          },
          "zipPerPost": {
            "title": "One ZIP per post",
            "type": "boolean",
            "description": "Save all pictures of a post as one ZIP file instead of separate files. Free; no extra billing.",
            "default": false
          },
          "pdfPerPost": {
            "title": "One PDF per slideshow",
            "type": "boolean",
            "description": "Also save one PDF per post with one page per picture. Free; no extra billing.",
            "default": false
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also save one overview image per post with all pictures side by side. Free; no extra billing.",
            "default": false
          },
          "onlyNewPosts": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Skip posts delivered by an earlier run of this setting. Skipped posts cost nothing.",
            "default": false
          },
          "oneRowPerPost": {
            "title": "One row per post",
            "type": "boolean",
            "description": "Return one Dataset row per post with its pictures listed inside, instead of one row per picture.",
            "default": false
          },
          "postedAfter": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Free filter: skip posts created before this date (YYYY-MM-DD, UTC)."
          },
          "postedBefore": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Free filter: skip posts created after the end of this date (YYYY-MM-DD, UTC)."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Free filter: skip posts with fewer views."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Free filter: skip posts with fewer likes."
          },
          "saveToStore": {
            "title": "Save files into",
            "type": "string",
            "description": "Optional: your own key-value store to keep the files in, instead of this run's storage."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}