{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram JSON Export Cleaner and Deduplicator",
    "description": "Normalize supplied Instagram post JSON, remove duplicate selections and keep only unseen records using your checkpoint. Preserve carousel children and separate views from plays. Get clean rows and per-row receipts. $0.05 per completed cleanup report. No scraping.",
    "version": "0.0",
    "x-build-id": "zqP3adomMipcemWHc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cygnix_labs~cygnix-instagram-export-cleaner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cygnix_labs-cygnix-instagram-export-cleaner",
        "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/cygnix_labs~cygnix-instagram-export-cleaner/runs": {
      "post": {
        "operationId": "runs-sync-cygnix_labs-cygnix-instagram-export-cleaner",
        "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/cygnix_labs~cygnix-instagram-export-cleaner/run-sync": {
      "post": {
        "operationId": "run-sync-cygnix_labs-cygnix-instagram-export-cleaner",
        "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": [
          "namespace",
          "batchId",
          "observedAt",
          "posts",
          "rightsAcknowledged"
        ],
        "properties": {
          "namespace": {
            "title": "Campaign / export stream",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,99}$",
            "maxLength": 100,
            "type": "string",
            "description": "Use one stable namespace per independent campaign. Prior checkpoint namespace must match exactly."
          },
          "batchId": {
            "title": "Batch ID",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,99}$",
            "maxLength": 100,
            "type": "string",
            "description": "Use a distinct batch ID for each new cleanup. Retain it when retrying the exact original request and checkpoint."
          },
          "observedAt": {
            "title": "Batch observation time",
            "maxLength": 100,
            "type": "string",
            "description": "Required offset-aware ISO timestamp. Keep this unchanged across retries; it defines local first-seen time."
          },
          "posts": {
            "title": "Supplied post export",
            "maxItems": 5000,
            "type": "array",
            "description": "Paste authorized Image, Video, or Sidecar post objects, up to 5,000 rows. This Actor does not fetch Instagram. Input and full report are each capped at 8 MiB; all byte caps apply together and may bind before 5,000 rows. Dataset uploads are split below 4 MiB. Comments and unsupported fields are omitted with receipts."
          },
          "checkpoint": {
            "title": "Previous checkpoint",
            "maxProperties": 8,
            "type": "object",
            "description": "Pass the complete CHECKPOINT from the previous successful cleanup in this namespace. At most 20,000 identities and 6 MiB; checkpoint history also uses space within the 8 MiB report. Omit or use null only for deliberately new history. Serialize the entire read-process-deliver-adopt cycle."
          },
          "since": {
            "title": "Since, inclusive",
            "maxLength": 100,
            "type": "string",
            "description": "Optional date/datetime. Date-only uses the timezone below; all supplied rows are checked."
          },
          "until": {
            "title": "Until, exclusive",
            "maxLength": 100,
            "type": "string",
            "description": "Optional EXCLUSIVE date/datetime. To include October 12, use October 13."
          },
          "timezone": {
            "title": "Filter timezone",
            "maxLength": 100,
            "type": "string",
            "description": "IANA timezone for date-only/naive filter boundaries.",
            "default": "UTC"
          },
          "assumeNaiveTimezone": {
            "title": "Assume source timezone",
            "maxLength": 100,
            "type": "string",
            "description": "Optional explicit IANA timezone for source timestamps without an offset. DST gaps/folds remain errors."
          },
          "epochUnit": {
            "title": "Epoch unit",
            "enum": [
              "seconds",
              "milliseconds"
            ],
            "type": "string",
            "description": "Unit for numeric source timestamps; never guessed per row.",
            "default": "seconds"
          },
          "rightsAcknowledged": {
            "title": "I may use these exports",
            "type": "boolean",
            "description": "Confirm you are authorized to use your supplied exports, captions, and URL references. Only the exact unchanged bundled fictional demo may run while this remains false; every changed input requires true. Do not submit credentials, private comments, or unauthorized data."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}