Utils
Retrieve YouTube Categories
Get Started
API Endpoints
- Ayrshare API Overview
- Ads
- Analytics
- Auto Schedule
- Brand
- Comments
- Feed
- Generate
- Hashtags
- History
- Links
- Media
- Messages
- Post
- Profiles
- Reviews
- User
- Utils
- Validate
- Webhooks
Multiple Users
Dashboard
- Overview
- Connect Social Accounts
- Publish a Post
- Revoke Access to Social Media
- RSS
Additional
- What's New At Ayrshare
- Errors
- Max Pack
- Media Guidelines
- Packages & Guides
- System Status
- Testing & Verification
- ISO Codes
Utils
Retrieve YouTube Categories
Retrieve the YouTube categories ids for a given region
GET
post
/
youTubeCategories
/
:region
curl --request GET \
--url https://api.ayrshare.com/api/post/youTubeCategories/:region \
--header 'Authorization: Bearer <token>'
{
"region": "US",
"categories": [
{
"id": "1",
"title": "Film & Animation"
},
{
"id": "10",
"title": "Music"
},
{
"id": "15",
"title": "Pets & Animals"
},
{
"id": "17",
"title": "Sports"
},
{
"id": "18",
"title": "Short Movies"
},
{
"id": "19",
"title": "Travel & Events"
},
{
"id": "2",
"title": "Autos & Vehicles"
},
{
"id": "20",
"title": "Gaming"
},
{
"id": "21",
"title": "Videoblogging"
},
{
"id": "22",
"title": "People & Blogs"
},
{
"id": "23",
"title": "Comedy"
},
{
"id": "24",
"title": "Entertainment"
},
{
"id": "25",
"title": "News & Politics"
},
{
"id": "26",
"title": "Howto & Style"
},
{
"id": "27",
"title": "Education"
},
{
"id": "28",
"title": "Science & Technology"
},
{
"id": "29",
"title": "Nonprofits & Activism"
},
{
"id": "30",
"title": "Movies"
},
{
"id": "31",
"title": "Anime/Animation"
},
{
"id": "32",
"title": "Action/Adventure"
},
{
"id": "33",
"title": "Classics"
},
{
"id": "34",
"title": "Comedy"
},
{
"id": "35",
"title": "Documentary"
},
{
"id": "36",
"title": "Drama"
},
{
"id": "37",
"title": "Family"
},
{
"id": "38",
"title": "Foreign"
},
{
"id": "39",
"title": "Horror"
},
{
"id": "40",
"title": "Sci-Fi/Fantasy"
},
{
"id": "41",
"title": "Thriller"
},
{
"id": "42",
"title": "Shorts"
},
{
"id": "43",
"title": "Shows"
},
{
"id": "44",
"title": "Trailers"
}
]
}.
.
Available on Premium, Business, Enterprise plans.
Retrieve the YouTube categories ids for a given region. The category ID can be set in the POST or PATCH /post endpoints.
For example, GET https://api.ayrshare.com/api/youTubeCategories/US
for the U.S. video categories.
Header Parameters
Path Parameters
Two letter country code of the region.
{
"region": "US",
"categories": [
{
"id": "1",
"title": "Film & Animation"
},
{
"id": "10",
"title": "Music"
},
{
"id": "15",
"title": "Pets & Animals"
},
{
"id": "17",
"title": "Sports"
},
{
"id": "18",
"title": "Short Movies"
},
{
"id": "19",
"title": "Travel & Events"
},
{
"id": "2",
"title": "Autos & Vehicles"
},
{
"id": "20",
"title": "Gaming"
},
{
"id": "21",
"title": "Videoblogging"
},
{
"id": "22",
"title": "People & Blogs"
},
{
"id": "23",
"title": "Comedy"
},
{
"id": "24",
"title": "Entertainment"
},
{
"id": "25",
"title": "News & Politics"
},
{
"id": "26",
"title": "Howto & Style"
},
{
"id": "27",
"title": "Education"
},
{
"id": "28",
"title": "Science & Technology"
},
{
"id": "29",
"title": "Nonprofits & Activism"
},
{
"id": "30",
"title": "Movies"
},
{
"id": "31",
"title": "Anime/Animation"
},
{
"id": "32",
"title": "Action/Adventure"
},
{
"id": "33",
"title": "Classics"
},
{
"id": "34",
"title": "Comedy"
},
{
"id": "35",
"title": "Documentary"
},
{
"id": "36",
"title": "Drama"
},
{
"id": "37",
"title": "Family"
},
{
"id": "38",
"title": "Foreign"
},
{
"id": "39",
"title": "Horror"
},
{
"id": "40",
"title": "Sci-Fi/Fantasy"
},
{
"id": "41",
"title": "Thriller"
},
{
"id": "42",
"title": "Shorts"
},
{
"id": "43",
"title": "Shows"
},
{
"id": "44",
"title": "Trailers"
}
]
}.
.
curl --request GET \
--url https://api.ayrshare.com/api/post/youTubeCategories/:region \
--header 'Authorization: Bearer <token>'
{
"region": "US",
"categories": [
{
"id": "1",
"title": "Film & Animation"
},
{
"id": "10",
"title": "Music"
},
{
"id": "15",
"title": "Pets & Animals"
},
{
"id": "17",
"title": "Sports"
},
{
"id": "18",
"title": "Short Movies"
},
{
"id": "19",
"title": "Travel & Events"
},
{
"id": "2",
"title": "Autos & Vehicles"
},
{
"id": "20",
"title": "Gaming"
},
{
"id": "21",
"title": "Videoblogging"
},
{
"id": "22",
"title": "People & Blogs"
},
{
"id": "23",
"title": "Comedy"
},
{
"id": "24",
"title": "Entertainment"
},
{
"id": "25",
"title": "News & Politics"
},
{
"id": "26",
"title": "Howto & Style"
},
{
"id": "27",
"title": "Education"
},
{
"id": "28",
"title": "Science & Technology"
},
{
"id": "29",
"title": "Nonprofits & Activism"
},
{
"id": "30",
"title": "Movies"
},
{
"id": "31",
"title": "Anime/Animation"
},
{
"id": "32",
"title": "Action/Adventure"
},
{
"id": "33",
"title": "Classics"
},
{
"id": "34",
"title": "Comedy"
},
{
"id": "35",
"title": "Documentary"
},
{
"id": "36",
"title": "Drama"
},
{
"id": "37",
"title": "Family"
},
{
"id": "38",
"title": "Foreign"
},
{
"id": "39",
"title": "Horror"
},
{
"id": "40",
"title": "Sci-Fi/Fantasy"
},
{
"id": "41",
"title": "Thriller"
},
{
"id": "42",
"title": "Shorts"
},
{
"id": "43",
"title": "Shows"
},
{
"id": "44",
"title": "Trailers"
}
]
}.
.