{
  "openapi": "3.0.1",
  "info": {
    "title": "Twitter Retweet Checker",
    "description": "A Twitter Retweet Checker that checks if a specific Twitter user has retweeted a particular tweet.",
    "version": "0.0",
    "x-build-id": "HGVZYwK0e8Jm1WC3k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dead00~twitter-retweet-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dead00-twitter-retweet-checker",
        "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/dead00~twitter-retweet-checker/runs": {
      "post": {
        "operationId": "runs-sync-dead00-twitter-retweet-checker",
        "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/dead00~twitter-retweet-checker/run-sync": {
      "post": {
        "operationId": "run-sync-dead00-twitter-retweet-checker",
        "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": [
          "cookies",
          "username",
          "tweet_url"
        ],
        "properties": {
          "cookies": {
            "title": "Twitter Cookies (Recommended)",
            "type": "string",
            "description": "JSON string of Twitter cookies for authentication. Export cookies from your browser as JSON (e.g., [{'name': 'auth_token', 'value': 'your_auth_token_here', 'domain': '.x.com', 'path': '/', ...}, ...]). Preferred method for reliable authentication.",
            "default": "[{\"domain\":\".x.com\",\"expirationDate\":1809160067.143722,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"auth_token\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"17a096a1f4e6d40234d04416b6f5e8dd9d4aaa10\"},{\"domain\":\".x.com\",\"expirationDate\":1774609057.211549,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"gt\",\"path\":\"/\",\"sameSite\":null,\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"2037446447470383354\"},{\"domain\":\".x.com\",\"expirationDate\":1809160056.93491,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"guest_id\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"v1%3A177460006153566118\"},{\"domain\":\".x.com\",\"expirationDate\":1806136515.572667,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"twid\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"u%3D1920455259413200896\"},{\"domain\":\".x.com\",\"expirationDate\":1774601856.934959,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"__cf_bm\",\"path\":\"/\",\"sameSite\":null,\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"WK2tAL9J1ONov8fSVzTusoxG8QI2YCeJdHWP8ISnZWA-1774600061.4018009-1.0.1.1-uhH5.buO6r5tsdzHT0SmvCFzs9YMTxDKn4USkIRh.SvA3tABkfJ1hRmG6c82o8doTPxLeACnPiaDMGg4pBIlExslitLoM5RxIsIT22ZMlRFnGe1fXh_c2HYDAMi0LsBa\"},{\"domain\":\".x.com\",\"expirationDate\":1809160067.571601,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"ct0\",\"path\":\"/\",\"sameSite\":\"lax\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"1f689eff25248ff9b01e4ed7da49875f166a2379d95ed93effc0fe6e9b849d64c998686a07e5ffcf1e58aa2cf16d55fd4727ba988d3c85a1d3c7145b4fb69fbb7530465525c3b834c36cc7ae75455ca5\"},{\"domain\":\".x.com\",\"expirationDate\":1809160514.71244,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"guest_id_ads\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"v1%3A177460006153566118\"},{\"domain\":\".x.com\",\"expirationDate\":1809160514.712589,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"guest_id_marketing\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"v1%3A177460006153566118\"},{\"domain\":\".x.com\",\"expirationDate\":1809160067.143491,\"hostOnly\":false,\"httpOnly\":true,\"name\":\"kdt\",\"path\":\"/\",\"sameSite\":null,\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"RtFEjBsmmcoMdKB6l5k7TAPI7Q86mSCQAEjjhKyj\"},{\"domain\":\".x.com\",\"expirationDate\":1809160057.211493,\"hostOnly\":false,\"httpOnly\":false,\"name\":\"personalization_id\",\"path\":\"/\",\"sameSite\":\"no_restriction\",\"secure\":true,\"session\":false,\"storeId\":null,\"value\":\"\\\"v1_eW8avnf3KDYX+tXI9+jd1w==\\\"\"}]"
          },
          "username": {
            "title": "Username to Check",
            "type": "string",
            "description": "Twitter username to check for retweets (without @ symbol).",
            "default": "Deepanshus55343"
          },
          "tweet_url": {
            "title": "Tweet URL",
            "type": "string",
            "description": "Full URL of the tweet to check for retweets (must be from twitter.com or x.com).",
            "default": "https://x.com/WisdomStoics/status/1938611091497746651"
          },
          "delayBetweenRequests": {
            "title": "Delay Between Requests (seconds)",
            "type": "string",
            "description": "Delay between API requests to avoid rate limiting, in seconds (e.g., '3' or '3.5'). Default is 3 seconds.",
            "default": "3"
          },
          "delayBetweenChecks": {
            "title": "Delay Between User Checks (seconds)",
            "type": "string",
            "description": "Delay between checking different users to avoid rate limiting, in seconds (e.g., '30' or '30.5'). Default is 30 seconds.",
            "default": "30"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}