{
  "openapi": "3.0.1",
  "info": {
    "title": "RSS Feed Reader & Monitor: New Items from Any Feed",
    "description": "RSS feed reader and monitor: read RSS, Atom and JSON feeds (or find the feed of a website) into clean rows with title, link, date, author, text and enclosures. 'Only new items' returns just what is new since the last run. $0.0005 per feed check and per item; failed feeds free.",
    "version": "0.1",
    "x-build-id": "ndsLV5HX4moQiodvP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/klarto~rss-feed-reader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-klarto-rss-feed-reader",
        "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/klarto~rss-feed-reader/runs": {
      "post": {
        "operationId": "runs-sync-klarto-rss-feed-reader",
        "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/klarto~rss-feed-reader/run-sync": {
      "post": {
        "operationId": "run-sync-klarto-rss-feed-reader",
        "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": {
          "feeds": {
            "title": "Feeds",
            "type": "array",
            "description": "RSS, Atom, RDF or JSON Feed links, one per line. A website link also works: the Actor finds the feed the page announces (or a usual address such as /feed). Repeated links are read once.",
            "items": {
              "type": "string"
            }
          },
          "datasets": {
            "title": "Datasets with feed links",
            "type": "array",
            "description": "Optional: datasets whose rows hold feed or website links, e.g. the output of another Actor. Picking a dataset gives this Actor read access to it (limited permissions). Through the API pass dataset IDs or 'username~name'. Used together with 'Feed link fields'."
          },
          "feedFields": {
            "title": "Feed link fields",
            "type": "array",
            "description": "Fields of the dataset rows that hold the links. Use dots for nested fields (site.feed), numbers for list items (feeds.0) and * for every item of a list (feeds.*). Ignored without 'Datasets with feed links'.",
            "default": [
              "url"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyNewItems": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Return only items this monitor has not returned before (a list per feed in your account, key-value store 'klarto-rss-feed-reader'). The first run returns the current items. Items removed by filters or the per-feed cap count as seen. Unchanged feeds are asked with ETag/Last-Modified. Use it in a schedule.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps a separate list of seen items for each name, e.g. one per schedule or client. Letters, digits, '-' and '_' (up to 50). Do not start two runs with the same name at the same time. Used only with 'Only new items'.",
            "default": "default"
          },
          "since": {
            "title": "Published since",
            "type": "string",
            "description": "Optional: skip items published before this date or period, e.g. 2026-11-01, 2026-11-01T08:00:00Z, 24 hours, 7 days. Items without a date are kept."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional: keep only items whose title, summary, full text or categories contain at least one of these words or phrases (any case, whole words: 'AI' does not match 'said'). With 'Only new items', filtered-out items count as seen.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional: drop items that contain any of these words or phrases (any case, whole words).",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerFeed": {
            "title": "Max items per feed",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The newest items kept from each feed after filters. With 'Only new items', older new items over this number are counted as seen and not returned later.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop returning items after this many in one run (up to 100,000). Items not returned because of this limit come in the next run with 'Only new items'.",
            "default": 10000
          },
          "includeContent": {
            "title": "Include full text",
            "type": "boolean",
            "description": "Add 'contentText': the item's full content as plain text (up to 100,000 characters), when the feed carries it. The summary is always included.",
            "default": true
          },
          "includeHtml": {
            "title": "Include HTML",
            "type": "boolean",
            "description": "Add 'contentHtml': the item's content or summary as HTML (cleaned of scripts by the feed parser), up to 200,000 characters.",
            "default": false
          },
          "findFeeds": {
            "title": "Find feeds in web pages",
            "type": "boolean",
            "description": "When a link opens a web page, read the feed it announces (<link rel=\"alternate\">), else try /feed, /feed.xml, /rss.xml, /atom.xml and /index.xml on that site.",
            "default": true
          },
          "maxFeeds": {
            "title": "Max feeds",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Read at most this many unique feeds per run (up to 5,000).",
            "default": 1000
          },
          "maxFeedSizeMb": {
            "title": "Max feed size",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bigger feeds are not read and are free. Podcast feeds with a long history can be 10-30 MB: raise this and give the run more memory (about 25x the feed size; the default 512 MB reads feeds up to 20 MB).",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout per feed",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "A feed that does not load in this time is retried, then reported as an error (free).",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Feeds read at once. At most 2 feeds at once start from the same site (the host of your link), whatever this value.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}