Metadata
Subtitle Create
Overview
- Introduction
- Getting started
- Tools and libraries
- Migration guide
- What to build
- Fundamentals
Posts
- Search
- Post Counts
- Filtered Stream
- Timelines
- Post Lookup
- Bookmarks
- Manage Posts
- Reposts
- Quotes
- Hide replies
- Volume Streams
Users
- User Lookup
- Search
- Follows
- Mutes
- Blocks
- Personalized Trends
Engagement Metrics
Direct Messages
- Manage
- Lookup
- Blocks
Likes
- Introduction
- Guides
- GETReturns Post objects liked by the provided User ID
- GETReturns User objects that have liked the provided Post ID
- POSTCauses the User (in the path) to like the specified Post
- DELCauses the User (in the path) to unlike the specified Post
- GETLikes Firehose stream
- GETLikes Sample 10 stream
Lists
- Lookup Lists
- Lookup List Posts
- Manage Lists
- List Members
- Pinned Lists
Spaces
- Introduction
- Spaces Lookup
- Search Spaces
Communities
- Communities Lookup
- Search Communities
Trends
Media
Compliance
- Batch Compliance
- Compliance streams
Enterprise (Gnip 2.0)
Metadata
Subtitle Create
SubtitleCreate
POST
/
2
/
media
/
subtitles
/
create
curl --request POST \
--url https://api.x.com/2/media/subtitles/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"media_category": "amplify_video",
"media_id": "1146654567674912769",
"subtitle_info": {
"subtitles": [
{
"display_name": "<string>",
"language_code": "<string>",
"media_id": "1146654567674912769"
}
]
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "<string>",
"language_code": "<string>",
"media_id": "1146654567674912769"
}
],
"id": "1146654567674912769",
"media_category": "amplify_video"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
The media category of uploaded media
Available options:
amplify_video
, tweet_gif
, tweet_image
, tweet_video
, subtitles
The unique identifier of this Media.
Response
200
application/json
The request has succeeded.
The unique identifier of this Media.
The media category of uploaded media
Available options:
amplify_video
, tweet_gif
, tweet_image
, tweet_video
, subtitles
curl --request POST \
--url https://api.x.com/2/media/subtitles/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"media_category": "amplify_video",
"media_id": "1146654567674912769",
"subtitle_info": {
"subtitles": [
{
"display_name": "<string>",
"language_code": "<string>",
"media_id": "1146654567674912769"
}
]
}
}'
{
"data": {
"associated_subtitles": [
{
"display_name": "<string>",
"language_code": "<string>",
"media_id": "1146654567674912769"
}
],
"id": "1146654567674912769",
"media_category": "amplify_video"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}