{
  "openapi": "3.0.1",
  "info": {
    "title": "News Article Scraper (any news site)",
    "description": "News Article Scraper (any news site) SD - News Article Scraper (any news site) is a news scraping tool that extracts articles from any news website: title, author, date, full text, Markdown, images, tags and links, found on section pages, RSS feeds or sitemaps.",
    "version": "1.0",
    "x-build-id": "kUlceerFtpaks1HGR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~news-article-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-news-article-scraper",
        "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/neuro-scraper~news-article-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-news-article-scraper",
        "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/neuro-scraper~news-article-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-news-article-scraper",
        "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": {
          "startUrls": {
            "title": "Website / section URLs",
            "type": "array",
            "description": "News home pages, section, category or tag pages (e.g. https://news.mit.edu/topic/artificial-intelligence2), RSS / Atom feed URLs or sitemap URLs. Article links are found on each page and the page's own next-page link is followed until the limits below. An article URL put here is extracted as an article.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "articleUrls": {
            "title": "Article URLs",
            "type": "array",
            "description": "Direct article URLs, e.g. https://www.euronews.com/2026/10/09/graphene-opens-new-way-to-detect-brain-damage-after-stroke. Each is extracted as it is (no crawling). Minimum words and Must have date do not apply to them; date filters and keywords do. A `urls` list in API input is accepted too.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "Sitemaps (news sitemaps work best) whose article URLs are extracted, newest first, e.g. https://www.example.com/news-sitemap.xml. Sitemap indexes are followed; child sitemaps older than 'Articles from' are skipped.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxArticlesPerCrawl": {
            "title": "Max articles (total)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most articles saved in this run, over all inputs. 0 = no limit. The main control over what a run costs.",
            "default": 30
          },
          "sortBy": {
            "title": "Sort articles",
            "enum": [
              "site",
              "time"
            ],
            "type": "string",
            "description": "site = rows are saved as soon as each article is read, in the order the site lists them; time = rows are kept until the run ends and then saved newest first by publication date.",
            "default": "site"
          },
          "maxArticlesPerStartUrl": {
            "title": "Max articles per start URL",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most articles per start URL / sitemap list, followed page by page through the site's own next-page links, feed pages or sitemap files. 0 = only the total limit applies.",
            "default": 0
          },
          "maxPagesPerCrawl": {
            "title": "Max pages loaded (total)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most pages requested in the run: start pages, next pages, feeds, sitemaps and articles (also those that turn out not to be articles). 0 = no limit.",
            "default": 0
          },
          "maxDepth": {
            "title": "Max crawl depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many levels of non-article links (other sections, tags) to follow from each start URL. 0 = only the start page and its next pages. Pseudo-URLs and Link selector narrow what is followed.",
            "default": 0
          },
          "dateFrom": {
            "title": "Articles from (date)",
            "type": "string",
            "description": "Only articles published on or after this date: YYYY-MM-DD (e.g. 2026-10-01) or relative, e.g. 3 days, 2 weeks, 1 month. Lists are read newest first, so paging stops once a page holds only older articles.",
            "default": ""
          },
          "dateTo": {
            "title": "Articles to (date)",
            "type": "string",
            "description": "Only articles published on or before this date (the whole day counts): YYYY-MM-DD, e.g. 2026-10-08, or relative, e.g. 1 day.",
            "default": ""
          },
          "onlyArticlesForLastDays": {
            "title": "Only articles of the last X days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Only articles published in the last X days before the run starts, e.g. 7. 0 = off. With 'Articles from' too, the later date wins.",
            "default": 0
          },
          "mustHaveDate": {
            "title": "Must have date",
            "type": "boolean",
            "description": "Skip discovered pages without a publication date (it also keeps section and profile pages out). Article URLs you list are always kept.",
            "default": true
          },
          "minWords": {
            "title": "Minimum words",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip discovered pages whose main text has fewer words, e.g. 150. Article URLs you list are always kept.",
            "default": 150
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only articles whose title, description, text or tags contain at least one of these words or phrases (not case-sensitive), e.g. climate. Checked by the Actor after loading each article. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNewArticles": {
            "title": "Only new articles (per domain)",
            "type": "boolean",
            "description": "Skip articles saved by earlier runs with this option on. Seen article URLs are kept per domain in your named key-value store 'news-article-scraper-seen' and checked before loading (no cost for skipped ones). Good for scheduled monitoring.",
            "default": false
          },
          "onlyInsideArticles": {
            "title": "Only articles on the same domain",
            "type": "boolean",
            "description": "Only articles on the domain of the page that links to them (e.g. a link from bbc.com to bbc.co.uk is skipped). Feed items are always kept.",
            "default": true
          },
          "onlySubdomainArticles": {
            "title": "Only articles under the start URL path",
            "type": "boolean",
            "description": "Only articles whose URL begins with the start URL, e.g. start https://www.example.com/tech keeps https://www.example.com/tech/... only.",
            "default": false
          },
          "crawlWholeSubdomain": {
            "title": "Crawl whole section",
            "type": "boolean",
            "description": "Follow every non-article link that begins with the start URL (any depth, bounded by Max pages loaded), e.g. start https://www.example.com/tech crawls all of /tech.",
            "default": false
          },
          "enqueueFromArticles": {
            "title": "Find articles inside articles",
            "type": "boolean",
            "description": "Also collect article links found on article pages (related stories). Normally only listing pages are mined for articles.",
            "default": false
          },
          "scanFeeds": {
            "title": "Use the site's RSS / Atom feeds",
            "type": "boolean",
            "description": "Also read the feeds a start page announces (<link rel=alternate>), with their next pages (Atom next links, WordPress ?paged=N). Feed URLs given as start URLs are always read.",
            "default": false
          },
          "scanSitemaps": {
            "title": "Use the site's sitemaps",
            "type": "boolean",
            "description": "Also read the sitemaps listed in each start site's robots.txt (news sitemaps first, newest first). Sites keep years of URLs there - combine with 'Articles from'.",
            "default": false
          },
          "isUrlArticleDefinition": {
            "title": "Which links are articles",
            "type": "object",
            "description": "A link is opened as an article when ANY rule is true: minDashes = dashes in one path segment (0 = off), hasDate = a date in the path (/2026/10/09/), linkIncludes = text in the URL, hasNumericId = 6+ digit id in the path. Pages are then checked (article schema / og:type, words, date) before saving.",
            "default": {
              "minDashes": 4,
              "hasDate": true,
              "linkIncludes": [
                "article",
                "storyid",
                "?p=",
                "id=",
                "/fpss/track",
                ".html",
                "/content/"
              ],
              "hasNumericId": true
            }
          },
          "linkSelector": {
            "title": "Link selector",
            "type": "string",
            "description": "CSS selector of the links (or blocks holding links) to use on listing pages, e.g. main a or .article-list a. Empty = every link of the page.",
            "default": ""
          },
          "pseudoUrls": {
            "title": "Pseudo-URLs (listing pages to follow)",
            "type": "array",
            "description": "Extra listing pages (pagination, categories) to follow, as pseudo-URLs: [regex] parts inside brackets, the rest literal, e.g. https://www.example.com/category/[.+]. Used with Max crawl depth >= 1. Articles are still found by the article rules.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "outputFormat": {
            "title": "Article text format",
            "enum": [
              "both",
              "text",
              "markdown"
            ],
            "type": "string",
            "description": "text = plain text in 'content'; markdown = Markdown in 'markdown' (headings, lists, tables); both = both columns.",
            "default": "both"
          },
          "extractFullContent": {
            "title": "Extract full article text",
            "type": "boolean",
            "description": "Off = metadata only (title, author, date, tags, images ...). Feed and news-sitemap items are then saved from the feed / sitemap without loading the page (much faster).",
            "default": true
          },
          "includeImages": {
            "title": "Include images",
            "type": "boolean",
            "description": "List the article's images (lead image plus images of the article body) in 'images'.",
            "default": true
          },
          "extractStructuredData": {
            "title": "Include structured data",
            "type": "boolean",
            "description": "Add the article's schema.org JSON-LD object (NewsArticle, Article, BlogPosting ...) in 'structuredData' (without the article body).",
            "default": false
          },
          "includeMetadata": {
            "title": "Include page metadata (copyright)",
            "type": "boolean",
            "description": "Reads the page's copyright notice (structured data, meta tags or the footer) into `copyright`.",
            "default": true
          },
          "saveHtml": {
            "title": "Save main-content HTML",
            "type": "boolean",
            "description": "Add the HTML of the article's main content in 'html'.",
            "default": false
          },
          "saveHtmlAsLink": {
            "title": "Save full page HTML as a link",
            "type": "boolean",
            "description": "Store each article's full page HTML in the run's key-value store and add its link in 'htmlUrl' (keeps the dataset small).",
            "default": false
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages the site's robots.txt disallows for all crawlers (User-agent: *). Its Crawl-delay is honoured (up to 10 s).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Articles loaded at the same time. Each website still gets at most about one new request per second.",
            "default": 3
          },
          "requestTimeout": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Timeout of each page request, e.g. 30. Raise it for slow sites.",
            "default": 30
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries after a network error, HTTP 429 or 5xx. A blocked page (anti-bot page) is retried once more on a new proxy session.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default (news sites block datacenter IPs more often). Pick a country when a site serves another edition or blocks foreign visitors.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}