Skip to main content

Media List

Retrieve a list of recent media (posts, reels, videos, pins, tweets, etc.) from a connected social media account. Supports all major platforms: Instagram, TikTok, YouTube, LinkedIn, Facebook, X (Twitter), Threads, Pinterest, Bluesky, and Reddit.

Useful for building post selectors, displaying recent content, or getting media IDs for other API calls.


Get User Media

Endpoint

GET /api/uploadposts/media

Headers

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication

Query Parameters

NameTypeRequiredDescription
platformStringYesThe platform to retrieve media from. See Supported Platforms.
userStringYesProfile username (as configured in Upload-Post).

Supported Platforms

PlatformValueDescription
InstagraminstagramPosts, reels, and carousels
TikToktiktokVideos
YouTubeyoutubeVideos from the channel's uploads playlist
LinkedInlinkedinPosts (text, images, articles)
FacebookfacebookPage/profile posts
X (Twitter)xTweets with media information
ThreadsthreadsThread posts
PinterestpinterestPins
BlueskyblueskyPosts (skeets)
RedditredditSubmissions

Example Requests

Instagram:

curl 'https://api.upload-post.com/api/uploadposts/media?platform=instagram&user=my-profile' \
-H 'Authorization: Apikey your-api-key-here'

TikTok:

curl 'https://api.upload-post.com/api/uploadposts/media?platform=tiktok&user=my-profile' \
-H 'Authorization: Apikey your-api-key-here'

YouTube:

curl 'https://api.upload-post.com/api/uploadposts/media?platform=youtube&user=my-profile' \
-H 'Authorization: Apikey your-api-key-here'

Responses

  • 200 OK
{
"success": true,
"media": [
{
"id": "17890455123456789",
"caption": "Check out our latest product launch!",
"media_type": "IMAGE",
"media_url": "https://scontent.xx.fbcdn.net/v/image123.jpg",
"permalink": "https://www.instagram.com/p/ABC123/",
"timestamp": "2025-06-15T10:30:00+0000",
"thumbnail_url": null
},
{
"id": "17890455987654321",
"caption": "Behind the scenes",
"media_type": "VIDEO",
"media_url": "https://scontent.xx.fbcdn.net/v/video456.mp4",
"permalink": "https://www.instagram.com/reel/DEF456/",
"timestamp": "2025-06-14T15:00:00+0000",
"thumbnail_url": "https://scontent.xx.fbcdn.net/..."
},
{
"id": "17890455111222333",
"caption": "Photo dump",
"media_type": "CAROUSEL_ALBUM",
"media_url": null,
"permalink": "https://www.instagram.com/p/GHI789/",
"timestamp": "2025-06-13T09:00:00+0000",
"thumbnail_url": null
}
]
}
  • 400 Bad Request
{
"success": false,
"error": "Platform parameter is required"
}
  • 500 Internal Server Error
{
"success": false,
"error": "An internal server error occurred."
}

Response Fields

All platforms return media items with a consistent structure:

FieldTypeDescription
idStringPlatform-specific unique identifier for the media item
captionStringText content, caption, or title of the post
media_typeStringType of media. See Media Types
media_urlString/nullDirect URL to the media file (image or video). See Media URL Availability
permalinkString/nullDirect URL to the post on the platform
timestampString/nullISO 8601 timestamp of when the post was created
thumbnail_urlString/nullURL of the thumbnail/preview image (if available)

Media Types

TypeDescription
IMAGESingle photo post or image pin
VIDEOVideo post, reel, or video pin
CAROUSEL_ALBUMMulti-image/video post (carousel)
TEXTText-only post (no media attached)

Media URL Availability

The media_url field returns a direct URL to the media file (image or video) when available. Support varies by platform:

Platformmedia_url SupportDetails
InstagramYesDirect image/video URL. Not available for CAROUSEL_ALBUM parent (use children). May be omitted for copyrighted content. URLs are temporary.
ThreadsYesDirect image/video URL, same behavior as Instagram.
FacebookYesImage URL or playable video URL via attachments.
X (Twitter)YesDirect photo URL. For videos, returns the preview image URL.
LinkedInYesResolved via Images/Videos API. URLs are signed and temporary.
RedditYesDirect i.redd.it image URL, v.redd.it video URL (video-only, no audio), or first gallery image URL.
BlueskyYesfullsize CDN image (up to 2000px) or HLS playlist URL (.m3u8) for videos.
PinterestYesLargest available image URL (up to 1200px or original). Video URLs are restricted by Pinterest.
TikTokNoTikTok API does not expose direct video file URLs. Use permalink instead.
YouTubeNoYouTube API does not provide direct video URLs (prohibited by ToS). Use permalink instead.
warning

Media URLs from most platforms are temporary and will expire after some time (hours to days). Do not store them permanently — re-fetch from the API when needed, or download the media file to your own storage.

Common Use Cases

  • Post selector UI: Display the user's recent posts so they can pick one for comment monitoring or AutoDMs.
  • Get media IDs: Use the id field from the response as the post_id parameter in the Comments endpoint.
  • Content overview: Show a dashboard of recent content across all platforms with permalinks and captions.
  • Cross-platform analytics: Aggregate media from multiple platforms to display a unified content calendar.