API Documentation

Everything you need to integrate the RichAPI API into your product.

YouTube

YouTube Video Details

Get full video details: title, description, view/like counts, duration, tags, thumbnails, chapters.

POST
/api/v1/youtube_video
1 credit per call

Parameters

FieldTypeRequiredDescription
urlstringYesYouTube video URL or video ID
include_captionsbooleanNoInclude video captions/subtitles in the response
cachebooleanNoUse cached data if available

Response fields

FieldTypeDescription
videoIdstringYouTube video ID
titlestringVideo title
descriptionstringFull video description
channelNamestringChannel name
channelIdstringChannel ID
viewCountintegerTotal view count
likeCountintegerTotal like count
durationstringVideo duration (ISO 8601)
tagsarrayVideo tags
thumbnailsobjectThumbnail URLs by quality (default, medium, high, maxres)
chaptersarrayChapter timestamps and titles (if available)
publishedAtstringPublication date

Code

curl -X POST https://api.richapi.ai/api/v1/youtube_video \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}'

Try it

Sign in to test this endpoint with your API key.

Sign in to try


YouTube Channel Info

Get channel info: name, subscriber count, description, avatar, banner, external links.

POST
/api/v1/youtube_channel
1 credit per call

Parameters

FieldTypeRequiredDescription
urlstringYesYouTube channel URL (@handle, /c/, or /channel/ format)
cachebooleanNoUse cached data if available

Response fields

FieldTypeDescription
channelIdstringYouTube channel ID
namestringChannel name
descriptionstringChannel description
subscriberCountintegerSubscriber count
videoCountintegerTotal video count
avatarstringChannel avatar URL
bannerstringChannel banner URL
externalLinksarrayExternal links listed on the channel

Code

curl -X POST https://api.richapi.ai/api/v1/youtube_channel \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/@MrBeast"
}'

Try it

Sign in to test this endpoint with your API key.

Sign in to try

YouTube Channel Videos

List up to 50 most recent videos from a YouTube channel with titles, view counts, and durations per call.

POST
/api/v1/youtube_channel_videos
2 credits per call

Parameters

FieldTypeRequiredDescription
urlstringYesYouTube channel URL
cachebooleanNoUse cached data if available

Response fields

FieldTypeDescription
videosarrayList of videos
videos[].videoIdstringVideo ID
videos[].titlestringVideo title
videos[].viewCountintegerView count
videos[].durationstringDuration (ISO 8601)
videos[].publishedAtstringPublication date
videos[].thumbnailstringThumbnail URL

Code

curl -X POST https://api.richapi.ai/api/v1/youtube_channel_videos \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/@MrBeast"
}'

Try it

Sign in to test this endpoint with your API key.

Sign in to try