A media object represents a single photo, video or animated GIF. Media objects are used by many endpoints within the Twitter API, and may be included in Tweets, Direct Messages, user profiles, advertising creatives and elsewhere. Each media object may have multiple display or playback variants, with different resolutions or formats.
Media types & size restrictions
Size restrictions for uploading via API
Image 5MB
GIF 15MB
Video 15MB
Creation
Objects such as Tweets, Direct Messages, user profile pictures, hosted Ads cards, etc. can contain one or more media objects. These top-level objects are collectively known as entities. The relevant entity creation API (e.g. POST statuses/update) can be passed one or more media objects using a unique media_id.
An entity which contains media object(s) can be created by following these steps:
Upload the media file(s) using either the recommended chunked upload (images/GIF/video), or the older simple upload (images only).
Receive a media_id from step 1. This step may be repeated multiple times with different media if the entity allows multiple media_id parameters to be passed in.
Create the entity by calling the appropriate endpoint, including the media_id and other required parameters. For example, attach a media_id to a Tweet using the POST statuses/update endpoint.
Retrieving
Please refer to the Media Object in the Tweet data dictionary.
Read Previous
Read Next
###MESSAGE###
OK
Indem du dich registrierst, erklärst du dich mit unserer Nutzung von Cookies
einverstanden. Wir nutzen Cookies z.B. für Statistiken, Personalisierung und Werbeanzeigen.
Al usar los servicios de Twitter, aceptas nuestra política de Uso de cookies
. Usamos cookies para análisis, personalización y anuncios, entre otras cosas.
"Votre utilisation des services de Twitter indique que vous acceptez notre Utilisation des cookies
. Nous utilisons les cookies, notamment à des fins statistiques, publicitaires et de personnalisation.
Dengan menggunakan Layanan Twitter, Anda menyetujui Penggunaan Kuki
kami. Kami menggunakan kuki, termasuk untuk analitik, personalisasi, dan iklan.
Utilizzando i servizi di Twitter, accetti il nostro Utilizzo dei cookie
. Twitter utilizza i cookie, anche per fini statistici, pubblicitari e di personalizzazione.
Door gebruik te maken van de diensten van Twitter ga je akkoord met ons cookiegebruik
. We gebruiken cookies onder meer voor analyses, personalisatie en advertenties.
Ao usar os serviços do Twitter, você concorda com nosso Uso de Cookies
. Usamos cookies, inclusive para estatísticas, personalização e anúncios.
By using Twitter’s services you agree to our Cookies Use
. We use cookies for purposes including analytics, personalisation, and ads.
باستخدامك لخدمات تويتر، فإنك توافق على استخدامات ملفات تعريف الارتباط
. نستخدم ملفات تعريف الارتباط لأسباب تشمل التحليلات وإضفاء الطابع الشخصي والإعلانات.
Twitter'ın hizmetlerini kullanarak, Çerez Kullanımımızı
kabul etmiş oluyorsun. Çerezleri istatistikler, kişiselleştirme ve reklamlar gibi unsurlar için kullanıyoruz.
Используя сервисы Твиттера, вы соглашаетесь с Политикой использования файлов cookie
. Мы используем файлы cookie, необходимые в том числе для аналитики, персонализации и рекламы.
트위터의 서비스를 이용하면 당사의 쿠키 사용
에 동의하게 됩니다. 트위터는 애널리틱스, 맞춤 설정, 광고 등을 위하여 쿠키를 사용합니다.
Twitter की सेवाओं का उपयोग करके आप हमारे कुकीज़ का उपयोग
के लिए सहमति देते हैं. हम एनालिटिक्स, वैयक्तिकरण और विज्ञापनों के लिए कुकीज़ का उपयोग करते हैं.
Sa pamamagitan ng paggamit sa mga serbisyo ng Twitter, sumasang-ayon ka sa aming Paggamit ng Cookies
. Gumagamit kami ng cookies para sa mga bagay-bagay kabilang ang analytics, pag-personalize, at mga ad.
Ved å bruke Twitters tjenester godtar du bruken av informasjonskapsler
. Vi bruker blant annet informasjonskapsler til statistikk, personlig tilpassing og annonser.
Genom att använda Twitters tjänster samtycker du till vårt bruk av cookies
. Vi använder cookies bland annat till analyser, personanpassning och annonser.
Korzystając z usług Twittera, godzisz się na korzystanie z plików cookie
. Pliki cookie są używane między innymi w celach analitycznych, dla lepszej personalizacji kont użytkowników oraz w celach reklamowych.
باستخدامك لخدمات تويتر، فإنك توافق على استخدامات ملفات تعريف الارتباط
. نستخدم ملفات تعريف الارتباط لأسباب تشمل التحليلات وإضفاء الطابع الشخصي والإعلانات.
Dengan menggunakan perkhidmatan Twitter, anda bersetuju dengan Penggunaan Kuki
kami. Kami menggunakan kuki, termasuk untuk analitis, pemperibadian dan iklan.
Ved din brug af Twitters tjenester accepterer du vores brug af cookies
. Vi bruger cookies til bl.a. statistik, personlig tilpasning og annoncer.
Käyttämällä Twitterin palveluita hyväksyt evästeiden käyttömme
. Käytämme evästeitä muun muassa käytön analysointia, personointia ja mainontaa varten.
A Twitter szolgáltatásainak használatával elfogadod a Cookie-k használatát
. Cookie-kat használunk többek között elemzések készítéséhez, testreszabáshoz és hirdetések megjelenítéséhez.
使用 Twitter 的服务即意味着你同意我们的Cookies 使用
。我们使用 cookies 用于分析、个性化和广告等目的。
如果使用 Twitter 的服務,即表示你同意我們的 Cookies 使用政策
。我們會將 Cookie 用於分析、個人化及廣告等方面。