{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Link Radar — Domain & URL Repost Tracker",
    "description": "Track where any URL, domain or Reddit post is shared across subreddits - live and back to 2005. Returns every submission with score, comments, author and date, plus per-subreddit spread summaries and first/last-seen dates. No login, API key or proxy.",
    "version": "1.0",
    "x-build-id": "0NDH5ML1NKfuvNF1j"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~reddit-link-repost-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-reddit-link-repost-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/xyrelith-data~reddit-link-repost-tracker/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-reddit-link-repost-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/xyrelith-data~reddit-link-repost-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-reddit-link-repost-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to track",
            "enum": [
              "domain",
              "url",
              "postIds"
            ],
            "type": "string",
            "description": "Domain — recent posts linking to a website, with sort and time-window controls. URLs — every submission of one or more links across all subreddits, including years of history. Reddit posts — the original post plus its crossposts and same-link reposts.",
            "default": "url"
          },
          "domains": {
            "title": "Domains (mode=Domain)",
            "type": "array",
            "description": "Websites to track, e.g. github.com, nytimes.com or your-brand.com. Accepts a bare domain or a full URL; www. is ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs (mode=URLs)",
            "type": "array",
            "description": "Links to trace across subreddits, e.g. https://github.com/owner/repo. A Reddit post URL is also accepted and is treated as a Reddit post to map.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Reddit posts (mode=Reddit posts)",
            "type": "array",
            "description": "Reddit post URLs, t3_ fullnames or bare post IDs. For each one the actor returns the original post and every crosspost or same-link repost it can find.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urlMatch": {
            "title": "URL matching (mode=URLs)",
            "enum": [
              "exact",
              "prefix"
            ],
            "type": "string",
            "description": "Exact matches only the same URL string. Prefix also catches URLs that start with it — use it for a repository or section root, not for a whole domain.",
            "default": "exact"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "new",
              "old",
              "hot",
              "top",
              "rising",
              "controversial"
            ],
            "type": "string",
            "description": "Ordering for the returned posts. 'new' and 'old' are chronological; 'top', 'hot', 'rising' and 'controversial' rank by engagement and age after collection.",
            "default": "new"
          },
          "timeFilter": {
            "title": "Domain lookback window (mode=Domain)",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "How far back the Domain mode looks when ranking and collecting recent links. 'all' is capped at the last 365 days for very broad domains.",
            "default": "month"
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on dataset rows, including summary rows when enabled.",
            "default": 100
          },
          "minScore": {
            "title": "Minimum score",
            "minimum": -100000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop posts below this Reddit score. Posts whose live RSS record has no score yet are skipped when this is set."
          },
          "maxScore": {
            "title": "Maximum score",
            "minimum": -100000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop posts above this Reddit score."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop posts with fewer comments. Posts whose live RSS record has no comment count are skipped when this is set."
          },
          "maxComments": {
            "title": "Maximum comments",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop posts with more comments."
          },
          "includeNSFW": {
            "title": "Include NSFW posts",
            "type": "boolean",
            "description": "Include posts Reddit marks as NSFW. Off by default.",
            "default": false
          },
          "subreddits": {
            "title": "Only these subreddits",
            "type": "array",
            "description": "Keep posts from these subreddits only. Accepts bare names, r/ prefixes or subreddit URLs. Leave empty to keep every subreddit.",
            "items": {
              "type": "string"
            }
          },
          "excludeSubreddits": {
            "title": "Exclude subreddits",
            "type": "array",
            "description": "Drop posts from these subreddits. Accepts bare names, r/ prefixes or subreddit URLs.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Inclusive start date for post creation. ISO date or date-time, e.g. 2024-01-01 or 2024-01-01T12:00:00Z."
          },
          "dateTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Inclusive end date for post creation. A bare date includes the whole day."
          },
          "includeSummary": {
            "title": "Add per-subreddit summary rows",
            "type": "boolean",
            "description": "Emit one summary row per subreddit with its collected post count, total score and comments, first-seen and last-seen dates, and the archive's full count when available.",
            "default": false
          },
          "dedupeByPostId": {
            "title": "Deduplicate by post ID",
            "type": "boolean",
            "description": "Emit each Reddit post once per run even when several inputs or sources return it. Turn off to see it once per matching input.",
            "default": true
          },
          "includeRss": {
            "title": "Use live Reddit Atom feeds",
            "type": "boolean",
            "description": "Use Reddit's public Atom feeds for the Domain mode's live listing (and as a URL-mode fallback when the archive is unavailable). Reddit rate-limits these feeds; the archive remains the primary source.",
            "default": true
          },
          "maxRssPages": {
            "title": "Live feed pages per domain",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many 25-entry Reddit Atom feed pages to read per domain in Domain mode. 40 pages would cover Reddit's ~1,000-item listing ceiling, but Reddit rate-limits feed pagination heavily; one page is the practical default.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}