{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Keyword Post Monitor — New Posts & Request Signals",
    "description": "Monitor LinkedIn keyword searches for newly observed posts. Export source links, exact phrase evidence and request-language signals with persistent deduplication. Uses separately billed HarvestAPI collection, or process an existing dataset without a new source run.",
    "version": "0.1",
    "x-build-id": "8XObdgwnD6r1tup3R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agency-shift~linkedin-keyword-post-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agency-shift-linkedin-keyword-post-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/agency-shift~linkedin-keyword-post-monitor/runs": {
      "post": {
        "operationId": "runs-sync-agency-shift-linkedin-keyword-post-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/agency-shift~linkedin-keyword-post-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-agency-shift-linkedin-keyword-post-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",
        "required": [
          "sourceMode"
        ],
        "properties": {
          "sourceMode": {
            "title": "Post source",
            "enum": [
              "search",
              "dataset"
            ],
            "type": "string",
            "description": "Live search uses paid HarvestAPI collection on your account. Existing dataset mode processes data you already collected and starts no new scraper.",
            "default": "search"
          },
          "queries": {
            "title": "LinkedIn search queries",
            "maxItems": 5,
            "type": "array",
            "description": "One to five keyword or Boolean queries. Required for live search. Search is provided by HarvestAPI; matching a query is not proof of buying intent.",
            "items": {
              "type": "string"
            }
          },
          "sourceDatasetId": {
            "title": "Existing post dataset",
            "type": "string",
            "description": "Required only in dataset mode. An Apify dataset containing compatible LinkedIn post rows. Only read permission is requested."
          },
          "postedLimit": {
            "title": "Source time window",
            "enum": [
              "24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Live-search filter passed to the source. Dataset mode preserves the supplied data and does not independently enforce this time window.",
            "default": "week"
          },
          "sortBy": {
            "title": "Source sort order",
            "enum": [
              "date",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is usually useful for monitoring. This controls source selection, not a guarantee of complete LinkedIn coverage.",
            "default": "date"
          },
          "includePhrases": {
            "title": "Text must contain any of these phrases",
            "maxItems": 20,
            "type": "array",
            "description": "Optional case-insensitive literal substring rules applied after collection. Output includes exact matched text and offsets. Collection charges apply before filtering.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludePhrases": {
            "title": "Exclude text containing these phrases",
            "maxItems": 20,
            "type": "array",
            "description": "Optional case-insensitive literal exclusions. Excluded posts are not charged our post-record fee; source fees still apply.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "requestsOnly": {
            "title": "Keep question or request language only",
            "type": "boolean",
            "description": "Uses simple English phrase rules and question punctuation, not AI or verified purchase intent. Rhetorical and promotional questions can still match; review the supplied evidence.",
            "default": false
          },
          "mode": {
            "title": "Output mode",
            "enum": [
              "new",
              "snapshot"
            ],
            "type": "string",
            "description": "New posts remembers delivered identities across runs. Snapshot emits the observed qualifying posts each scan. Neither mode infers deleted posts or complete source coverage.",
            "default": "new"
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$",
            "type": "string",
            "description": "Reuse a name for recurring scans. Query, source and filter changes create a separate baseline. A new name deliberately creates new history.",
            "default": "default"
          },
          "emitInitial": {
            "title": "Output first-run matches",
            "type": "boolean",
            "description": "Disable to save the initial qualifying baseline without post-record fees. Live-source and platform costs still apply.",
            "default": true
          },
          "maxScanPosts": {
            "title": "Maximum source posts examined",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Shared cap across all queries. For live search each query receives floor(cap/query count), so the total requested never exceeds this cap. Repeats and excluded source posts count toward source work.",
            "default": 50
          },
          "maxResults": {
            "title": "Maximum delivered posts per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Caps this monitor output. Qualified overflow is saved for the next run before another source scan. Changing this cap does not reset history.",
            "default": 25
          },
          "maxSourceChargeUsd": {
            "title": "Maximum HarvestAPI charge in USD",
            "minimum": 0.01,
            "maximum": 10,
            "type": "number",
            "description": "Separate child-run PPE ceiling, not a total account or parent-platform budget. A source run reaching its limit can stop with incomplete data. No automatic source retries or enrichment.",
            "default": 0.1
          },
          "sourceTimeoutSecs": {
            "title": "Source timeout in seconds",
            "minimum": 60,
            "maximum": 300,
            "type": "integer",
            "description": "Live source timeout is also constrained by the parent time remaining. A failed source does not establish an empty baseline.",
            "default": 180
          },
          "maxHistoryItems": {
            "title": "Maximum remembered and queued posts",
            "minimum": 100,
            "maximum": 50000,
            "type": "integer",
            "description": "History never silently expires or evicts records. At the count or 16 MB size limit, the monitor stops and asks for a new monitor or a higher supported count.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}