{
  "openapi": "3.0.1",
  "info": {
    "title": "TED Talks Scraper",
    "description": "Scrape TED.com talks with title, speaker, duration, view count, publish/record dates, topics, language, description, thumbnail. Two modes: fetch specific talks by URL/slug, or browse all talks in a topic. Pure HTTP, no auth needed.",
    "version": "1.0",
    "x-build-id": "Eq257JR0icRjYYFb2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~ted-talks-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-ted-talks-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/crawlerbros~ted-talks-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-ted-talks-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/crawlerbros~ted-talks-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-ted-talks-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "byUrls",
              "byTopic",
              "bySearch",
              "bySpeaker",
              "byPlaylist",
              "browse"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byUrls"
          },
          "talkUrls": {
            "title": "Talk URLs / slugs (mode=byUrls)",
            "type": "array",
            "description": "TED talk URLs (e.g. `https://www.ted.com/talks/sir_ken_robinson_do_schools_kill_creativity`) or slugs only (`sir_ken_robinson_do_schools_kill_creativity`).",
            "default": [
              "sir_ken_robinson_do_schools_kill_creativity"
            ],
            "items": {
              "type": "string"
            }
          },
          "topic": {
            "title": "Topic slug (mode=byTopic)",
            "enum": [
              "creativity",
              "business",
              "education",
              "science",
              "psychology",
              "technology",
              "design",
              "health",
              "culture",
              "art",
              "music",
              "politics",
              "economics",
              "climate-change",
              "ai",
              "humanity",
              "innovation",
              "leadership",
              "motivation",
              "philosophy",
              "productivity",
              "relationships",
              "space",
              "storytelling",
              "sustainability",
              "women",
              "work",
              "writing",
              "activism",
              "animals",
              "architecture",
              "brain",
              "cities",
              "communication",
              "community",
              "data",
              "democracy",
              "economy",
              "energy",
              "environment",
              "family",
              "future",
              "global-issues",
              "government",
              "history",
              "human-body",
              "identity",
              "language",
              "medicine",
              "nature"
            ],
            "type": "string",
            "description": "TED topic slug. Pick one of the curated 50 most-trafficked TED topics.",
            "default": "creativity"
          },
          "searchQuery": {
            "title": "Search query (mode=bySearch)",
            "type": "string",
            "description": "Free-text query for TED's search engine (e.g. `quantum computing`, `gratitude`)."
          },
          "speaker": {
            "title": "Speaker slug or URL (mode=bySpeaker)",
            "type": "string",
            "description": "TED speaker slug (e.g. `sir_ken_robinson`) or full URL `https://www.ted.com/speakers/sir_ken_robinson`."
          },
          "playlist": {
            "title": "Playlist ID or URL (mode=byPlaylist)",
            "type": "string",
            "description": "TED playlist numeric ID (e.g. `171`) or full URL `https://www.ted.com/playlists/171/the_most_popular_talks_of_all`."
          },
          "sort": {
            "title": "Sort (mode=browse)",
            "enum": [
              "popular",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order for the /talks browse listing.",
            "default": "popular"
          },
          "minViews": {
            "title": "Min views (optional)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Drop talks with fewer views than this."
          },
          "minDurationSeconds": {
            "title": "Min duration (seconds)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop talks shorter than this."
          },
          "maxDurationSeconds": {
            "title": "Max duration (seconds)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop talks longer than this."
          },
          "language": {
            "title": "Language filter",
            "enum": [
              "",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "ru",
              "tr",
              "uk",
              "cs",
              "ro",
              "el",
              "hu",
              "sv",
              "da",
              "fi",
              "no",
              "ar",
              "he",
              "fa",
              "hi",
              "bn",
              "ur",
              "ja",
              "ko",
              "zh-cn",
              "zh-tw",
              "id",
              "vi",
              "th",
              "ms",
              "tl",
              "sw"
            ],
            "type": "string",
            "description": "ISO 639-1 language code. Drops talks not in this language. Empty = no filter.",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}