{
  "openapi": "3.0.1",
  "info": {
    "title": "Stack Overflow",
    "description": "",
    "version": "0.0",
    "x-build-id": "vR3mrmRe7B8BZc8ub"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jupri~stackexchange/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jupri-stackexchange",
        "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/jupri~stackexchange/runs": {
      "post": {
        "operationId": "runs-sync-jupri-stackexchange",
        "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/jupri~stackexchange/run-sync": {
      "post": {
        "operationId": "run-sync-jupri-stackexchange",
        "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": {
          "site": {
            "title": "Site",
            "enum": [
              "stackoverflow",
              "serverfault",
              "superuser",
              "meta",
              "webapps",
              "webapps.meta",
              "gaming",
              "gaming.meta",
              "webmasters",
              "webmasters.meta",
              "cooking",
              "cooking.meta",
              "gamedev",
              "gamedev.meta",
              "photo",
              "photo.meta",
              "stats",
              "stats.meta",
              "math",
              "math.meta",
              "diy",
              "diy.meta",
              "meta.superuser",
              "meta.serverfault",
              "gis",
              "gis.meta",
              "tex",
              "tex.meta",
              "askubuntu",
              "meta.askubuntu",
              "money",
              "money.meta",
              "english",
              "english.meta",
              "stackapps",
              "ux",
              "ux.meta",
              "unix",
              "unix.meta",
              "wordpress",
              "wordpress.meta",
              "cstheory",
              "cstheory.meta",
              "apple",
              "apple.meta",
              "rpg",
              "rpg.meta",
              "bicycles",
              "bicycles.meta",
              "softwareengineering",
              "softwareengineering.meta",
              "electronics",
              "electronics.meta",
              "android",
              "android.meta",
              "boardgames",
              "boardgames.meta",
              "physics",
              "physics.meta",
              "homebrew",
              "homebrew.meta",
              "security",
              "security.meta",
              "writing",
              "writing.meta",
              "video",
              "video.meta",
              "graphicdesign",
              "graphicdesign.meta",
              "dba",
              "dba.meta",
              "scifi",
              "scifi.meta",
              "codereview",
              "codereview.meta",
              "codegolf",
              "codegolf.meta",
              "quant",
              "quant.meta",
              "pm",
              "pm.meta",
              "skeptics",
              "skeptics.meta",
              "fitness",
              "fitness.meta",
              "drupal",
              "drupal.meta",
              "mechanics",
              "mechanics.meta",
              "parenting",
              "parenting.meta",
              "sharepoint",
              "sharepoint.meta",
              "music",
              "music.meta",
              "sqa",
              "sqa.meta",
              "judaism",
              "judaism.meta",
              "german",
              "german.meta",
              "japanese",
              "japanese.meta",
              "philosophy",
              "philosophy.meta",
              "gardening",
              "gardening.meta",
              "travel",
              "travel.meta",
              "crypto",
              "crypto.meta",
              "dsp",
              "dsp.meta",
              "french",
              "french.meta",
              "christianity",
              "christianity.meta",
              "bitcoin",
              "bitcoin.meta",
              "linguistics",
              "linguistics.meta",
              "hermeneutics",
              "hermeneutics.meta",
              "history",
              "history.meta",
              "bricks",
              "bricks.meta",
              "spanish",
              "spanish.meta",
              "scicomp",
              "scicomp.meta",
              "movies",
              "movies.meta",
              "chinese",
              "chinese.meta",
              "biology",
              "biology.meta",
              "poker",
              "poker.meta",
              "mathematica",
              "mathematica.meta",
              "psychology",
              "psychology.meta",
              "outdoors",
              "outdoors.meta",
              "martialarts",
              "martialarts.meta",
              "sports",
              "sports.meta",
              "academia",
              "academia.meta",
              "cs",
              "cs.meta",
              "workplace",
              "workplace.meta",
              "chemistry",
              "chemistry.meta",
              "chess",
              "chess.meta",
              "raspberrypi",
              "raspberrypi.meta",
              "russian",
              "russian.meta",
              "islam",
              "islam.meta",
              "salesforce",
              "salesforce.meta",
              "patents",
              "patents.meta",
              "genealogy",
              "genealogy.meta",
              "robotics",
              "robotics.meta",
              "expressionengine",
              "expressionengine.meta",
              "politics",
              "politics.meta",
              "anime",
              "anime.meta",
              "magento",
              "magento.meta",
              "ell",
              "ell.meta",
              "sustainability",
              "sustainability.meta",
              "tridion",
              "tridion.meta",
              "reverseengineering",
              "reverseengineering.meta",
              "networkengineering",
              "networkengineering.meta",
              "opendata",
              "opendata.meta",
              "freelancing",
              "freelancing.meta",
              "blender",
              "blender.meta",
              "mathoverflow.net",
              "meta.mathoverflow.net",
              "space",
              "space.meta",
              "sound",
              "sound.meta",
              "astronomy",
              "astronomy.meta",
              "tor",
              "tor.meta",
              "pets",
              "pets.meta",
              "ham",
              "ham.meta",
              "italian",
              "italian.meta",
              "pt.stackoverflow",
              "pt.meta.stackoverflow",
              "aviation",
              "aviation.meta",
              "ebooks",
              "ebooks.meta",
              "alcohol",
              "alcohol.meta",
              "softwarerecs",
              "softwarerecs.meta",
              "arduino",
              "arduino.meta",
              "cs50",
              "cs50.meta",
              "expatriates",
              "expatriates.meta",
              "matheducators",
              "matheducators.meta",
              "meta.stackoverflow",
              "earthscience",
              "earthscience.meta",
              "joomla",
              "joomla.meta",
              "datascience",
              "datascience.meta",
              "puzzling",
              "puzzling.meta",
              "craftcms",
              "craftcms.meta",
              "buddhism",
              "buddhism.meta",
              "hinduism",
              "hinduism.meta",
              "communitybuilding",
              "communitybuilding.meta",
              "worldbuilding",
              "worldbuilding.meta",
              "ja.stackoverflow",
              "ja.meta.stackoverflow",
              "emacs",
              "emacs.meta",
              "hsm",
              "hsm.meta",
              "economics",
              "economics.meta",
              "lifehacks",
              "lifehacks.meta",
              "engineering",
              "engineering.meta",
              "coffee",
              "coffee.meta",
              "vi",
              "vi.meta",
              "musicfans",
              "musicfans.meta",
              "woodworking",
              "woodworking.meta",
              "civicrm",
              "civicrm.meta",
              "medicalsciences",
              "medicalsciences.meta",
              "ru.stackoverflow",
              "ru.meta.stackoverflow",
              "rus",
              "rus.meta",
              "mythology",
              "mythology.meta",
              "law",
              "law.meta",
              "opensource",
              "opensource.meta",
              "elementaryos",
              "elementaryos.meta",
              "portuguese",
              "portuguese.meta",
              "computergraphics",
              "computergraphics.meta",
              "hardwarerecs",
              "hardwarerecs.meta",
              "es.stackoverflow",
              "es.meta.stackoverflow",
              "3dprinting",
              "3dprinting.meta",
              "ethereum",
              "ethereum.meta",
              "latin",
              "latin.meta",
              "languagelearning",
              "languagelearning.meta",
              "retrocomputing",
              "retrocomputing.meta",
              "crafts",
              "crafts.meta",
              "korean",
              "korean.meta",
              "monero",
              "monero.meta",
              "ai",
              "ai.meta",
              "esperanto",
              "esperanto.meta",
              "sitecore",
              "sitecore.meta",
              "iot",
              "iot.meta",
              "literature",
              "literature.meta",
              "vegetarianism",
              "vegetarianism.meta",
              "ukrainian",
              "ukrainian.meta",
              "devops",
              "devops.meta",
              "bioinformatics",
              "bioinformatics.meta",
              "cseducators",
              "cseducators.meta",
              "interpersonal",
              "interpersonal.meta",
              "iota",
              "iota.meta",
              "stellar",
              "stellar.meta",
              "conlang",
              "conlang.meta",
              "quantumcomputing",
              "quantumcomputing.meta",
              "eosio",
              "eosio.meta",
              "tezos",
              "tezos.meta",
              "or",
              "or.meta",
              "drones",
              "drones.meta",
              "mattermodeling",
              "mattermodeling.meta",
              "cardano",
              "cardano.meta",
              "proofassistants",
              "proofassistants.meta",
              "substrate",
              "substrate.meta",
              "bioacoustics",
              "bioacoustics.meta",
              "solana",
              "solana.meta",
              "langdev",
              "langdev.meta",
              "genai",
              "genai.meta"
            ],
            "type": "string",
            "description": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "activity",
              "creation",
              "votes",
              "relevance"
            ],
            "type": "string",
            "description": ""
          },
          "order": {
            "title": "Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": ""
          },
          "limit": {
            "title": "Limit",
            "type": "integer",
            "description": "",
            "default": 1
          },
          "title": {
            "title": "Title",
            "type": "string",
            "description": "Text which must appear in returned questions titles"
          },
          "question": {
            "title": "Question",
            "type": "string",
            "description": "A free form text parameter, will match all question properties based on an undocumented algorithm"
          },
          "body": {
            "title": "Body",
            "type": "string",
            "description": "Text which must appear in returned questions bodies"
          },
          "tags": {
            "title": "Tags",
            "type": "string",
            "description": "A semicolon delimited list of tags, of which at least one will be present on all returned questions"
          },
          "fromdate": {
            "title": "From Date",
            "type": "string",
            "description": ""
          },
          "todate": {
            "title": "To Date",
            "type": "string",
            "description": ""
          },
          "answers": {
            "title": "Answers",
            "type": "integer",
            "description": "The minimum number of answers returned questions must have"
          },
          "views": {
            "title": "Views",
            "type": "integer",
            "description": "The minimum number of views returned questions must have"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}