Credit Consumption: 5 API call credits per request
Endpoint:GET /v2/socialmedia/proxy
Request
Body (JSON Parameters):
name (string) – Name of the social media platform Example:Twitter
method (string) – HTTP method to be used Example:Get
path (string) – API endpoint path (refer to the /socialmedia/support_paths API for supported paths) See reference at: https://docs.x.com/x-api/introduction
Sample Request
Response
List of Supported Social Media API EndpointsX (formerly Twitter)
/2/tweets
Returns a variety of information about the Post specified by the requested ID.
Sample Request
Sample Response
/2/tweets/search/recent
Returns Post Counts from the last 7 days that match a search query.
Sample Request
Sample Reponse
/2/tweets/{id}
Returns a variety of information about the Post specified by the requested ID.
Sample Request
Sample Reponse
/2/users
This endpoint returns information about Users. Specify Users by their ID.
Sample Request
Sample Reponse
/2/users/by
This endpoint returns information about Users. Specify Users by their username.
Sample Request
Sample Reponse
/2/users/by/username/{username}
This endpoint returns information about a User. Specify User by username.
Sample Request
Sample Reponse
/2/users/{id}
This endpoint returns information about a User. Specify User by ID.
Sample Request
Sample Reponse
/2/users/{id}/mentions
Returns Post objects that mention username associated to the provided User ID.
Sample Request
Sample Reponse
/2/users/{id}/tweets
Returns a list of Posts authored by the provided User ID.
curl -X GET "https://api-ai-oracle.apro.com/v2/socialmedia/proxy" \
--header 'X-API-KEY: YOUR API KEY' \
--header 'X-API-SECRET: YOUR API SECRET' \
--header 'Content-Type: application/json' \
--data '{
"name":"Twitter",
"method":"Get",
"path": "/2/users/12/mentions"
}'
{
"status": {
"timestamp": 1744796271688,
"code": 200,
"message": ""
},
"data": {
"name": "twitter",
"timestamp": 1744796271,
"signature": [
{
"signer": "0xB8d725f09fB33852dA862EAB9e68536305CfE289",
"hash": "0x359d174b948c56d5f888ca38121a752474af188afc9c2cf573d05500c49796d4",
"signature": "77252ed2e2f0ba8c69d8d84ee659d0976b583604b631b766cba362163695b3063f3913e9f32f118d9a92e885dd88d236cf757e9627c16752a80055760986d98001",
"timestamp": 1744796271655
},
{
"signer": "0xa79c2F060301ace9DcdcF838DF0F1bD7ff016Bf4",
"hash": "0x2fb3df3cb4c3c1ed346698d78b21e9b03c3d23ee38b863d2d4b02ceb1b6fe227",
"signature": "ac43ded91ba5833c0dcaa1aea0dccf8184969ca6df6a1103195b354740eafaf954dc1c699d5234f4b6d1ae2d1baf3014577982109e85dabc3c1efdd7ee9ab6e800",
"timestamp": 1744796271499
},
{
"signer": "0x82c9F939242beDddD9a6EA1AFc823e6dA6658E0b",
"hash": "0x200d0d27b6b108e02fc1ad68ebbdd5a61f801c975527dfabab45beeab0246f6d",
"signature": "c989c460c4675a55081e79347afe8a9b371be36f96ba7e29e6d9bdcf8b1e1fd26c1863c084f62fb192714da5b1a4cd0e70aa9b843afbef827ff79b6205422eda00",
"timestamp": 1744796271515
},
{
"signer": "0x13Ac6f9B4C3178D92ee60a7aC8e67063dB08552E",
"hash": "0x3b0f0b1d63b90f16b194c2b6fcb4ca0d4a730a8050bcfb7954b69e119e06e95e",
"signature": "ce885790b295cde8a3e69ef5e0c01f34d2e208ad6af79b6145c9f523897cf0f71b93b41fe01e5275aad7a48c99f83f91e2bf7fb91f047ced63fc7062643eee8f01",
"timestamp": 1744796271670
},
{
"signer": "0x2875540d8fad62e4CDC71d7a59611Eb578ab7Ccc",
"hash": "0x5608566369a6f96dbdf6c6f44542f038020c6247d96a0867d839875028bfb5c7",
"signature": "22f733a3a57e832f8beb72e1737d3a9630ec3e1e8b03744cf3367ab9406e32ec19950f716473eb2edbaa8fb9cc53fcb15ced792bb933d878296fa274a8f233e501",
"timestamp": 1744796271693
}
],
"response": {
"data": [
{
"edit_history_tweet_ids": [
"1912440047506215102"
],
"text": "@tyrannideris @jack labelling them gatekeepers could prob be described as an incorrect use of the english language",
"id": "1912440047506215102"
},
{
"edit_history_tweet_ids": [
"1912439881902547311"
],
"text": "@tyrannideris @jack also, 'they protect gatekeepers'?? incorrect, they protect the creatives",
"id": "1912439881902547311"
},
{
"edit_history_tweet_ids": [
"1912439681439977650"
],
"text": "@tyrannideris @jack & just who & what is going to be generating all these innovations? A.I's? they're a VERY long way away from being original voice creatives, they're only the technicians. so who exactly is it that's supposed to be bothering themselves to do the work? no-one that can't monitise it",
"id": "1912439681439977650"
},
{
"edit_history_tweet_ids": [
"1912438584507777055"
],
"text": "@jack @GmorganJr there aren't many people that are the original idea creatives able to push progression along, abolishing their ability to monitise their creativity will abolish the point of speedy exection, there'd be nothing there to speedily execute, bc creatives would just give up",
"id": "1912438584507777055"
},
{
"edit_history_tweet_ids": [
"1912437730832678989"
],
"text": "Exited to see how the community is ready to embrace Bitcoin - let's unlocked Bitcoin together @afribitcoiners @AfribitKibera @FreeRoutingAf @gonlineafrica @tando_me @herrytheeagle @StephTitcombe @jack https://t.co/VhlQu4eXuO",
"id": "1912437730832678989"
},
{
"edit_history_tweet_ids": [
"1912433818608497028"
],
"text": "@shadygrooove @jack Happy delta day.\nIt has been five years. https://t.co/uldZI8eIw8",
"id": "1912433818608497028"
},
{
"edit_history_tweet_ids": [
"1912432801997115674"
],
"text": "@jack No. But delete SOFTWARE PATENTS.",
"id": "1912432801997115674"
},
{
"edit_history_tweet_ids": [
"1912432668127699305"
],
"text": "@MPD_sousa1 @kishida230 @ome_city_tokyo @shigeruishiba @ecoyuri @ozawa_jimusho @POTUS @joyu_fumihiro @MOJ_HOUMU @HeizoTakenaka @NPA_KOHO @edanoyukio0531 @sugawitter @KishiNobuo @shiikazuo @onojiro @MIC_JAPAN @MLIT_JAPAN @meti_NIPPON @MOF_Japan @nobuogohara @hashimoto_lo @KPP_yokushi @mizuhofukushima @masason @MasuzoeYoichi @Chibakenkei @spp_jyouhoukan @mextjapan @elonmusk @yamaguchinatsuo @EUinJapan @finkd @jack @asahi @Yomiuri_Online @mainichi @Sankei_news @ohsemachi @ChnEmbassy_jp @RusEmbassyJ @UKinJapan @Kankyo_Jpn @izumi_akashi @MAFF_JAPAN @realDonaldTrump @SPP_kouhou 本日は児童も成人も匿名流動本部の管制でいつもより多く増員され、襲撃事案を増やし青梅署PCの仕事を増やしている\n\n日本政府内反社=ナチス虐殺志向の過激派の皆様、ご満足ですか?\n\n当Deepstate世界政府治安当局の「適正な処罰」を受ける心の準備を\n\nhttps://t.co/Z0XywAEoL8",
"id": "1912432668127699305"
},
{
"edit_history_tweet_ids": [
"1912432067268182146"
],
"text": "@IanCarrollShow @jack @NicoleShanahan Just checked. Ian Carroll is done.",
"id": "1912432067268182146"
},
{
"edit_history_tweet_ids": [
"1912431910803955755"
],
"text": "@JodiL792 @jack 32 13=45=9",
"id": "1912431910803955755"
}
],
"meta": {
"next_token": "7140dibdnow9c7btw4e02dhf8yjt1npyjbxpx51401ved",
"result_count": 10,
"newest_id": "1912440047506215102",
"oldest_id": "1912431910803955755"
}
}
}
}
curl -X GET "https://api-ai-oracle.apro.com/v2/socialmedia/proxy" \
--header 'X-API-KEY: YOUR API KEY' \
--header 'X-API-SECRET: YOUR API SECRET' \
--header 'Content-Type: application/json' \
--data '{
"name":"Twitter",
"method":"Get",
"path": "/2/users/12/tweets"
}'
{
"status": {
"timestamp": 1744796221286,
"code": 200,
"message": ""
},
"data": {
"name": "twitter",
"timestamp": 1744796221,
"signature": [
{
"signer": "0xB8d725f09fB33852dA862EAB9e68536305CfE289",
"hash": "0x5064ded60ded65e5fbaa055a5ca2333d2eecfa6e04aa36aa0912aa5d222c20cc",
"signature": "2bf172e7ecbeac6353fbc6fb1e71d6eafcf836eb71abe91fc8db222726dd6d730ded21bcdc06859cb49c4d90eb8afb2a014ab3bc1b169b88b15aa9ec61a34dbd00",
"timestamp": 1744796221229
},
{
"signer": "0xa79c2F060301ace9DcdcF838DF0F1bD7ff016Bf4",
"hash": "0xc5c4af4cc2f00dc08aa797b95a93be6e9ffa2b7c0d8fb0ce22492680e20ae33a",
"signature": "5b6df69d3115c81b79b69ad18d4379c4827b3506df3762760509199673495f9729415ef433046e23b4a3ea542ef6f66b557b43db3aed8cb3862d5f806953047401",
"timestamp": 1744796221164
},
{
"signer": "0x82c9F939242beDddD9a6EA1AFc823e6dA6658E0b",
"hash": "0xdcbadb3b5748ce711668d74ffc117f9144c60c30abcc446dd7c24e81da65b627",
"signature": "4da25995846bc02748a9f4273cf81e42400e2ec1eeb9dcd3c94b78a8d7b379883002d5fee0d93fb2a18dcfb40ee368b112848cc7036e2b36b0ebdc74f4b37b9301",
"timestamp": 1744796221134
},
{
"signer": "0x13Ac6f9B4C3178D92ee60a7aC8e67063dB08552E",
"hash": "0x9b36d794da1224f1ae21fd8ee7816e334e08a62e14a65a61405f29bfd1b18f00",
"signature": "343cd3592cddde47e70c637279b954e4c2ea5d7a44546cb6d4c7296140f1f2af5d578a41a4c1378f888b56b2cc35248e196e362535a022b15768b1817376de4d00",
"timestamp": 1744796221296
},
{
"signer": "0x2875540d8fad62e4CDC71d7a59611Eb578ab7Ccc",
"hash": "0xe02beabcaecd14d94196a62808183e6b275aef7270e7886e0d0789d241ca06ec",
"signature": "1683f6c654da427e5facf0730ed206ca8341c13dcecc33a673ff818f028b6e0a495527675823540ba3ef6fa6f10e78234087d381400352959bf6f3c81cfb152300",
"timestamp": 1744796221249
}
],
"response": {
"data": [
{
"id": "1910067114729501170",
"text": "RT @suhemparack: You can now get the email address for authenticated users using OAuth 2.0 in the X API v2. This means devs should start mo…",
"edit_history_tweet_ids": [
"1910067114729501170"
]
},
{
"id": "1910049134876483981",
"text": "RT @mike_rosinsky: Want to get ahead of the curve? Companies, investors, hobbyists alike: our real-time data endpoints will bring you what…",
"edit_history_tweet_ids": [
"1910049134876483981"
]
},
{
"id": "1910019654527140111",
"text": "@cb_doge ❤️",
"edit_history_tweet_ids": [
"1910019654527140111"
]
},
{
"id": "1910019458934194215",
"text": "@chrisparkX 👩\u200d💻🧑\u200d💻",
"edit_history_tweet_ids": [
"1910019458934194215"
]
},
{
"id": "1910017008143614018",
"text": "Exploring the X API Developer Experience https://t.co/EspMmkpjGc",
"edit_history_tweet_ids": [
"1910017008143614018"
]
},
{
"id": "1909993952276840603",
"text": "Join us today at 10:00 am PT 📢 https://t.co/urE7xJ980q",
"edit_history_tweet_ids": [
"1909993952276840603"
]
},
{
"id": "1907494842357387593",
"text": "Join us next Wednesday April 9th at 10:00 am PT to learn about our new developer docs and how you can get started with the X API v2 quickly https://t.co/6OWF3nuH6m",
"edit_history_tweet_ids": [
"1907494842357387593"
]
},
{
"id": "1904294873710424310",
"text": "In Jan 2025, we launched new X API v2 media upload endpoints.\n\nBased on feedback from the developer community, we're working on additional improvements, and will be extending the migration timeline to Apr 30, 2025.\n\nCheck out the post below for details 👇\nhttps://t.co/E2z8AeZnhm",
"edit_history_tweet_ids": [
"1904294873710424310"
]
},
{
"id": "1903156476086276191",
"text": "@Nexuist @chrisparkX ❤️",
"edit_history_tweet_ids": [
"1903156476086276191"
]
},
{
"id": "1903156326865465416",
"text": "RT @Nexuist: Credit where credit is due: the X API team met with me over this post and allowed me to air out my grievances + brainstorm maj…",
"edit_history_tweet_ids": [
"1903156326865465416"
]
}
],
"meta": {
"next_token": "7140dibdnow9c7btw4dzn9zb70ozogky2lv2osvddf3na",
"result_count": 10,
"newest_id": "1910067114729501170",
"oldest_id": "1903156326865465416"
}
}
}
}