Media

Get media by ID

Returns one uploaded media item: its type, size and the URL used when posting. Media is deleted automatically once every post using it has published, after which the ID stops resolving.

get/v1/media/{id}

Path parameters

idstring required

Media ID

Response

Media item retrieved successfully.

idstring required

The unique identifier of the media object

mime_typestring nullable required

The MIME type of the media object

Example response

{
  "object": {
    "size_bytes": 1024
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.