{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Posting V1 — Create Post (8 types)",
    "description": "By using this Reddit poster, you can create any Reddit post  — text, link, image, gallery, video, GIF, crosspost, or poll — in any subreddit. Pick a post type, fill the matching fields. Bring your Reddit OAuth bearer + matching proxy.",
    "version": "0.21",
    "x-build-id": "bmoepKfKEfP646ix6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/red_crawler~reddit-posting-v1/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-red_crawler-reddit-posting-v1",
        "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-posting-v1/runs": {
      "post": {
        "operationId": "runs-sync-red_crawler-reddit-posting-v1",
        "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-posting-v1/run-sync": {
      "post": {
        "operationId": "run-sync-red_crawler-reddit-posting-v1",
        "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": [
          "post_type",
          "credentialSource"
        ],
        "properties": {
          "post_type": {
            "title": "Post type",
            "enum": [
              "text",
              "link",
              "image",
              "gallery",
              "video",
              "gif",
              "crosspost",
              "poll"
            ],
            "type": "string",
            "description": "Pick the kind of post to create. Each post type has its own dedicated section below — only fill the one matching your choice. The 'Reddit credentials' section at the bottom is shared by all types.",
            "default": "text"
          },
          "text_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "text_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "text_body": {
            "title": "Post body",
            "type": "string",
            "description": "Body text — **Reddit markdown supported** (`**bold**`, `*italic*`, `> quote`, `[link](url)`, `- bullet`). Leave blank for a title-only post."
          },
          "text_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "text_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "text_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "text_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "text_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "link_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "link_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "link_url": {
            "title": "Link URL",
            "type": "string",
            "description": "Outbound URL to post."
          },
          "link_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown below the link — Reddit markdown supported. Stored only on link posts that the subreddit accepts as rich/media posts; classic link-only subreddits will silently ignore it."
          },
          "link_resubmit": {
            "title": "Allow resubmit",
            "type": "boolean",
            "description": "Allow re-submitting a URL already posted to this subreddit.",
            "default": true
          },
          "link_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "link_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "link_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "link_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "link_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "image_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "image_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "image_url": {
            "title": "Image URL",
            "type": "string",
            "description": "URL of the image (jpg/png/gif). RedCrawler will download it from your URL and upload it to Reddit."
          },
          "image_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown below the image — Reddit markdown supported."
          },
          "image_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "image_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "image_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "image_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "image_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "gallery_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "gallery_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "gallery_items": {
            "title": "Gallery images (2–20)",
            "type": "array",
            "description": "List of 2–20 publicly reachable image URLs (.jpg / .png / .gif). One URL per row. RedCrawler downloads each image and uploads it to Reddit on your behalf.",
            "items": {
              "type": "string"
            }
          },
          "gallery_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown above the gallery — Reddit markdown supported."
          },
          "gallery_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "gallery_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "gallery_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "gallery_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "gallery_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "video_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "video_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "video_url": {
            "title": "Video URL",
            "type": "string",
            "description": "URL of the video file (.mp4, .mov, etc)."
          },
          "video_thumbnail_url": {
            "title": "Thumbnail URL (optional)",
            "type": "string",
            "description": "Optional thumbnail image URL. If omitted, RedCrawler auto-extracts a frame."
          },
          "video_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown below the video — Reddit markdown supported."
          },
          "video_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "video_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "video_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "video_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "video_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "gif_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "gif_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "gif_url": {
            "title": "GIF URL",
            "type": "string",
            "description": "URL of the .gif file."
          },
          "gif_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown below the GIF — Reddit markdown supported."
          },
          "gif_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "gif_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "gif_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "gif_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "gif_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "crosspost_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "crosspost_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "crosspost_source_post_url": {
            "title": "Source post URL",
            "type": "string",
            "description": "URL of the post you want to crosspost."
          },
          "crosspost_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional comment text shown above the crossposted source post — Reddit markdown supported."
          },
          "crosspost_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "crosspost_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "crosspost_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "poll_subreddit": {
            "title": "Subreddit",
            "type": "string",
            "description": "Target subreddit (name only, with or without 'r/')."
          },
          "poll_title": {
            "title": "Post title",
            "maxLength": 300,
            "type": "string",
            "description": "Post title (max 300 characters)."
          },
          "poll_options": {
            "title": "Poll options (2–6)",
            "type": "array",
            "description": "2–6 poll options, one per entry.",
            "items": {
              "type": "string"
            }
          },
          "poll_duration_days": {
            "title": "Poll duration (days)",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "How long the poll stays open (1–7 days).",
            "default": 3
          },
          "poll_body": {
            "title": "Post body",
            "type": "string",
            "description": "Optional post body text shown above the poll — Reddit markdown supported."
          },
          "poll_flair_id": {
            "title": "Flair ID",
            "type": "string",
            "description": "Flair template ID. Leave blank for no flair."
          },
          "poll_flair_text": {
            "title": "Flair text",
            "type": "string",
            "description": "Flair display text. Leave blank for no flair."
          },
          "poll_is_nsfw": {
            "title": "Mark as NSFW",
            "type": "boolean",
            "description": "Mark post as Not Safe For Work.",
            "default": false
          },
          "poll_is_spoiler": {
            "title": "Mark as spoiler",
            "type": "boolean",
            "description": "Mark post as containing spoilers.",
            "default": false
          },
          "poll_sendreplies": {
            "title": "Send reply notifications",
            "type": "boolean",
            "description": "Send inbox notifications when someone replies to this post.",
            "default": true
          },
          "credentialSource": {
            "title": "Credential source",
            "enum": [
              "vault",
              "manual"
            ],
            "type": "string",
            "description": "Pick which authentication path this run uses. **Use saved account (vault)** loads your stored Token V2 + proxy from the **reddit-vault** actor (auto-refreshed if you saved a Reddit Session) — only the 'Saved account name' field below is used; Token V2 + proxy are ignored. **Paste Token V2 + proxy** uses the values you paste below — the 'Saved account name' field is ignored.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}