API Reference

Media Metadata API

The Media Metadata API returns structured information about a public media URL (YouTube, Instagram, TikTok, Vimeo, X, Facebook, Twitch, Reddit, and more) without downloading the file.

This endpoint is synchronous: you get the metadata in the HTTP response (no job_id polling required).

x-api-key:stringrequired

Your HuntAPI private key.

Endpoint: GET https://api.huntapi.com/v1/media/metadata

Credit cost: 1 credit per successful call.

query:stringrequired

Public media URL to inspect (e.g. a YouTube watch URL).

Response

{
    "metadata": {
        "id": "3g3Eow41B6I",
        "ext": "mp4",
        "title": "Faire une interview Multicam avec UNE SEULE caméra",
        "width": 640,
        "height": 360,
        "channel": "Alex Jackson",
        "is_live": false,
        "duration": 432,
        "was_live": false,
        "extractor": "Youtube",
        "thumbnail": "https://i.ytimg.com/vi/3g3Eow41B6I/maxresdefault.jpg",
        "like_count": 4060,
        "view_count": 93297,
        "channel_url": "https://www.youtube.com/channel/UCW0GdGxlRENND_ft84Cp5vg",
        "description": "...",
        "live_status": "not_live",
        "upload_date": 1712188800,
        "webpage_url": "https://www.youtube.com/watch?v=3g3Eow41B6I",
        "original_url": "https://www.youtube.com/watch?v=3g3Eow41B6I"
    }
}

Response fields

FieldTypeDescription
metadata.idstringPlatform media id
metadata.titlestringTitle
metadata.descriptionstringDescription
metadata.durationnumberDuration in seconds
metadata.thumbnailstringThumbnail URL
metadata.channelstringChannel / uploader name
metadata.channel_urlstringChannel URL
metadata.view_countnumberView count
metadata.like_countnumberLike count
metadata.width / heightnumberResolution when available
metadata.upload_datenumberUnix timestamp
metadata.is_live / was_live / live_status-Live stream flags
metadata.extractorstringSource extractor (e.g. Youtube)
metadata.webpage_urlstringCanonical page URL
metadata.original_urlstringURL you passed in query

Notes

Some URLs cannot be inspected when content is:

  • Private
  • Unavailable (deleted or inaccessible)
  • Age restricted

In those cases the API returns an explanatory error.

Related

VIDEO API

Discover why Hunt is the preferred API provider for developers.