{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo News Trending, Category & Keyword Feed by Region",
    "description": "Get Yahoo News trending top stories, category feeds, or keyword-filtered headlines across six regional editions, with source, publish date, image, and category for each article.",
    "version": "1.1",
    "x-build-id": "D6ShUHLetEYspb7u7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~yahoo-news-trending-category-and-keyword-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-yahoo-news-trending-category-and-keyword-feed",
        "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/vexaloom-labs~yahoo-news-trending-category-and-keyword-feed/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-yahoo-news-trending-category-and-keyword-feed",
        "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/vexaloom-labs~yahoo-news-trending-category-and-keyword-feed/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-yahoo-news-trending-category-and-keyword-feed",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "getTrending",
              "browseCategory",
              "search"
            ],
            "type": "string",
            "description": "What to collect: trending top stories, one or more category feeds, or a keyword search across Yahoo News.",
            "default": "getTrending"
          },
          "region": {
            "title": "Region",
            "enum": [
              "us",
              "uk",
              "ca",
              "au",
              "sg",
              "jp"
            ],
            "type": "string",
            "description": "Yahoo News edition used for trending and category feeds. Search mode queries all of Yahoo News; this value labels the run.",
            "default": "us"
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "One or more keywords or phrases to search across Yahoo News (required for search mode). Results are paginated and deduplicated. E.g. 'AI regulation', 'climate change', 'Apple iPhone'.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "One or more category feeds to scrape (required for browseCategory mode). Availability depends on Region: US supports topstories, us, world, politics, science, weather, entertainment, lifestyle, health, sports, finance; UK supports topstories, uk, world, politics, science, weather, finance, sports; Canada supports topstories, canada, world, politics, us, science, weather, sports, finance; Australia supports topstories, australia, world, politics, science, sports, weather, finance; Singapore supports topstories, singapore, world, politics, sports, finance, weather; Japan supports topstories, domestic, world, business, entertainment, sports, it, science, local. Categories not available for the chosen region are skipped with a warning.",
            "items": {
              "type": "string",
              "enum": [
                "topstories",
                "us",
                "uk",
                "canada",
                "australia",
                "singapore",
                "world",
                "politics",
                "science",
                "weather",
                "entertainment",
                "sports",
                "finance",
                "health",
                "lifestyle",
                "domestic",
                "business",
                "it",
                "local"
              ],
              "enumTitles": [
                "Top Stories",
                "US News",
                "UK News",
                "Canada News",
                "Australia News",
                "Singapore News",
                "World News",
                "Politics",
                "Science & Tech / Environment",
                "Weather",
                "Entertainment",
                "Sports",
                "Finance",
                "Health",
                "Lifestyle",
                "Domestic (JP)",
                "Business (JP)",
                "IT (JP)",
                "Local (JP)"
              ]
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum total articles to return across all queries or categories (1–1000). Pagination stops at this number or when the source is exhausted.",
            "default": 50
          },
          "keyword": {
            "title": "Keyword Filter",
            "type": "string",
            "description": "Optional: only return articles whose title or summary contains this keyword (case-insensitive)."
          },
          "sourceFilter": {
            "title": "Source Filter",
            "type": "string",
            "description": "Optional: only return articles from publishers whose name contains this string (case-insensitive). E.g. 'Reuters', 'AP', 'BBC'."
          },
          "includeArticleDetails": {
            "title": "Fetch Full Article Details",
            "type": "boolean",
            "description": "Open each article page to fill exact publication date, author, publisher URL, keywords, image dimensions, and the full summary. Turn off for the fastest, list-only records (dates may be approximate in search mode).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}