requests.
The code
download_reel.py
/reel/ and /p/ links both work.
What comes back
The finished job fromGET /import/status:
includeVideo: False in the request body for the audio only. All options are in Downloads.
Errors to handle
Importly fetches what’s public: private accounts, close-friends stories and anything behind a login fail and aren’t charged. Only download reels your users have the right to use. See Supported sites and Error handling.
In production
- In a web app, don’t block a request on the loop. Pass
webhookUrland save the file when Importly calls you back (Webhooks); the Python (FastAPI) recipe shows the endpoints. - Copy the file somewhere permanent, or set
store: trueto have it land in your own bucket (recipe).
Downloads cost $0.002 per MB, with a $0.01 minimum. Try it free, no card required. See Pricing & credits.