{
  "openapi": "3.0.1",
  "info": {
    "title": "Gate scrp",
    "description": null,
    "version": "0.0",
    "x-build-id": "55zfEsE6y7tyFzqcs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xerophylous_fell~gate-scrp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xerophylous_fell-gate-scrp",
        "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/xerophylous_fell~gate-scrp/runs": {
      "post": {
        "operationId": "runs-sync-xerophylous_fell-gate-scrp",
        "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/xerophylous_fell~gate-scrp/run-sync": {
      "post": {
        "operationId": "run-sync-xerophylous_fell-gate-scrp",
        "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": {
          "targetCount": {
            "title": "Number of matching IPs to find",
            "minimum": 1,
            "type": "integer",
            "description": "The Actor stops as soon as this many IPs meet every requirement.",
            "default": 5
          },
          "concurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many scamalytics checks run at the same time, each through its own proxy IP.",
            "default": 30
          },
          "maxAttemptsPerIp": {
            "title": "Max attempts per IP",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "If a check fails (blocked, timeout), it is retried through a different proxy IP up to this many times.",
            "default": 3
          },
          "listConcurrency": {
            "title": "Parallel vpngate downloads",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many vpngate.net lists are downloaded at the same time, each through its own proxy IP.",
            "default": 10
          },
          "maxListFetches": {
            "title": "Max vpngate list downloads",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of vpngate.net CSV downloads. The run also ends early as soon as the target number of IPs is found.",
            "default": 500
          },
          "listSource": {
            "title": "vpngate list source",
            "enum": [
              "both",
              "csv",
              "html"
            ],
            "type": "string",
            "description": "'both' downloads the website list (HTML) and the official CSV list for every download. The HTML list gives the vpngate OpenVPN page link, the CSV gives the .ovpn file.",
            "default": "both"
          },
          "listProxyCountries": {
            "title": "Proxy countries for list downloads",
            "type": "array",
            "description": "vpngate shows a different partial list depending on who asks. Each list download goes out through a random country from this list. Countries your proxy group doesn't have are dropped automatically. Leave empty to use the default pool.",
            "default": [
              "US",
              "GB",
              "DE",
              "FR",
              "NL",
              "CA",
              "SE",
              "PL",
              "IT",
              "ES",
              "CH",
              "AT",
              "BE",
              "CZ",
              "RO",
              "JP",
              "SG",
              "AU",
              "BR",
              "IN"
            ],
            "items": {
              "type": "string"
            }
          },
          "debugProxyIps": {
            "title": "Log proxy exit IP for every request",
            "type": "boolean",
            "description": "Adds one extra tiny request per request (same proxy session) to log which exit IP was used, and shows which IP vpngate says it saw.",
            "default": true
          },
          "maxTrafficMB": {
            "title": "Max proxy traffic (MB)",
            "minimum": 0,
            "type": "integer",
            "description": "Safety limit. Residential proxy costs about $8 per GB, so 300 MB is at most about $2.40 (counted before compression, real use is usually lower). 0 = no limit.",
            "default": 300
          },
          "stopAfterListsWithoutNew": {
            "title": "Stop after N list downloads without a new server",
            "minimum": 0,
            "type": "integer",
            "description": "Ends the list downloading when this many downloads in a row bring no new US server. 0 = never.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Free plans have only 5 datacenter IPs, so list downloads repeat. Choose the RESIDENTIAL group (about $8/GB, new IP per session) or UNBLOCKER (per request, no sessions) in the proxy groups.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}