Get the total number of materials


Get the total number of materials

1474939024398583.jpg

##Developer You can obtain the list of permanent materials according to this interface, and can also save it locally when needed.

Please note:

1. The total number of permanent materials will also be counted in the material management of the official website of the public platform

2. Pictures and graphic message materials (including single pictures and texts) The upper limit of the total number of multiple images and texts is 5000, and the upper limit of the total number of other materials is 1000
3. Calling this interface requires https protocol

Interface call request description

http request method: GET

https://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=ACCESS_TOKEN


Return description

{

"voice_count":COUNT,
"video_count":COUNT,
"image_count":COUNT,
"news_count":COUNT
}

Return parameter description

Parameter Description
voice_countTotal number of voices
video_countTotal number of videos
image_countTotal number of pictures
news_countTotal number of pictures and texts

An example of the returned JSON data packet in error conditions is as follows (the example is an invalid media type error):

{"errcode":-1,"errmsg":"system error"}