# Quickstart URL: /api *** title: Quickstart description: Unlock powerful YouTube automation workflows with TubeLab's API icon: intro ----------- import { Step, Steps } from "fumadocs-ui/components/steps"; import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock"; import { Icon } from "@/components/ui/icon"; [TubeLab](https://tubelab.net/)'s API gives you access to the [Niche Finder](https://tubelab.net/youtube-niche-finder) & [Outliers Finder](https://tubelab.net/youtube-outliers-finder) data - including 400K+ channels, 4M+ outliers, and YouTube scans. Updated everyday, in real-time. This unlocks powerful YouTube automation workflows, such as: * Automatically finding new niches * Automatically tracking trends based on a niche * AI-powered ideation based on outliers **Why code when AI can do it for you?** [Paste this link](https://tubelab.net/docs/llms-full.txt) in your AI and he will get the full context of TubeLab's API. ``` https://tubelab.net/docs/llms-full.txt ``` ## Call the API ### Create a TubeLab Account Sign-up to [TubeLab](https://tubelab.net/login) if you don't have an account yet. ### Create an API Key You must have an [active subscription with available credits](https://tubelab.net/settings). Create an API key [here](https://tubelab.net/developers) and copy it. **Beaware, this key won't be shown again.** ### Make your first request Authenticate by using the `Authorization` header and value as `Api-Key your-api-key`: response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));`} /> ## Next steps Now that you have made your first TubeLab API request, it's time to explore what else is possible: }> Use our powerful n8n templates to automate niche finding, competition tracking, trends, ideation and much more. }> Understand what YouTube data is available, and how to use it.
# Introduction URL: /api/introduction *** title: Introduction description: Find new niches automatically, track your competition, new trends and more. ---------------------------------------------------------------------------------------- The [TubeLab](https://tubelab.net/) API is organized around [REST](https://en.wikipedia.org/wiki/REST). The API returns [JSON-encoded](https://www.json.org/json-en.html) responses, and uses standard HTTP response codes, authentication, and verbs. To use TubeLab's API you must have an [API Key](https://tubelab.net/developers) and an [active subscription](https://tubelab.net/pricing) with [available credits](https://tubelab.net/credits). `https://public-api.tubelab.net/v1` ## Authentication [Create an API key here](https://tubelab.net/developers). All requests to the TubeLab API must include an `Authorization` header with your API key. You'll need to send this header yourself as `Authorization: Api-Key `. Here's an example with `curl`: ```bash curl --location 'https://public-api.tubelab.net/v1/outliers?query=minecraft' --H 'Content-Type: application/json' --H 'Authorization: Api-Key ' ``` ## Rate limits To mitigate misuse and manage capacity on our API, we have implemented limits per api key. **You're limited to `10` requests every minute per api-key within your available credits.** Limits are designed to prevent API abuse, while minimizing impact on common customer usage patterns. ## Content types TubeLab's API accepts JSON in request bodies and returns JSON in response bodies. You will need to send the content-type: `application/json` header in requests. ## Request size limits The API has a maximum request body size of `100kb` per request. ## Status page Check the availability of TubeLab's APIs at our [status page](https://status.tubelab.net/).