{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Users V2 — Profiles + My Account & Followers (19)",
    "description": "Look up any Reddit user (profile, trophies, posts, comments, pinned) and read your own account (active subs, real username, email & phone, prefs, location, followers, account, feeds). Follow/unfollow, validate usernames, flair policy. 19 endpoints — 8 anonymous, 11 saved-account.",
    "version": "0.9",
    "x-build-id": "7pGEGrtjmsuimxpkR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/red_crawler~reddit-users-v2/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-red_crawler-reddit-users-v2",
        "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/red_crawler~reddit-users-v2/runs": {
      "post": {
        "operationId": "runs-sync-red_crawler-reddit-users-v2",
        "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/red_crawler~reddit-users-v2/run-sync": {
      "post": {
        "operationId": "run-sync-red_crawler-reddit-users-v2",
        "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": [
          "endpoint"
        ],
        "properties": {
          "endpoint": {
            "title": "What to fetch",
            "enum": [
              "profile",
              "profile_about",
              "profile_details",
              "trophies_public",
              "profile_trophies",
              "user_posts",
              "user_comments",
              "pinned_posts",
              "validate_username",
              "me_account",
              "me_real_username",
              "me_email_phone",
              "me_preferences",
              "me_location",
              "me_active_subreddits",
              "me_followers",
              "me_profile_feed",
              "me_flair_policy",
              "follow_action"
            ],
            "type": "string",
            "description": "Choose which user lookup or account action to run. The first 9 are anonymous (no Reddit account needed). The last 10 require a Reddit account — fill the Reddit credentials section at the bottom of the form.",
            "default": "profile"
          },
          "profile_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "profile_about_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "profile_details_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "trophies_public_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "trophies_public_image_max_width": {
            "title": "Trophy icon size (px)",
            "minimum": 16,
            "maximum": 1024,
            "type": "integer",
            "description": "Max width for trophy icon URLs returned by Reddit.",
            "default": 128
          },
          "profile_trophies_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "user_posts_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "user_posts_sort": {
            "title": "Sort",
            "enum": [
              "new",
              "hot",
              "top",
              "controversial"
            ],
            "type": "string",
            "description": "Sort order. Time filter only applies to 'top' and 'controversial'.",
            "default": "new"
          },
          "user_posts_time_filter": {
            "title": "Time filter (top / controversial only)",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time window — IGNORED unless sort is 'top' or 'controversial'.",
            "default": "all"
          },
          "user_posts_limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 1250,
            "type": "integer",
            "description": "Max posts to return (1–1250).",
            "default": 100
          },
          "user_comments_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "user_comments_sort": {
            "title": "Sort",
            "enum": [
              "new",
              "hot",
              "top",
              "controversial"
            ],
            "type": "string",
            "description": "Sort order. Time filter only applies to 'top' and 'controversial'.",
            "default": "new"
          },
          "user_comments_time_filter": {
            "title": "Time filter (top / controversial only)",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time window — IGNORED unless sort is 'top' or 'controversial'.",
            "default": "all"
          },
          "user_comments_limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 1250,
            "type": "integer",
            "description": "Max comments to return (1–1250).",
            "default": 100
          },
          "pinned_posts_username": {
            "title": "Username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL."
          },
          "validate_username_username": {
            "title": "Username",
            "type": "string",
            "description": "Username to validate (availability + rule compliance)."
          },
          "me_account_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2."
          },
          "me_real_username_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2."
          },
          "me_email_phone_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2."
          },
          "me_preferences_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2."
          },
          "me_location_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2."
          },
          "me_active_subreddits_marker": {
            "title": "(no fields)",
            "type": "string",
            "description": "This endpoint takes no input fields beyond your saved account / Token V2. Fill the **Reddit credentials** section at the bottom and hit Start."
          },
          "me_followers_limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max followers to return (1–100).",
            "default": 25
          },
          "me_profile_feed_type": {
            "title": "Feed type",
            "enum": [
              "saved_posts",
              "saved_comments",
              "hidden",
              "upvoted",
              "downvoted"
            ],
            "type": "string",
            "description": "Which profile feed to fetch.",
            "default": "saved_posts"
          },
          "me_profile_feed_limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Max items to return (1–500). Auto-paginates.",
            "default": 100
          },
          "me_flair_policy_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Subreddit name (with or without r/), or subreddit URL."
          },
          "follow_action_action": {
            "title": "Action",
            "enum": [
              "follow",
              "unfollow"
            ],
            "type": "string",
            "description": "Whether to follow or unfollow the target profile.",
            "default": "follow"
          },
          "follow_action_username": {
            "title": "Target username",
            "type": "string",
            "description": "Reddit username, u/name, or profile URL of the account to follow / unfollow. Ignored if account_id is provided."
          },
          "follow_action_account_id": {
            "title": "Target account ID (t2_xxx) — optional",
            "type": "string",
            "description": "Reddit t2_ account ID. If provided, skips the username lookup. Otherwise leave blank and fill the username field."
          },
          "credentialSource": {
            "title": "Credential source",
            "enum": [
              "vault",
              "manual"
            ],
            "type": "string",
            "description": "Only used when the chosen endpoint is one of the bearer-required ones (the last 10 in the dropdown — all 'My X', plus 'Profile Feeds', 'Subreddit Flair Policy', 'Follow / Unfollow Profile'). For all other endpoints leave the default — credentials are ignored. **Use saved account (vault)** loads your stored Token V2 + proxy from the **reddit-vault** actor — only the 'Saved account name' field is used. **Paste Token V2 + proxy** uses the values you paste below.",
            "default": "vault"
          },
          "accountName": {
            "title": "Saved account name (used when source = vault)",
            "pattern": "^[A-Za-z0-9_-]{1,32}$",
            "maxLength": 32,
            "type": "string",
            "description": "The name you used in the **reddit-vault** actor when you stored this account. Your Token V2 + proxy load automatically from the vault. Ignored when 'Credential source' = manual."
          },
          "bearer": {
            "title": "Token V2 (used when source = manual)",
            "type": "string",
            "description": "Your Reddit `token_v2` cookie value (`eyJ...`). Lifetime ~24 h. Encrypted at rest by Apify. Ignored when 'Credential source' = vault."
          },
          "proxy": {
            "title": "Proxy (used when source = manual)",
            "type": "string",
            "description": "Proxy in `ip:port:user:pass` format. MUST be the same IP that originally minted the Token V2. Ignored when 'Credential source' = vault."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}