Metadata
Metadata 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
Metadata Create
MetadataCreate
POST
/
2
/
media
/
metadata
/
create
curl --request POST \
--url https://api.x.com/2/media/metadata/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"allow_download_status": {
"allow_download": "true"
},
"alt_text": {
"text": "dancing cat"
},
"found_media_origin": {
"id": "<string>",
"provider": "giphy"
},
"media_id": "1146654567674912769",
"sticker_info": {
"stickers": [
{
"aspect_ratio": 123,
"group_annotation_id": 123,
"id": "<string>",
"sticker_set_annotation_id": 123,
"transform_a": 123,
"transform_b": 123,
"transform_c": 123,
"transform_d": 123,
"transform_tx": 123,
"transform_ty": 123
}
]
},
"upload_source": {
"text": "<string>"
}
}'
{
"data": {
"associated_metadata": {
"allow_download_status": {
"allow_download": "true"
},
"alt_text": {
"text": "dancing cat"
},
"found_media_origin": {
"id": "<string>",
"provider": "giphy"
},
"sticker_info": {
"stickers": [
{
"aspect_ratio": 123,
"group_annotation_id": 123,
"id": "<string>",
"sticker_set_annotation_id": 123,
"transform_a": 123,
"transform_b": 123,
"transform_c": 123,
"transform_d": 123,
"transform_tx": 123,
"transform_ty": 123
}
]
},
"upload_source": {
"text": "<string>"
}
},
"id": "1146654567674912769"
},
"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 unique identifier of this Media.
Response
200
application/json
The request has succeeded.
Alternate text Metadata (Must be <=1000 chars)
The unique identifier of this Media.
curl --request POST \
--url https://api.x.com/2/media/metadata/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"allow_download_status": {
"allow_download": "true"
},
"alt_text": {
"text": "dancing cat"
},
"found_media_origin": {
"id": "<string>",
"provider": "giphy"
},
"media_id": "1146654567674912769",
"sticker_info": {
"stickers": [
{
"aspect_ratio": 123,
"group_annotation_id": 123,
"id": "<string>",
"sticker_set_annotation_id": 123,
"transform_a": 123,
"transform_b": 123,
"transform_c": 123,
"transform_d": 123,
"transform_tx": 123,
"transform_ty": 123
}
]
},
"upload_source": {
"text": "<string>"
}
}'
{
"data": {
"associated_metadata": {
"allow_download_status": {
"allow_download": "true"
},
"alt_text": {
"text": "dancing cat"
},
"found_media_origin": {
"id": "<string>",
"provider": "giphy"
},
"sticker_info": {
"stickers": [
{
"aspect_ratio": 123,
"group_annotation_id": 123,
"id": "<string>",
"sticker_set_annotation_id": 123,
"transform_a": 123,
"transform_b": 123,
"transform_c": 123,
"transform_d": 123,
"transform_tx": 123,
"transform_ty": 123
}
]
},
"upload_source": {
"text": "<string>"
}
},
"id": "1146654567674912769"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}