The YouTube APIfor apps and AI agents
Public data from the platforms you work with, through one API.
No scrapers or proxies to build and maintain.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.youtube.profile({ handle: "LinusTechTips" });
// {
// "data": {
// "username": "LinusTechTips",
// "displayName": "Linus Tech Tips",
// "verified": true,
// "followers": 16900000,
// "posts": 8011,
// …
// }
// }import os
from socialapihq import SocialAPI
client = SocialAPI(api_key=os.environ["SOCIALAPI_API_KEY"])
data = client.youtube.profile(handle="LinusTechTips").data
print(data.display_name, data.followers)
# {
# "data": {
# "username": "LinusTechTips",
# "displayName": "Linus Tech Tips",
# "verified": true,
# "followers": 16900000,
# "posts": 8011,
# …
# }
# }curl -G https://api.socialapi.sh/v1/youtube/profile \
-H "Authorization: Bearer $SOCIALAPI_API_KEY" \
--data-urlencode "handle=LinusTechTips"
# {
# "data": {
# "username": "LinusTechTips",
# "displayName": "Linus Tech Tips",
# "verified": true,
# "followers": 16900000,
# "posts": 8011,
# …
# }
# }