{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Monitor",
    "description": "Monitor Meta Threads accounts, brands, competitors and hashtags and get only the posts you were not given before: author, text, time, likes, replies, reposts, views, media, links, mentions. Schedule runs, export the data, or integrate with other tools or AI workflows.",
    "version": "0.0",
    "x-build-id": "GplCtjCxsmCnDizZ5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~threads-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-threads-monitor",
        "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/lergassy~threads-monitor/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-threads-monitor",
        "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/lergassy~threads-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-threads-monitor",
        "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": {
          "usernames": {
            "title": "👤 Accounts to watch",
            "type": "array",
            "description": "Threads accounts to check on every run. Enter a username, with or without the @, or a full profile URL. Leave empty to watch keywords only.",
            "default": [
              "zuck"
            ],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords and hashtags to watch",
            "type": "array",
            "description": "Brand names, product names, competitors or #hashtags. Every run returns the posts mentioning them that were not returned before.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "watchName": {
            "title": "🔔 Watch name",
            "type": "string",
            "description": "The name this watch remembers itself by. Give it any name — <b>brand-mentions</b>, <b>competitors</b> — and every run under that name returns only posts it has not returned before. Leave it empty for a preview run that remembers nothing and simply returns the latest posts.",
            "default": ""
          },
          "maxPostsPerCheck": {
            "title": "💯 Posts to check per target",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How far down each account or search page to look on every run. Twenty-five covers a busy account checked hourly; raise it for rare checks of very active accounts.",
            "default": 25
          },
          "maxAgeHours": {
            "title": "⏱️ Ignore posts older than (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Skip anything published longer ago than this, even if the watch has never seen it. Useful on the first run and after a pause, so an old post does not arrive as breaking news. Zero means no age limit.",
            "default": 0
          },
          "deliverBaseline": {
            "title": "📥 Deliver what is already there on the first run",
            "type": "boolean",
            "description": "On the very first run of a new watch there is nothing to compare against. Leave this on to receive the posts that are on the page right now, so you can see what is being watched; turn it off to start silently and be told only about posts published from now on.",
            "default": true
          },
          "filterKeywords": {
            "title": "🧹 Only tell me about posts containing",
            "type": "array",
            "description": "Extra words a post must contain to be delivered. A post filtered out here is still remembered, so it will not arrive later as new.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "🌐 Languages",
            "type": "array",
            "description": "Two-letter codes such as en, ru, id. Threads labels only some posts with a language, so the script of the text is used where the label is missing.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "❤️ Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore posts below this number of likes. Zero delivers everything.",
            "default": 0
          },
          "minReplies": {
            "title": "💬 Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore posts below this number of replies. Zero delivers everything.",
            "default": 0
          },
          "searchTypes": {
            "title": "🔎 Which search pages to read for keywords",
            "type": "array",
            "description": "Recent gives the newest mentions and is what a watch normally wants. Top adds the ones Threads ranks highest, tags reads the hashtag page.",
            "items": {
              "type": "string",
              "enum": [
                "recent",
                "top",
                "tags"
              ],
              "enumTitles": [
                "Recent",
                "Top",
                "Hashtag page"
              ]
            },
            "default": [
              "recent",
              "top"
            ]
          },
          "resetWatch": {
            "title": "♻️ Forget everything this watch remembers",
            "type": "boolean",
            "description": "Wipe the memory of this watch name and start a new baseline on this run. Use it after changing what you watch.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "type": "integer",
            "description": "A hard ceiling on what one run can deliver and bill, whatever it finds.",
            "default": 1000
          },
          "concurrency": {
            "title": "Parallel checks",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many watched targets to check at the same time.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is used by default and needs no setup. Threads is read without a login, so datacenter proxies are enough.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}