File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ This Docker image is compatible with the following architectures:
1515- JSON response containing:
1616 - the ` shortcode ` ,
1717 - the path to the downloaded video file,
18- - the post description (caption).
18+ - the post description (caption),
19+ - the ` cdn_url ` (direct link to the video/image on Instagram's CDN).
1920- ` /health ` endpoint to check the service status.
2021
2122## API
@@ -39,7 +40,8 @@ Successful response (`200 OK`):
3940{
4041 "shortcode" : " SHORTCODE" ,
4142 "video" : " /data/instaloader/SHORTCODE/SHORTCODE.mp4" ,
42- "description" : " Post caption or empty string"
43+ "description" : " Post caption or empty string" ,
44+ "cdn_url" : " https://scontent-..."
4345}
4446```
4547
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ def scrape_post(shortcode):
5050 return jsonify ({
5151 "shortcode" : shortcode ,
5252 "video" : f"/data/instaloader/{ shortcode } /{ shortcode } .mp4" ,
53- "description" : post .caption or ""
53+ "description" : post .caption or "" ,
54+ "cdn_url" : post .video_url if post .is_video else post .url
5455 })
5556
5657
You can’t perform that action at this time.
0 commit comments