{
  "openapi": "3.0.1",
  "info": {
    "title": "Hashtag Trend Radar - Rising & Emergent Tags",
    "description": "Find hashtags that are rising right now across the fediverse, not just a trending list. Each tag carries seven days of daily uses and accounts, a spike ratio, an emergent flag for tags with no prior history, and a cross-instance count that separates network trends from single-server noise.",
    "version": "0.1",
    "x-build-id": "JhhFU9CMiecOIGrul"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yzy001~fediverse-hashtag-trends/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yzy001-fediverse-hashtag-trends",
        "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/yzy001~fediverse-hashtag-trends/runs": {
      "post": {
        "operationId": "runs-sync-yzy001-fediverse-hashtag-trends",
        "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/yzy001~fediverse-hashtag-trends/run-sync": {
      "post": {
        "operationId": "run-sync-yzy001-fediverse-hashtag-trends",
        "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": {
          "topInstances": {
            "title": "Servers to poll",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the largest fediverse servers to poll, taken from the official directory (298 servers, 175 with user counts totalling about 3 million). More servers means better cross-server confirmation and more requests.",
            "default": 12
          },
          "instances": {
            "title": "Specific servers (optional)",
            "type": "array",
            "description": "Poll these servers instead of the largest ones, for example mastodon.social or infosec.exchange. Overrides the server count above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "instanceLanguage": {
            "title": "Server language (optional)",
            "type": "string",
            "description": "Only poll servers whose primary language is this, for example en, ja or de. The default selection leans English and general-purpose."
          },
          "instanceCategory": {
            "title": "Server category (optional)",
            "type": "string",
            "description": "Only poll servers in this category, for example tech, art, journalism or regional."
          },
          "minInstanceUsers": {
            "title": "Min server size",
            "minimum": 0,
            "type": "integer",
            "description": "Skip servers with fewer registered users than this.",
            "default": 0
          },
          "trackTags": {
            "title": "Track these tags",
            "type": "array",
            "description": "Follow specific hashtags whether or not they are trending. These go through the single-tag endpoint, so they are not limited to each server's curated trending list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyTrends": {
            "title": "Only these trend states",
            "type": "array",
            "description": "Keep only tags in these states. 'Emergent' means no uses at all in the previous six days - that is the one state a weekly ritual tag cannot fake.",
            "items": {
              "type": "string",
              "enum": [
                "emergent",
                "rising",
                "steady-high",
                "peaked",
                "declining"
              ],
              "enumTitles": [
                "Emergent (no prior history)",
                "Rising (peak today, 2x or more)",
                "Steady high",
                "Peaked recently",
                "Declining"
              ]
            },
            "default": []
          },
          "minInstances": {
            "title": "Min servers per tag",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only keep tags seen on at least this many servers. Measured across 9 servers: 14 of 46 tags appeared on only one server, which makes them local noise rather than network trends.",
            "default": 1
          },
          "minUses7d": {
            "title": "Min uses over 7 days",
            "minimum": 0,
            "type": "integer",
            "description": "Drop tags with fewer total uses than this across the seven days.",
            "default": 0
          },
          "minPeakUses": {
            "title": "Min peak uses in the window",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Absolute floor on the busiest single day. A spike ratio alone promotes a tag that went from 1 use to 20, so pair it with this. Mind the scale: measured across 14 of the largest servers, aggregated daily uses run p50=23, p90=189, p99=2691 and max 7188 - a single server peaks at 666. Of 58 tags, 24 cleared 100, 12 cleared 200, 7 cleared 500 and NONE cleared 10000. The whole fediverse has roughly 3 million users, so Instagram-scale cutoffs return nothing. For genuinely large trends try 200 to 500; every run reports the distribution it actually saw.",
            "default": 0
          },
          "minUsesToday": {
            "title": "Min uses today",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Absolute floor on today's uses. Use this when you only care about what is large right now rather than at any point in the window.",
            "default": 0
          },
          "minAccountsToday": {
            "title": "Min distinct accounts today",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Absolute floor on distinct accounts using the tag today. Harder to game than uses - one account can post many times, but it cannot be many accounts.",
            "default": 0
          },
          "tagsPerInstance": {
            "title": "Tags per server",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many trending tags to take from each server.",
            "default": 20
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum number of tag rows to return after ranking.",
            "default": 500
          },
          "delaySeconds": {
            "title": "Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Pause between server requests. These are small public endpoints, so keep it polite.",
            "default": 0.4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}