{
  "openapi": "3.0.1",
  "info": {
    "title": "What's Trending Today – Google Trends, HN, Bluesky & More",
    "description": "One dataset of what's trending today across Google Trends, Hacker News, Wikipedia, GitHub, Bluesky, Mastodon, Baidu and Toutiao (YouTube, X and Reddit with your own keys). Heat scores, cross-platform clusters, optional AI post ideas. $0.50 per 1,000 trends.",
    "version": "0.1",
    "x-build-id": "FkYwXMAeiajyJswuh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pandabear~trending-topics-aggregator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pandabear-trending-topics-aggregator",
        "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/pandabear~trending-topics-aggregator/runs": {
      "post": {
        "operationId": "runs-sync-pandabear-trending-topics-aggregator",
        "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/pandabear~trending-topics-aggregator/run-sync": {
      "post": {
        "operationId": "run-sync-pandabear-trending-topics-aggregator",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Platforms to collect trends from. YouTube, X and Reddit are used only if you add your own API credentials below.",
            "items": {
              "type": "string",
              "enum": [
                "googleTrends",
                "hackernews",
                "wikipedia",
                "github",
                "bluesky",
                "mastodon",
                "baidu",
                "toutiao",
                "youtube",
                "x",
                "reddit"
              ],
              "enumTitles": [
                "Google Trends (trending searches)",
                "Hacker News",
                "Wikipedia (most-read articles)",
                "GitHub (new repos by stars)",
                "Bluesky trending topics",
                "Mastodon trending tags & links",
                "Baidu 百度热搜",
                "Toutiao 头条热榜",
                "YouTube most popular (your API key)",
                "X / Twitter trends (your bearer token)",
                "Reddit hot (your Reddit app)"
              ]
            },
            "default": [
              "googleTrends",
              "hackernews",
              "wikipedia",
              "github",
              "bluesky",
              "mastodon"
            ]
          },
          "maxItemsPerSource": {
            "title": "Max items per source (per country / language)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top trends to keep from each source list.",
            "default": 10
          },
          "countries": {
            "title": "Countries (Google Trends, YouTube, X)",
            "type": "array",
            "description": "Two-letter country codes, e.g. US, GB, IN, JP, DE, BR.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "wikipediaLanguages": {
            "title": "Wikipedia languages",
            "type": "array",
            "description": "Wikipedia language editions for most-read articles (yesterday), e.g. en, es, de, ja, zh.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "keywordFilter": {
            "title": "Only keep trends containing (optional)",
            "type": "array",
            "description": "Keep only trends whose title or description contains one of these words (case-insensitive). Leave empty to keep everything.",
            "items": {
              "type": "string"
            }
          },
          "mastodonInstance": {
            "title": "Mastodon instance",
            "type": "string",
            "description": "Mastodon server whose public trends API to use.",
            "default": "mastodon.social"
          },
          "subreddits": {
            "title": "Subreddits (Reddit source)",
            "type": "array",
            "description": "Subreddits to read the hot list from with your Reddit app credentials, e.g. popular, technology, marketing.",
            "default": [
              "popular"
            ],
            "items": {
              "type": "string"
            }
          },
          "youtubeApiKey": {
            "title": "YouTube Data API key",
            "type": "string",
            "description": "Your own key from Google Cloud Console (YouTube Data API v3). Enables the YouTube most-popular source."
          },
          "xBearerToken": {
            "title": "X API bearer token",
            "type": "string",
            "description": "Your own X (Twitter) API v2 bearer token with access to the trends endpoint. Enables the X source."
          },
          "redditClientId": {
            "title": "Reddit app client ID",
            "type": "string",
            "description": "Client ID of your own Reddit 'script' or 'web' app (reddit.com/prefs/apps). Enables the Reddit source via the official API."
          },
          "redditClientSecret": {
            "title": "Reddit app client secret",
            "type": "string",
            "description": "Client secret of your Reddit app."
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional personal access token for higher GitHub API rate limits."
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "openai",
              "deepseek",
              "xai",
              "custom"
            ],
            "type": "string",
            "description": "Any OpenAI-compatible provider. AI suggestions run only if you enter your own API key.",
            "default": "openai"
          },
          "apiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "Your own API key for the selected provider. Leave empty to skip AI suggestions. You pay the provider directly."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model name. Defaults: gpt-4o-mini (OpenAI), deepseek-chat (DeepSeek), grok-3-mini (xAI)."
          },
          "aiBaseUrl": {
            "title": "Custom base URL",
            "type": "string",
            "description": "Only for provider 'custom': the OpenAI-compatible base URL, e.g. https://openrouter.ai/api/v1."
          },
          "aiTopTopics": {
            "title": "Number of topics to write ideas for",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "AI ideas are generated for the hottest cross-platform topics.",
            "default": 5
          },
          "creatorNiche": {
            "title": "Your niche",
            "type": "string",
            "description": "E.g. 'personal finance for Gen Z', 'AI tools', 'fitness'. Helps the AI find your angle."
          },
          "contentPlatform": {
            "title": "Content format",
            "type": "string",
            "description": "E.g. 'TikTok', 'YouTube Shorts', 'X thread', '小红书笔记'."
          },
          "contentLanguage": {
            "title": "Output language",
            "type": "string",
            "description": "Language for titles, hooks and scripts, e.g. English, 中文, Español."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}