{
  "openapi": "3.0.1",
  "info": {
    "title": "RSS Feed Reader: Only New Items (RSS, Atom, JSON)",
    "description": "RSS feed reader for RSS, Atom and JSON Feed in bulk: give feed URLs or a website and the feed is found. Returns only items not seen since the last run: title, link, date, author, summary, content. Keyword and date filters. $0.30 per 1,000 new items, no start fee, failed and unchanged feeds free.",
    "version": "1.0",
    "x-build-id": "r7MjDpDGb3yEYJlii"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xsi~rss-feed-reader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xsi-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/xsi~rss-feed-reader/runs": {
      "post": {
        "operationId": "runs-sync-xsi-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/xsi~rss-feed-reader/run-sync": {
      "post": {
        "operationId": "run-sync-xsi-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",
        "required": [
          "feeds"
        ],
        "properties": {
          "feeds": {
            "title": "Feeds or websites",
            "type": "array",
            "description": "Feed URLs (RSS, Atom or JSON Feed) or any website URL / domain. For a website we look at <link rel=alternate> tags, then the usual paths (/feed, /rss.xml, /atom.xml, /feed.json…). Up to 2,000 per run. Duplicates are removed for free.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new items since last run",
            "type": "boolean",
            "description": "On a scheduled run, only items you have not already received are returned and charged. First run returns the newest items (up to the cap below) and remembers the rest so they are not billed later. Turn off to always return the current items in the feed (still free of already-seen ones if you leave the state store set and this on).",
            "default": true
          },
          "stateStore": {
            "title": "State store name",
            "type": "string",
            "description": "A named key-value store on your account, keyed per feed (seen item ids, ETag, Last-Modified). Keep the same name on a schedule so 'only new items' works. Leave empty to disable persistence (every run returns the current items).",
            "default": "rss-feed-reader-state"
          },
          "resetState": {
            "title": "Reset seen items for these feeds",
            "type": "boolean",
            "description": "Forget previously seen items (and ETags) for the feeds in this run, as if it were the first run.",
            "default": false
          },
          "keywords": {
            "title": "Keyword filter (optional)",
            "type": "array",
            "description": "Keep only items whose title, summary, content or categories contain these words. Filtered items are free and remembered as seen so they do not come back. Empty = keep everything.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = at least one keyword; all = every keyword must match.",
            "default": "any"
          },
          "publishedSince": {
            "title": "Only items published since",
            "type": "string",
            "description": "A date (2025-01-31) or a period (\"7 days\", \"24 hours\", \"3 months\"). Items without a date are dropped when this is set. They are free."
          },
          "maxItemsPerFeed": {
            "title": "Max new items per feed",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cost cap per feed for this run (100 items = $0.03 on the Free plan). All items currently in the feed are still marked as seen, so older ones will not appear as 'new' later.",
            "default": 100
          },
          "includeContent": {
            "title": "Include full content from the feed",
            "type": "boolean",
            "description": "Add contentText (and contentHtml when the feed provides HTML). This is the text already in the feed (content:encoded, Atom content, JSON Feed), not a crawl of the article page.",
            "default": true
          },
          "flatOutput": {
            "title": "Flat output (webhooks, Make, n8n, Clay)",
            "type": "boolean",
            "description": "One level of fields only: categories as a comma-separated string, no nested objects or arrays. Easier to map in a webhook.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Feeds in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many feeds are fetched at the same time.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Timeout per request (s)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per feed or page (one retry on timeout, 429 or 5xx).",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}