{
  "openapi": "3.0.1",
  "info": {
    "title": "RSS & Atom Feed Reader: New & Updated Items Monitor",
    "description": "Read public RSS, Atom and RDF feeds into JSON rows. Monitor new and updated feed items.",
    "version": "0.8",
    "x-build-id": "niJHegaI2sJxerrXT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~rss-atom-feed-reader-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-rss-atom-feed-reader-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/cliqtomedia~rss-atom-feed-reader-monitor/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-rss-atom-feed-reader-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/cliqtomedia~rss-atom-feed-reader-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-rss-atom-feed-reader-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": [
          "feedUrls"
        ],
        "properties": {
          "feedUrls": {
            "title": "Feed URLs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Public feed addresses: RSS, Atom or JSON Feed. You can also add an OPML list (all feeds in it are read) or a web page that links to a feed. The scheme is optional (hnrss.org/frontpage works), several addresses may be separated by spaces, commas or new lines, and repeated addresses are read once. Login details and private network addresses are rejected.",
            "items": {
              "type": "string",
              "maxLength": 20000
            },
            "default": [
              "https://hnrss.org/frontpage"
            ]
          },
          "discoverFeeds": {
            "title": "Find feeds on web pages",
            "type": "boolean",
            "description": "If an address returns a web page instead of a feed, read the feeds the page declares in its head (up to 3). The page is opened once, links are not followed. A page without a feed link is reported as a failed feed and is not charged.",
            "default": true
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "snapshot",
              "monitor"
            ],
            "type": "string",
            "description": "Read current items or compare with the previous monitor run.",
            "default": "snapshot"
          },
          "maxItemsPerFeed": {
            "title": "Maximum items per feed",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many items from each feed. The limit counts items that passed your date and keyword filters. 0 means no limit per feed (the total limit below still applies; a monitor keeps at most 1000 items per feed).",
            "default": 50
          },
          "maxItemsTotal": {
            "title": "Maximum total items",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many saved item rows in one run.",
            "default": 1000
          },
          "sort": {
            "title": "Order",
            "enum": [
              "source",
              "publishedDesc"
            ],
            "type": "string",
            "description": "Keep feed order or show newer published items first.",
            "default": "source"
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Keep items published at or after this time. Use a UTC date or a relative window such as 24 hours, 7 days, 2 weeks, 30 minutes, 1 month, 24h or 7d, counted back from the start of the run.",
            "default": null
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Keep items published before this time. Use a UTC date or a relative window such as 1 day or 12 hours, counted back from the start of the run.",
            "default": null
          },
          "keepItemsWithoutDate": {
            "title": "Keep items without a date",
            "type": "boolean",
            "description": "When a date window is set, also keep items that have no publication date. By default such items are skipped.",
            "default": false
          },
          "includeKeywords": {
            "title": "Include keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Keep items whose title, summary, feed content or categories contain these words. See Keyword match for all or any.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Skip items whose title, summary, feed content or categories contain any of these words.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "all",
              "any"
            ],
            "type": "string",
            "description": "All: an item must contain every include keyword (AND). Any: one include keyword is enough (OR).",
            "default": "all"
          },
          "dedupeAcrossFeeds": {
            "title": "Remove repeated items across feeds",
            "type": "boolean",
            "description": "Keep the first copy when the same item appears in more than one feed.",
            "default": false
          },
          "includeContent": {
            "title": "Include feed content",
            "type": "boolean",
            "description": "Save content supplied by the feed. The Actor does not open item links.",
            "default": false
          },
          "maxSummaryChars": {
            "title": "Maximum summary characters",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit the saved feed summary to this many characters.",
            "default": 4000
          },
          "maxContentChars": {
            "title": "Maximum content characters",
            "minimum": 1000,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit the saved feed content to this many characters.",
            "default": 20000
          },
          "requestTimeoutMs": {
            "title": "Request timeout",
            "minimum": 3000,
            "maximum": 60000,
            "type": "integer",
            "description": "Stop waiting for one feed after this many milliseconds.",
            "default": 15000
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retry a temporary feed problem this many times.",
            "default": 2
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Read no more than this many feeds at the same time.",
            "default": 5
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^[A-Za-z0-9._:-]+$",
            "minLength": 1,
            "maxLength": 63,
            "type": "string",
            "description": "Monitor mode only. Name a monitor so separate jobs keep separate saved state (letters, digits, . _ : -, up to 63 characters).",
            "default": null
          },
          "resetState": {
            "title": "Start a new baseline",
            "type": "boolean",
            "description": "Monitor mode only. Forget the saved baseline of this monitor before this run and start a new one.",
            "default": false
          },
          "emitBaselineItems": {
            "title": "Show baseline items",
            "type": "boolean",
            "description": "Monitor mode only. On the first run of a monitor, also show the baseline items as NEW rows.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Show unchanged items",
            "type": "boolean",
            "description": "Monitor mode only. Also show items that did not change. Each saved unchanged item is charged like any other saved item.",
            "default": false
          },
          "emitNoLongerCurrent": {
            "title": "Show missing current items",
            "type": "boolean",
            "description": "Monitor mode only. Show items that dropped out of the current feed window. This does not mean they were deleted.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}