Tools Tags
directory
Tools Tags
Get temporary assets
Get temporary materials
## Public accounts can use this interface to obtain temporary materials (i.e. download temporary multimedia files). Please note that video files do not support https downloading, and http protocol is required to call this interface.
This interface is the original "Download Multimedia Files" interface.
Interface call request description
http request method: GET, https call
https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID
Request example ( The example is to obtain multimedia files through the curl command)
curl -I -G "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id =MEDIA_ID"
Parameter Description
| Parameter | Is it required | Description |
| access_token | is the | calling interface credential |
| media_id | is | media file ID |
Return instructions
The returned HTTP header in the correct case is as follows:
HTTP/1.1 200 OK
Connection: close
Content-Type: image/ jpeg
##Content-disposition: attachment; filename="MEDIA_ID.jpg"
##Date: Sun, 06 Jan 2013 10:20:18 GMTCache-Control: no-cache, must-revalidate
Content-Length: 339721
curl -G "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID"
The example of the returned JSON data packet in the error case is as follows (the example is the invalid media ID error):
{"errcode":40007,"errmsg" :"invalid media_id"}
##Use web debugging tools to debug this interface

Hot AI Tools
Undress images for free
Online AI tool for removing clothes from photos.
AI-powered app for creating realistic nude photos
AI image generator for creative art from text prompts.
AI powered investment research for smarter decisions
Hot Article
Hot Topics
20516
7
13629
4
Popular tool
Easy-to-use and free code editor
Chinese version, very easy to use
Powerful PHP integrated development environment
Visual web development tools
God-level code editing software (SublimeText3)












![Getting Started with PHP Practical Development: PHP Quick Creation [Small Business Forum]](https://img.php.cn/upload/course/000/000/035/5d27fb58823dc974.jpg)