{
  "openapi": "3.0.1",
  "info": {
    "title": "Captapi",
    "description": "Bring your own Captapi API key and pull structured social media data from YouTube, TikTok, Instagram & Facebook — transcripts, AI summaries, comments, stats, search and downloads. Wraps the Captapi REST API (no scraping); 62 operations, one key.",
    "version": "0.3",
    "x-build-id": "Y1fy19BZcmugg7P4D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xanthic_polygon~captapi/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xanthic_polygon-captapi",
        "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/xanthic_polygon~captapi/runs": {
      "post": {
        "operationId": "runs-sync-xanthic_polygon-captapi",
        "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/xanthic_polygon~captapi/run-sync": {
      "post": {
        "operationId": "run-sync-xanthic_polygon-captapi",
        "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": [
          "apiKey",
          "operation"
        ],
        "properties": {
          "apiKey": {
            "title": "Captapi API key",
            "type": "string",
            "description": "Your capt_live_... key from https://captapi.com/dashboard/api-keys. Stored encrypted. Credits are billed to your own Captapi account."
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "youtube_transcript",
              "youtube_summarize",
              "youtube_video_details",
              "youtube_comments",
              "youtube_channel_details",
              "youtube_search",
              "youtube_channel_videos",
              "youtube_playlist_videos",
              "youtube_playlist",
              "youtube_video_download",
              "youtube_shorts_transcript",
              "youtube_shorts_summarize",
              "youtube_shorts_details",
              "youtube_shorts_comments",
              "youtube_channel_shorts",
              "youtube_trending_shorts",
              "youtube_channel_streams",
              "youtube_hashtag_search",
              "youtube_comment_replies",
              "youtube_channel_playlists",
              "youtube_community_posts",
              "youtube_community_post_details",
              "youtube_video_sponsors",
              "tiktok_transcript",
              "tiktok_summarize",
              "tiktok_video_details",
              "tiktok_comments",
              "tiktok_channel_details",
              "tiktok_profile_region",
              "tiktok_audience_demographics",
              "tiktok_search",
              "tiktok_search_suggestions",
              "tiktok_video_download",
              "tiktok_channel_posts",
              "tiktok_comment_replies",
              "tiktok_user_followers",
              "tiktok_user_followings",
              "tiktok_music_posts",
              "tiktok_hashtag_search",
              "tiktok_top_search",
              "tiktok_user_search",
              "tiktok_song_details",
              "tiktok_trending_feed",
              "tiktok_popular_hashtags",
              "tiktok_live",
              "tiktok_live_info",
              "tiktok_popular_creators",
              "instagram_transcript",
              "instagram_summarize",
              "instagram_details",
              "instagram_comments",
              "instagram_channel_details",
              "instagram_channel_posts",
              "instagram_channel_reels",
              "instagram_reels_search",
              "instagram_trending_reels",
              "instagram_video_download",
              "instagram_tagged_posts",
              "instagram_music_posts",
              "instagram_reels_by_audio_id",
              "instagram_hashtag_search",
              "instagram_profile_search",
              "instagram_story_highlights",
              "instagram_highlights_details",
              "instagram_embed",
              "instagram_basic_profile",
              "facebook_details",
              "facebook_transcript",
              "facebook_summarize",
              "facebook_comments",
              "facebook_page_details",
              "facebook_profile_posts",
              "facebook_profile_reels",
              "facebook_group_posts",
              "facebook_comment_replies",
              "facebook_marketplace_search",
              "facebook_marketplace_location_search",
              "facebook_event_search",
              "facebook_event_details",
              "facebook_profile_photos",
              "facebook_profile_events",
              "facebook_marketplace_item",
              "twitter_tweet_details",
              "twitter_transcript",
              "twitter_profile",
              "twitter_user_tweets",
              "twitter_search",
              "twitter_community",
              "twitter_community_tweets",
              "reddit_subreddit_posts",
              "reddit_post_details",
              "reddit_post_comments",
              "reddit_post_transcript",
              "reddit_search",
              "reddit_subreddit_details",
              "reddit_subreddit_search",
              "threads_profile",
              "threads_user_posts",
              "threads_post_details",
              "threads_search",
              "threads_search_users",
              "bluesky_profile",
              "bluesky_user_posts",
              "bluesky_post_details",
              "pinterest_pin_details",
              "pinterest_user_pins",
              "pinterest_search",
              "pinterest_board",
              "pinterest_user_boards",
              "linkedin_profile",
              "linkedin_company",
              "linkedin_post_details",
              "linkedin_post_transcript",
              "linkedin_company_posts",
              "linkedin_search_posts",
              "rumble_video_details",
              "rumble_channel_videos",
              "rumble_search",
              "rumble_comments",
              "tiktok_shop_search",
              "tiktok_shop_products",
              "tiktok_shop_product_details",
              "tiktok_shop_product_reviews",
              "tiktok_shop_user_showcase",
              "github_user",
              "github_repositories",
              "github_repository",
              "github_pull_requests",
              "github_activity",
              "github_followers",
              "github_following",
              "github_contributions",
              "github_trending_repositories",
              "github_trending_developers",
              "google_search",
              "twitch_profile",
              "twitch_user_videos",
              "twitch_user_schedule",
              "twitch_clip",
              "spotify_artist",
              "spotify_track",
              "spotify_album",
              "spotify_search",
              "spotify_podcast",
              "spotify_podcast_episodes",
              "soundcloud_artist",
              "soundcloud_artist_tracks",
              "soundcloud_track",
              "linktree_page",
              "snapchat_user_profile",
              "truth_social_profile",
              "truth_social_user_posts",
              "truth_social_post",
              "kick_clip",
              "amazon_shop_page",
              "age_gender_get",
              "account_balance",
              "account_request_history",
              "account_daily_usage",
              "account_most_used_routes",
              "kwai_profile",
              "kwai_user_posts",
              "kwai_post",
              "komi_page",
              "pillar_page",
              "linkbio_page",
              "linkme_profile",
              "facebook_ad_library_search",
              "facebook_ad_library_company_ads",
              "facebook_ad_library_search_companies",
              "facebook_ad_library_ad_details",
              "facebook_ad_library_ad_transcript",
              "tiktok_ad_library_search",
              "tiktok_ad_library_ad_details",
              "google_ad_library_company_ads",
              "google_ad_library_ad_details",
              "google_ad_library_advertiser_search",
              "linkedin_ad_library_search_ads",
              "linkedin_ad_library_ad_details"
            ],
            "type": "string",
            "description": "Which Captapi endpoint to call. Each operation needs specific fields below (url, search query, limit, ...)."
          },
          "url": {
            "title": "URL",
            "type": "string",
            "description": "Content/profile URL for the operation (video, reel, post, channel, profile, playlist, music...). Required by most operations."
          },
          "q": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword/hashtag for search operations (*_search, *_hashtag_search, *_user_search, etc.). Min 2 chars."
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "type": "integer",
            "description": "Max items to return for list/search operations. Defaults and caps vary per operation; billed per result."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Preferred caption language ISO code (e.g. en) for transcript/summarize operations. Optional; defaults to auto-detect."
          },
          "comment_id": {
            "title": "Comment ID",
            "type": "string",
            "description": "Parent comment ID for *_comment_replies operations (from the comments endpoint)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter ISO country code (e.g. US, GB, TR). Used by trending, TikTok Shop, and Ad Library operations."
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Two-letter TikTok Shop region (e.g. US, GB, SG). Optional."
          },
          "username": {
            "title": "Username",
            "type": "string",
            "description": "Username/profile handle for GitHub or TikTok Shop creator showcase operations."
          },
          "repo": {
            "title": "Repository",
            "type": "string",
            "description": "GitHub repository URL or owner/name."
          },
          "state": {
            "title": "Pull request state",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "GitHub pull request state: open, closed, or all."
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Sort mode for endpoints that support it, e.g. relevance or date."
          },
          "advertiser": {
            "title": "Advertiser",
            "type": "string",
            "description": "Advertiser name, domain, or Google advertiser ID for Google Ads Transparency Center operations."
          },
          "creative_id": {
            "title": "Creative ID",
            "type": "string",
            "description": "Google creative/ad ID or preview URL."
          },
          "query": {
            "title": "Topic (popular hashtags)",
            "type": "string",
            "description": "Topic/keyword for tiktok_popular_hashtags. Optional; distinct from the search query field."
          },
          "baseUrl": {
            "title": "API base URL",
            "type": "string",
            "description": "Advanced: override the Captapi API base URL. Leave as default unless self-hosting.",
            "default": "https://api.captapi.com"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}