{ "opencollection": "1.0.0", "info": { "name": "X API v2 Account Activity Media API", "version": "2.161" }, "items": [ { "info": { "name": "Media", "type": "folder" }, "items": [ { "info": { "name": "X Get Media by Media Keys", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/media", "params": [ { "name": "media_keys", "value": "", "type": "query", "description": "A comma separated list of Media Keys. Up to 100 are allowed in a single request." }, { "name": "media.fields", "value": "", "type": "query", "description": "A comma separated list of Media fields to display." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves details of Media files by their media keys." }, { "info": { "name": "X Get Media Analytics", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/media/analytics", "params": [ { "name": "media_keys", "value": "", "type": "query", "description": "A comma separated list of Media Keys. Up to 100 are allowed in a single request." }, { "name": "end_time", "value": "2021-02-01T18:40:40.000Z", "type": "query", "description": "YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range." }, { "name": "start_time", "value": "2021-02-01T18:40:40.000Z", "type": "query", "description": "YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range." }, { "name": "granularity", "value": "hourly", "type": "query", "description": "The granularity for the search counts results." }, { "name": "media_analytics.fields", "value": "", "type": "query", "description": "A comma separated list of MediaAnalytics fields to display." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves analytics data for media." }, { "info": { "name": "X Create Media Metadata", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/metadata", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Creates metadata for a Media file." }, { "info": { "name": "X Create Media Subtitles", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/subtitles", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Creates subtitles for a specific Media file." }, { "info": { "name": "X Delete Media Subtitles", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.x.com/2/media/subtitles", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Deletes subtitles for a specific Media file." }, { "info": { "name": "X Get Media Upload Status", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/media/upload", "params": [ { "name": "media_id", "value": "1234567890", "type": "query", "description": "Media id for the requested media upload status." }, { "name": "command", "value": "STATUS", "type": "query", "description": "The command for the media upload request." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves the status of a Media upload by its ID." }, { "info": { "name": "X Upload Media", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/upload", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Uploads a media file for use in posts or other content." }, { "info": { "name": "X Initialize Media Upload", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/upload/initialize", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Initializes a media upload." }, { "info": { "name": "X Append Media Upload", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/upload/:id/append", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The media identifier for the media to perform the append operation." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Appends data to a Media upload request." }, { "info": { "name": "X Finalize Media Upload", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.com/2/media/upload/:id/finalize", "params": [ { "name": "id", "value": "1234567890", "type": "path", "description": "The media id of the targeted media to finalize." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.x.com/2/oauth2/authorize", "accessTokenUrl": "https://api.x.com/2/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Finalizes a Media upload request." }, { "info": { "name": "X Get Media by Media Key", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.com/2/media/:media_key", "params": [ { "name": "media_key", "value": "example_value", "type": "path", "description": "A single Media Key." }, { "name": "media.fields", "value": "", "type": "query", "description": "A comma separated list of Media fields to display." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves details of a specific Media file by its media key." } ] } ], "bundled": true }