{
  "openapi": "3.0.1",
  "info": {
    "title": "Trending Domains Scraper & Monitor — Cloudflare Radar, Tranco",
    "description": "Discover trending, rising & top websites by traffic — from Cloudflare Radar (free token) or Tranco's no-login top-1M list. Filter by country & category, export to dataset/CSV, or schedule it to monitor newly-trending domains & rank surges with Slack, email & webhook alerts.",
    "version": "0.1",
    "x-build-id": "0vrLb9oulStastmoA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~trending-domains-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-trending-domains-scraper",
        "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/scrapersdelight~trending-domains-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-trending-domains-scraper",
        "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/scrapersdelight~trending-domains-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-trending-domains-scraper",
        "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": {
          "source": {
            "title": "Source",
            "enum": [
              "tranco",
              "cloudflare"
            ],
            "type": "string",
            "description": "Where to pull domains from. 'Tranco' needs NO key — just click Start. 'Cloudflare Radar' gives instant trending/rising domains with % rank-change by country & category, but needs a free token (see the Cloudflare section).",
            "default": "tranco"
          },
          "apiToken": {
            "title": "Cloudflare Radar API token",
            "type": "string",
            "description": "FREE token, only for source = Cloudflare Radar. Create on any free Cloudflare account: My Profile → API Tokens → Create Token → permission 'Account · Radar · Read'. Not needed for Tranco."
          },
          "rankingType": {
            "title": "Ranking type (Cloudflare)",
            "enum": [
              "trending-rise",
              "trending-steady",
              "popular"
            ],
            "type": "string",
            "description": "Cloudflare only. 'Rising' = surging domains with a % rank-change signal; 'Steady' = consistently trending; 'Popular' = top by overall traffic.",
            "default": "trending-rise"
          },
          "locations": {
            "title": "Countries (Cloudflare)",
            "type": "array",
            "description": "Cloudflare only. ISO-2 country codes to scope the ranking (e.g. US, GB, DE). Empty = global.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (Cloudflare)",
            "type": "array",
            "description": "Cloudflare only. Keep only domains Cloudflare tags with one of these categories (filters the returned trending/popular list). Empty = all categories. For a narrow category, raise 'How many domains' so there's more to filter from.",
            "items": {
              "type": "string",
              "enum": [
                "Technology",
                "Business",
                "Finance",
                "News",
                "Entertainment",
                "Shopping",
                "Travel",
                "Sports",
                "Health",
                "Science",
                "Education",
                "Games",
                "Adult",
                "Social",
                "Society"
              ]
            }
          },
          "date": {
            "title": "Historical date (Cloudflare)",
            "type": "string",
            "description": "Cloudflare only. Pull the ranking for a past date (YYYY-MM-DD). Empty = latest."
          },
          "limit": {
            "title": "How many domains",
            "minimum": 1,
            "type": "integer",
            "description": "Top-N domains to pull (Tranco: first N of the top-1M; Cloudflare: API result limit).",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Recurring watcher: diff against the prior run and emit/alert ONLY newly-trending domains (+ rank surges). Pair with an Apify Schedule.",
            "default": false
          },
          "alertOnNewDomain": {
            "title": "Alert on new domains",
            "type": "boolean",
            "description": "Alert when a domain newly appears in the trending/top list since the last run.",
            "default": true
          },
          "alertOnRankSurge": {
            "title": "Alert on rank surges",
            "type": "boolean",
            "description": "Also alert (and emit) when an existing domain climbs by at least the threshold below.",
            "default": false
          },
          "rankSurgeThreshold": {
            "title": "Rank-surge threshold (positions)",
            "minimum": 1,
            "type": "integer",
            "description": "How many rank positions a domain must climb since the last run to count as a surge.",
            "default": 50
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST endpoint for alert payloads (one JSON body per alert)."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Slack incoming-webhook URL for alerts."
          },
          "emailRecipients": {
            "title": "Email recipients",
            "type": "array",
            "description": "Emails for the alert digest (via apify/send-mail).",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Both sources work DIRECT (proxy off) — Cloudflare's authed API and Tranco's research file host. Add a proxy only if you hit IP rate limits.",
            "default": {
              "useApifyProxy": false
            }
          },
          "diagnose": {
            "title": "Diagnostic mode (dev)",
            "type": "boolean",
            "description": "Dev only. Logs the count + the first parsed record, then exits.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}