{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Trend Radar - Hugging Face, GitHub & arXiv AI Trends",
    "description": "One live feed of what is trending in AI: Hugging Face models, datasets, Spaces and daily papers plus new GitHub AI repos, ranked by a cross-source momentum score with velocity, breakout flags and change-since-last-run for alerts.",
    "version": "0.1",
    "x-build-id": "Y8CcpJpQg6zpWFgyr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intenal_builds~ai-trend-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intenal_builds-ai-trend-radar",
        "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/intenal_builds~ai-trend-radar/runs": {
      "post": {
        "operationId": "runs-sync-intenal_builds-ai-trend-radar",
        "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/intenal_builds~ai-trend-radar/run-sync": {
      "post": {
        "operationId": "run-sync-intenal_builds-ai-trend-radar",
        "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": "Which live sources to scan. All are public APIs fetched at run time.",
            "items": {
              "type": "string",
              "enum": [
                "models",
                "datasets",
                "spaces",
                "papers",
                "github",
                "githubTrending"
              ],
              "enumTitles": [
                "Hugging Face models",
                "Hugging Face datasets",
                "Hugging Face Spaces",
                "Hugging Face daily papers (arXiv)",
                "GitHub AI repositories",
                "GitHub Trending page (AI-related repos)"
              ]
            },
            "default": [
              "models",
              "datasets",
              "spaces",
              "papers",
              "github",
              "githubTrending"
            ]
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many trending items to pull from each source before scoring.",
            "default": 50
          },
          "hfSearch": {
            "title": "Hugging Face keyword filter",
            "type": "string",
            "description": "Optional keyword (e.g. 'qwen', 'embedding', 'tts') applied to Hugging Face models/datasets/Spaces. Empty = overall trending."
          },
          "spaceDetails": {
            "title": "Hugging Face Space details",
            "type": "boolean",
            "description": "Fetch runtime stage (RUNNING, SLEEPING...), hardware, SDK and linked models/datasets for the top trending Spaces.",
            "default": true
          },
          "githubTopics": {
            "title": "GitHub topics",
            "type": "array",
            "description": "GitHub topics to scan for new fast-growing repositories.",
            "default": [
              "llm",
              "large-language-models",
              "ai-agents",
              "generative-ai",
              "machine-learning",
              "deep-learning",
              "rag",
              "mcp",
              "diffusion-models",
              "computer-vision"
            ],
            "items": {
              "type": "string"
            }
          },
          "githubCreatedWithinDays": {
            "title": "GitHub repos created within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only GitHub repos created in this window, ranked by stars per day.",
            "default": 30
          },
          "githubTrendingPeriod": {
            "title": "GitHub Trending period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Which github.com/trending window to read (stars gained today / this week / this month).",
            "default": "daily"
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional personal access token for higher GitHub API rate limits. Not required."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Only output items tagged with any of these categories. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "llm",
                "vision",
                "audio",
                "agents",
                "code",
                "embeddings-rag",
                "robotics",
                "dataset",
                "research",
                "other"
              ]
            }
          },
          "minMomentumScore": {
            "title": "Min momentum score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output items scoring at least this (0-100). Use 70+ for alerts.",
            "default": 0
          },
          "onlyNewSinceLastRun": {
            "title": "Only items new since last run",
            "type": "boolean",
            "description": "Alert mode: output only items not seen in the previous run (state kept in a named key-value store).",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store used to remember the previous run for deltas. Use different names for different schedules.",
            "default": "ai-trend-radar-state"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum items to output. Each output item is one billable 'trend-item' event.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}