{"id":20894,"date":"2024-01-21T00:13:28","date_gmt":"2024-01-21T05:13:28","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=20894"},"modified":"2024-01-22T01:12:33","modified_gmt":"2024-01-22T06:12:33","slug":"x-api-update","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=20894","title":{"rendered":"X API update"},"content":{"rendered":"<p>Attempts to use the X API (formerly Twitter) for projects with Max\/MSP have been disappointing at best. Most of the API is behind a paywall now.\u00a0 The cost is $5000 per month. to implement streaming API used in projects like this:\u00a0 <a href=\"https:\/\/reactivemusic.net\/?p=5786\">https:\/\/reactivemusic.net\/?p=5786<\/a><\/p>\n<p>The free tier only allows basic tweeting and user lookup. Search is not available.<\/p>\n<p>I was able to find only one node example that actually worked in the free tier. By &#8220;Coding with Ado&#8221;. The code requests a token from X, and then you enter a timestamped pin number to continue. Making it worthless for programs and bots.\u00a0<a href=\"https:\/\/youtu.be\/G5ZW5j5cwHk?si=vbAtGa0bQ3T_tga9\">https:\/\/youtu.be\/G5ZW5j5cwHk?si=vbAtGa0bQ3T_tga9<\/a><\/p>\n<p>A local copy of the source code for this is in tkzic\/nodetweet3\/index.js<\/p>\n<h3>Other options<\/h3>\n<p>Another option with X, is to use a service like Socialdata.\u00a0<a href=\"https:\/\/socialdata.tools\/\">https:\/\/socialdata.tools\/<\/a><\/p>\n<p>There service sits in the middle to handle X API calls. You are charged by the number of calls. It doesn&#8217;t offer streaming either, but you can simulate it by calling a search every few seconds.<\/p>\n<h3>Other social media options<\/h3>\n<p>There are API&#8217;s for other social sites like facebook, instagram, tiktok, etc.,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attempts to use the X API (formerly Twitter) for projects with Max\/MSP have been disappointing at best. Most of the API is behind a paywall now.\u00a0 The cost is $5000 per month. to implement streaming API used in projects like this:\u00a0 https:\/\/reactivemusic.net\/?p=5786 The free tier only allows basic tweeting and user lookup. Search is not &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=20894\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;X API update&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,142,143,275,28],"tags":[161,25,136,12],"class_list":["post-20894","post","type-post","status-publish","format-standard","hentry","category-development","category-ideas","category-interactive-media-art","category-internet-sensors","category-maxmsp","tag-api","tag-programming","tag-twitter","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>X API update - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=20894\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"X API update - reactive music\" \/>\n<meta property=\"og:description\" content=\"Attempts to use the X API (formerly Twitter) for projects with Max\/MSP have been disappointing at best. Most of the API is behind a paywall now.\u00a0 The cost is $5000 per month. to implement streaming API used in projects like this:\u00a0 https:\/\/reactivemusic.net\/?p=5786 The free tier only allows basic tweeting and user lookup. Search is not &hellip; Continue reading &quot;X API update&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=20894\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-21T05:13:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T06:12:33+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"X API update\",\"datePublished\":\"2024-01-21T05:13:28+00:00\",\"dateModified\":\"2024-01-22T06:12:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894\"},\"wordCount\":203,\"keywords\":[\"API\",\"programming\",\"Twitter\",\"web development\"],\"articleSection\":[\"development\",\"ideas\",\"interactive media art\",\"internet-sensors\",\"Max\\\/MSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894\",\"name\":\"X API update - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2024-01-21T05:13:28+00:00\",\"dateModified\":\"2024-01-22T06:12:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=20894\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20894#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"X API update\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"X API update - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=20894","og_locale":"en_US","og_type":"article","og_title":"X API update - reactive music","og_description":"Attempts to use the X API (formerly Twitter) for projects with Max\/MSP have been disappointing at best. Most of the API is behind a paywall now.\u00a0 The cost is $5000 per month. to implement streaming API used in projects like this:\u00a0 https:\/\/reactivemusic.net\/?p=5786 The free tier only allows basic tweeting and user lookup. Search is not &hellip; Continue reading \"X API update\"","og_url":"https:\/\/reactivemusic.net\/?p=20894","og_site_name":"reactive music","article_published_time":"2024-01-21T05:13:28+00:00","article_modified_time":"2024-01-22T06:12:33+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=20894#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=20894"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"X API update","datePublished":"2024-01-21T05:13:28+00:00","dateModified":"2024-01-22T06:12:33+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20894"},"wordCount":203,"keywords":["API","programming","Twitter","web development"],"articleSection":["development","ideas","interactive media art","internet-sensors","Max\/MSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=20894","url":"https:\/\/reactivemusic.net\/?p=20894","name":"X API update - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2024-01-21T05:13:28+00:00","dateModified":"2024-01-22T06:12:33+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=20894#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=20894"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=20894#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"X API update"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20894"}],"version-history":[{"count":4,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20894\/revisions"}],"predecessor-version":[{"id":20923,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20894\/revisions\/20923"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}