{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Hype Tracker - Daily Trending AI Dashboard",
    "description": "Scrapes GitHub trending repos, Hugging Face models, and AI news. Ranks by virality score. Perfect for newsletters, YouTube content, and trend analysis.",
    "version": "1.0",
    "x-build-id": "h1PGyIb3AhvPq5CpM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wheat_tourist~ai-hype-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wheat_tourist-ai-hype-tracker",
        "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/wheat_tourist~ai-hype-tracker/runs": {
      "post": {
        "operationId": "runs-sync-wheat_tourist-ai-hype-tracker",
        "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/wheat_tourist~ai-hype-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-wheat_tourist-ai-hype-tracker",
        "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": {
          "scrapeGithub": {
            "title": "GitHub trending and topics",
            "type": "boolean",
            "description": "Collect public trending repositories and six AI topic pages. No code or private repositories are fetched.",
            "default": true
          },
          "scrapeHuggingFace": {
            "title": "Hugging Face models",
            "type": "boolean",
            "description": "Collect popular, newly created and task-specific public model metadata; no model weights are downloaded.",
            "default": true
          },
          "scrapeNews": {
            "title": "AI news and community stories",
            "type": "boolean",
            "description": "Collect TechCrunch, AI News, VentureBeat feeds, recent Hacker News AI stories and five subreddit feeds. Coverage depends on source availability.",
            "default": true
          },
          "scrapeArxiv": {
            "title": "Include arXiv research papers",
            "type": "boolean",
            "description": "Opt in to latest cs.AI, cs.LG, cs.CL and cs.CV papers via the free public Atom API; maximum 100 per run.",
            "default": false
          },
          "sourceMaxItems": {
            "title": "Candidate limit per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum candidates retained per enabled source, 1–500. Discovery uses bounded source lists, not exhaustive pagination.",
            "default": 200
          },
          "englishOnly": {
            "title": "Prefer English text",
            "type": "boolean",
            "description": "Apply the legacy >70% ASCII heuristic consistently across sources. This is not reliable language detection. Disable to include non-Latin text.",
            "default": true
          },
          "aiOnly": {
            "title": "Only AI-related content",
            "type": "boolean",
            "description": "Exclude GitHub trending repositories and articles not matched by bounded AI keyword rules. Neutral by default for compatibility.",
            "default": false
          },
          "includeKeywords": {
            "title": "Include keywords (any match)",
            "maxItems": 30,
            "type": "array",
            "description": "Case-insensitive literal substring matches in names, descriptions, titles, tags and entities. Any keyword may match; empty means no restriction.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords (any match)",
            "maxItems": 30,
            "type": "array",
            "description": "Drop an item if any case-insensitive literal substring matches. Exclusions take priority over inclusions.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "topics": {
            "title": "Topic watchlist (any match)",
            "maxItems": 30,
            "type": "array",
            "description": "Choose zero or more: agents, llm, image, audio, video, coding, research, infrastructure. Rule-based labels; no paid AI call.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxAgeHours": {
            "title": "Maximum item age in hours",
            "minimum": 0,
            "maximum": 87600,
            "type": "integer",
            "description": "0 disables. Otherwise require publication/creation time within this many hours. Unknown dates are excluded; GitHub trending has no creation date.",
            "default": 0
          },
          "minScore": {
            "title": "Minimum virality score",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop items below this score; 0 disables. Legacy scores are unbounded, source-specific popularity heuristics, not calibrated quality probabilities.",
            "default": 0
          },
          "clusterDuplicates": {
            "title": "Cluster repeated stories across sources",
            "type": "boolean",
            "description": "Opt in to grouping identical canonical target URLs or exact normalized full titles of at least 15 characters and three words. Keep highest-score representative and add mentions/provenance. No fuzzy merging.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum returned items",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "0 returns all discovered matches within source limits. Otherwise return the top N after filters/clustering; history observes matches before this limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Rank results by",
            "enum": [
              "score",
              "velocity"
            ],
            "type": "string",
            "description": "score preserves legacy order. velocity requires trackHistory; measured items precede new/unmeasured ones, with score as tie-breaker.",
            "default": "score"
          },
          "trackHistory": {
            "title": "Track momentum across runs",
            "type": "boolean",
            "description": "Opt in to persistent named-store observations. First run establishes a baseline; subsequent runs add score deltas and per-hour velocity.",
            "default": false
          },
          "historyStoreName": {
            "title": "Persistent history store name",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,62}$",
            "type": "string",
            "description": "Named Apify key-value store shared across runs. Use a different name/key for each watchlist. Keep runs sequential to avoid last-writer-wins overwrites.",
            "default": "ai-hype-tracker-history"
          },
          "historyKey": {
            "title": "History record key",
            "pattern": "^[a-zA-Z0-9_.-]{1,128}$",
            "type": "string",
            "description": "Key for one versioned history snapshot. Letters, digits, underscores, hyphens and dots only; no paths.",
            "default": "TREND-HISTORY"
          },
          "historyRetentionDays": {
            "title": "History retention in days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Expire observations last seen more than this many days ago. Only the most recent observation per identity is retained.",
            "default": 30
          },
          "historyMaxItems": {
            "title": "Maximum stored identities",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Bound the persisted snapshot size. Retain most recently seen identities, with current-run items favored on ties.",
            "default": 5000
          },
          "outputFormat": {
            "title": "Legacy dashboard formats",
            "enum": [
              "json",
              "html",
              "markdown",
              "all"
            ],
            "type": "string",
            "description": "Dataset and stats.json are always produced. Choose optional HTML, Markdown, both (all), or neither (json).",
            "default": "all"
          },
          "generateDigest": {
            "title": "Create JSON, Markdown and RSS digest",
            "type": "boolean",
            "description": "Opt in to three top-N files in the default key-value store: digest.json, digest.md and digest.rss. No messages are sent.",
            "default": false
          },
          "digestMaxItems": {
            "title": "Maximum digest items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Include at most this many returned ranked items in each digest; does not change dataset size.",
            "default": 25
          },
          "requestTimeoutSecs": {
            "title": "HTTP read timeout in seconds",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-request read timeout; connect timeout capped at 10 seconds. Streaming response deadline is twice this value.",
            "default": 20
          },
          "maxRetries": {
            "title": "Retries per endpoint",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Retry transient network errors and HTTP 429/500/502/503/504 at most twice with capped exponential backoff. HTTP 403/404 are not retried. All requests share a 100-attempt budget.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}