获取推特数据 API

API ID 5

通过此API查看推文详细信息 帐户详细信息 相关推文等

100% 正常运行时间 1,856 ms 平均响应

API 文档

端点

请求

通过传递Twitter用户名获取用户信息

获取用户ID、粉丝数量、用户关注了多少人、是否经过验证、账户是公共还是私密、个人资料图片URL以及账户中的推文数量

Endpoint ID: 10
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/10/user+details
输入参数

用户详情 — 端点功能

对象 描述
username 必需 The Twitter's username we want to query for.

剩余免费测试请求:3 / 3。


输入参数

username
API 示例响应
JSON
{
    "creation_date": "Fri Feb 13 05:09:01 +0000 2009",
    "user_id": "20749410",
    "username": "finkd",
    "name": "Mark Zuckerberg",
    "follower_count": 2161404,
    "following_count": 708,
    "favourites_count": 19,
    "is_private": false,
    "is_verified": false,
    "is_blue_verified": true,
    "location": null,
    "profile_pic_url": "https://pbs.twimg.com/profile_images/77846223/profile_normal.jpg",
    "profile_banner_url": "",
    "description": "",
    "external_url": null,
    "number_of_tweets": 32,
    "bot": false,
    "timestamp": 1234501741,
    "has_nft_avatar": false,
    "category": null,
    "default_profile": true,
    "default_profile_image": false,
    "listed_count": 6105,
    "verified_type": null
}
用户详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/10/user+details?username=finkd' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

通过用户名查询获取推特列表

您将获得推特的创建日期、文本以及转发和收藏的数量

Endpoint ID: 11
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/11/tweets+per+user
输入参数

用户每条推文 — 端点功能

对象 描述
username 必需 The Twitter's username we want to query for.

剩余免费测试请求:3 / 3。


输入参数

username
API 示例响应
JSON
{
    "results": [
        {
            "tweet_id": "2075658276490866983",
            "creation_date": "Fri Jul 10 19:07:51 +0000 2026",
            "text": "Uma vitória de milhões! https://t.co/ZLOnMegl06",
            "media_url": [
                "https://pbs.twimg.com/media/HM44MSJWoAA9X27.jpg",
                "https://pbs.twimg.com/media/HM44MSFWQAA5ixp.jpg"
            ],
            "video_url": null,
            "user": {
                "creation_date": "Mon Jun 14 19:09:20 +0000 2010",
                "user_id": "155659213",
                "username": "Cristiano",
                "name": "Cristiano Ronaldo",
                "follower_count": 111588560,
                "following_count": 82,
                "favourites_count": 101,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "location": "",
                "profile_pic_url": "https://pbs.twimg.com/profile_images/1940344470290989057/1OUP8RgK_normal.jpg",
                "profile_banner_url": "https://pbs.twimg.com/profile_banners/155659213/1751449147",
                "description": "Welcome to the official account of Cristiano Ronaldo.",
                "external_url": "https://t.co/Pc19xaN1Sp",
                "number_of_tweets": 4505,
                "bot": false,
                "timestamp": 1276542560,
                "has_nft_avatar": false,
                "category": null,
                "default_profile": false,
                "default_profile_image": false,
                "listed_count": 77051,
                "verified_type": null
            },
            "language": "pt",
            "favorite_count": 368816,
            "retweet_count": 37454,
            "reply_count": 25270,
            "quote_count": 17622,
            "retweet": false,
            "views": 38429573,
            "timestamp": 1783710471,
            "video_view_count": null,
            "in_reply_to_status_id": null,
            "quoted_status_id": null,
            "binding_values": null,
            "expanded_url": null,
            "retweet_tweet_id": null,
            "extended_entities": {
                "media": [
                    {
                        "allow_download_status": {
                            "allow_download": true
                        },
                        "display_url": "pic.x.com/ZLOnMegl06",
                        "expanded_url": "https://x.com/Cristiano/status/2075658276490866983/photo/1",
                        "ext_media_availability": {
                            "status": "Available"
                        },
                        "features": {
                            "all": {
                                "tags": [
                                    {
                                        "name": "Portugal",
                                        "screen_name": "selecaoportugal",
                                        "type": "user",
                                        "user_id": "2550023839"
                                    }
                                ]
                            },
                            "large": {
                                "faces": [
                                    {
                                        "h": 84,
                                        "w": 84,
                                        "x": 257,
                                        "y": 446
                                    },
                                    {
                                        "h": 84,
                                        "w": 84,
                                        "x": 431,
                                        "y": 460
                                    },
                                    {
                                        "h": 85,
                                        "w": 85,
                                        "x": 1493,
                                        "y": 475
                                    },
                                    {
                                        "h": 79,
                                        "w": 79,
                                        "x": 751,
                                        "y": 381
                                    },
                                    {
                                        "h": 92,
                                        "w": 92,
                                        "x": 1110,
                                        "y": 381
                                    },
                                    {
                                        "h": 89,
                                        "w": 89,
                                        "x": 1237,
                                        "y": 415
                                    },
                                    {
                                        "h": 87,
                                        "w": 87,
                                        "x": 1426,
                                        "y": 487
                                    },
                                    {
                                        "h": 84,
                                        "w": 84,
                                        "x": 128,
                                        "y": 582
                                    },
                                    {
                                        "h": 96,
                                        "w": 96,
                                        "x": 523,
                                        "y": 407
                                    },
                                    {
                                        "h": 90,
                                        "w": 90,
                                        "x": 1156,
                                        "y": 895
                                    }
                                ]
                            },
                            "medium": {
                                "faces": [
                                    {
                                        "h": 63,
                                        "w": 63,
                                        "x": 192,
                                        "y": 334
                                    },
                                    {
                                        "h": 63,
                                        "w": 63,
                                        "x": 323,
                                        "y": 345
                                    },
                                    {
                                        "h": 63,
                                        "w": 63,
                                        "x": 1119,
                                        "y": 356
                                    },
                                    {
                                        "h": 59,
                                        "w": 59,
                                        "x": 563,
                                        "y": 285
                                    },
                                    {
                                        "h": 69,
                                        "w": 69,
                                        "x": 832,
                                        "y": 285
                                    },
                                    {
                                        "h": 66,
                                        "w": 66,
                                        "x": 927,
                                        "y": 311
                                    },
                                    {
                                        "h": 65,
                                        "w": 65,
                                        "x": 1069,
                                        "y": 365
                                    },
                                    {
                                        "h": 63,
                                        "w": 63,
                                        "x": 96,
                                        "y": 436
                                    },
                                    {
                                        "h": 72,
                                        "w": 72,
                                        "x": 392,
                                        "y": 305
                                    },
                                    {
                                        "h": 67,
                                        "w": 67,
                                        "x": 867,
                                        "y": 671
                                    }
                                ]
                            },
                            "orig": {
                                "faces": [
                                    {
                                        "h": 84,
                                        "w": 84,
                                        "x": 257,
                                        "y": 446
                                    },
                                    {
                                        "h": 84,
                                        "w": 84,
                                        "x": 431
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
用户每条推文 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/11/tweets+per+user?username=cristiano' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

您可以通过用户名搜索来获取以下用户列表。

Endpoint ID: 12
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/12/who+is+the+user+following
输入参数

用户正在关注谁 — 端点功能

对象 描述
user_id 必需 The user_id we want to check for. You can get the user_id from "user details" endpoint.

剩余免费测试请求:3 / 3。


输入参数

user_id
API 示例响应
JSON
{
    "results": [
        {
            "creation_date": "Sat Oct 27 19:11:57 +0000 2012",
            "user_id": "908749393",
            "username": "AlNassrFC_EN",
            "name": "AlNassr FC",
            "follower_count": 1848088,
            "following_count": 56,
            "favourites_count": 2,
            "is_private": false,
            "is_verified": true,
            "is_blue_verified": true,
            "location": "Riyadh, Saudi Arabia",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1924480755712794624/Id3LfeBf_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/908749393/1779451680",
            "description": "💛 The League is Yellow\n🏆 The Champion is Nassr",
            "external_url": "https://vhilstudio-alnassr-mystery-box.com",
            "number_of_tweets": 23840,
            "bot": false,
            "timestamp": 1351365117,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": "Business"
        },
        {
            "creation_date": "Tue Jun 15 14:47:40 +0000 2010",
            "user_id": "155927976",
            "username": "rioferdy5",
            "name": "Rio Ferdinand",
            "follower_count": 10617565,
            "following_count": 774,
            "favourites_count": 6280,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1836880197896859648/DIHa3Lm5_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/155927976/1758739106",
            "description": "Official Twitter Account of Rio Ferdinand / Management Enquiries - [email protected]",
            "external_url": "http://Rioferdinandpresents.com",
            "number_of_tweets": 25017,
            "bot": false,
            "timestamp": 1276613260,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Fri Jun 06 13:21:04 +0000 2014",
            "user_id": "2550023839",
            "username": "selecaoportugal",
            "name": "Portugal",
            "follower_count": 2039123,
            "following_count": 282,
            "favourites_count": 4274,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Portugal",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/2034770998776446976/uv_1B_uZ_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/2550023839/1773962186",
            "description": "🇵🇹 Conta Oficial das Seleções Portuguesas de Futebol, Futsal e Futebol de Praia\n❤️‍🔥 #VaiDarPortugal | 🌊 #ItsPortugalTime",
            "external_url": "http://www.fpf.pt",
            "number_of_tweets": 41506,
            "bot": false,
            "timestamp": 1402060864,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Wed Nov 07 16:32:45 +0000 2012",
            "user_id": "932429090",
            "username": "MarceloM12",
            "name": "Marcelotwelve",
            "follower_count": 11668599,
            "following_count": 473,
            "favourites_count": 2118,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1778384758734557184/HdwWAF1v_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/932429090/1597679542",
            "description": "Marcelo Vieira @ChampionsLeague winner 2014, 2016, 2017, 2018 and 2022 🏆 @Libertadores winner 2023 🏆 @campus_12",
            "external_url": "https://www.groupdoze.com/",
            "number_of_tweets": 2231,
            "bot": false,
            "timestamp": 1352305965,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Mon Apr 11 21:45:31 +0000 2011",
            "user_id": "280701704",
            "username": "jamesdrodriguez",
            "name": "James Rodríguez",
            "follower_count": 16403454,
            "following_count": 289,
            "favourites_count": 296,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1703182231546515456/-0VuqwXp_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/280701704/1687129420",
            "description": "Bienvenidos⚽🇨🇴 JR🔟  Founder @Trulygenius_us",
            "external_url": "https://linktr.ee/jamesrodriguez10",
            "number_of_tweets": 3105,
            "bot": false,
            "timestamp": 1302558331,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Tue Jul 28 10:05:26 +0000 2009",
            "user_id": "60865434",
            "username": "KAKA",
            "name": "Kaka",
            "follower_count": 22840264,
            "following_count": 235,
            "favourites_count": 216,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1226626761611456513/MMyVfrYT_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/60865434/1571241388",
            "description": "",
            "external_url": "",
            "number_of_tweets": 5390,
            "bot": false,
            "timestamp": 1248775526,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Thu Feb 18 16:35:50 +0000 2021",
            "user_id": "1362440617603850246",
            "username": "talisca_aa",
            "name": "Andersontalisca",
            "follower_count": 417556,
            "following_count": 35,
            "favourites_count": 14,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1981727739745853441/ej3l4NFR_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/1362440617603850246/1761315699",
            "description": "Guided by God 🙏",
            "external_url": "",
            "number_of_tweets": 206,
            "bot": false,
            "timestamp": 1613666150,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Mon Feb 19 02:04:08 +0000 2024",
            "user_id": "1759398290909761536",
            "username": "DreameGlobal",
            "name": "Dreame Global",
            "follower_count": 7469,
            "following_count": 11,
            "favourites_count": 178,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1759399345097740288/Q9UQjC5N_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/1759398290909761536/1781677189",
            "description": "ALL DREAMS IN ONE DREAME. Tag #goDreame to be featured.",
            "external_url": "https://global.dreametech.com",
            "number_of_tweets": 522,
            "bot": false,
            "timestamp": 1708308248,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Mon Feb 23 15:42:53 +0000 2026",
            "user_id": "2025959482359185408",
            "username": "LiveModeTV_PT",
            "name": "LiveModeTV",
            "follower_count": 7935,
            "following_count": 25,
            "favourites_count": 31,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Lisbon, Portugal"
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
用户正在关注谁 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/12/who+is+the+user+following?user_id=155659213' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

通过用户ID查询以获取用户的关注者 

Endpoint ID: 13
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/13/user+followers
输入参数

用户关注者 — 端点功能

对象 描述
user_id 必需 The user_id we want to check for. You can get the user_id from "user details" endpoint.

剩余免费测试请求:3 / 3。


输入参数

user_id
API 示例响应
JSON
{
    "results": [
        {
            "creation_date": "Sat Oct 27 19:11:57 +0000 2012",
            "user_id": "908749393",
            "username": "AlNassrFC_EN",
            "name": "AlNassr FC",
            "follower_count": 1848088,
            "following_count": 56,
            "favourites_count": 2,
            "is_private": false,
            "is_verified": true,
            "is_blue_verified": true,
            "location": "Riyadh, Saudi Arabia",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1924480755712794624/Id3LfeBf_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/908749393/1779451680",
            "description": "💛 The League is Yellow\n🏆 The Champion is Nassr",
            "external_url": "https://vhilstudio-alnassr-mystery-box.com",
            "number_of_tweets": 23840,
            "bot": false,
            "timestamp": 1351365117,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": "Business"
        },
        {
            "creation_date": "Sat Aug 21 19:54:45 +0000 2010",
            "user_id": "181280529",
            "username": "Casemiro",
            "name": "Casemiro",
            "follower_count": 6437316,
            "following_count": 313,
            "favourites_count": 3179,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1025331713642250240/EpbtrihI_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/181280529/1528985965",
            "description": "",
            "external_url": "https://www.instagram.com/casemiro?igsh=ODdkcGNpOXZsbHZq",
            "number_of_tweets": 4893,
            "bot": false,
            "timestamp": 1282420485,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Sun Jan 01 21:29:46 +0000 2017",
            "user_id": "815671379202887684",
            "username": "RodrygoGoes",
            "name": "Rodrygo Goes",
            "follower_count": 5235651,
            "following_count": 468,
            "favourites_count": 1360,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Madrid, Spain",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/2071766969964015616/KrZam0t8_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/815671379202887684/1675536809",
            "description": "Atleta do @realmadrid e da @cbf_futebol 🇧🇷, revelado pelo @santosfc. 📧 [email protected]",
            "external_url": "https://whatsapp.com/channel/0029VaAkGQZIN9imj4z05B07",
            "number_of_tweets": 3805,
            "bot": false,
            "timestamp": 1483306186,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Tue Apr 30 14:29:11 +0000 2019",
            "user_id": "1123232834376933376",
            "username": "B_Fernandes8",
            "name": "Bruno Fernandes",
            "follower_count": 4811966,
            "following_count": 56,
            "favourites_count": 34,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Manchester, England",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1421602708772081668/vlWOX6iN_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/1123232834376933376/1629810224",
            "description": "Manchester United 🔴⚫️ and 🇵🇹 Portugal International Footballer ⚽️     📧 [email protected]",
            "external_url": "",
            "number_of_tweets": 593,
            "bot": false,
            "timestamp": 1556634551,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Tue Oct 10 18:01:37 +0000 2017",
            "user_id": "917812374782070785",
            "username": "antony00",
            "name": "Antony Santos",
            "follower_count": 1613706,
            "following_count": 156,
            "favourites_count": 439,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "São Paulo, Brasil",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/2020879423361396737/y_LrNcny_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/917812374782070785/1770649998",
            "description": "🇧🇷\n\[email protected]",
            "external_url": "http://www.4comm.com.br",
            "number_of_tweets": 1140,
            "bot": false,
            "timestamp": 1507658497,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Wed Jul 06 16:47:56 +0000 2011",
            "user_id": "330446733",
            "username": "ToniKroos",
            "name": "Toni Kroos",
            "follower_count": 12483883,
            "following_count": 177,
            "favourites_count": 7515,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Madrid, Spanien",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1144875187508338688/0MtdI4-f_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/330446733/1425647840",
            "description": "Official Twitter of Toni Kroos. @RealMadrid @DFB_Team @FIFAWorldCup winner 2014, 6x @ChampionsLeague winner Foundation: @TKStiftung",
            "external_url": "http://toni-kroos.com",
            "number_of_tweets": 3554,
            "bot": false,
            "timestamp": 1309970876,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Wed Jul 09 18:06:48 +0000 2014",
            "user_id": "2613992689",
            "username": "UnitedStandMUFC",
            "name": "The United Stand",
            "follower_count": 2897940,
            "following_count": 740,
            "favourites_count": 62942,
            "is_private": false,
            "is_verified": true,
            "is_blue_verified": true,
            "location": "United Kingdom",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/1766110292172328960/ogzYt2jP_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/2613992689/1714994015",
            "description": "Manchester United Fan Channel - For The Global Fanbase | Enquiries [email protected] | @NewsUnitedStand / @ThatsFootballTV",
            "external_url": "https://beacons.ai/theunitedstand",
            "number_of_tweets": 139394,
            "bot": false,
            "timestamp": 1404929208,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": "Business"
        },
        {
            "creation_date": "Fri Aug 02 10:28:18 +0000 2013",
            "user_id": "1640169925",
            "username": "IkerCasillas",
            "name": "Iker Casillas",
            "follower_count": 9033125,
            "following_count": 1209,
            "favourites_count": 15785,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "location": "Madrid, Comunidad de Madrid",
            "profile_pic_url": "https://pbs.twimg.com/profile_images/2028665217526136832/pTEcFo2b_normal.jpg",
            "profile_banner_url": "https://pbs.twimg.com/profile_banners/1640169925/1668189256",
            "description": "Global Ambassador @stake (Unavailable in ESP)  Y como no sabía que era imposible, lo hizo.",
            "external_url": "http://mypublicinbox.com/ikercasillas",
            "number_of_tweets": 6085,
            "bot": false,
            "timestamp": 1375439298,
            "has_nft_avatar": false,
            "category": null,
            "default_profile": null,
            "default_profile_image": null,
            "listed_count": null,
            "verified_type": null
        },
        {
            "creation_date": "Mon Aug 06 10:39:31 +0000 2012",
            "user_id": "740336334",
            "username": "GarethBale11"
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
用户关注者 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/13/user+followers?user_id=155659213' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

通过推文ID检索推文的一般信息 

创建日期 喜欢数 转发数 发推者 推文文本等等 

Endpoint ID: 14
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/14/tweet+details
输入参数

推文详情 — 端点功能

对象 描述
tweet_id 必需 The tweet id. Check "tweets per user" to get this information.,

剩余免费测试请求:3 / 3。


输入参数

tweet_id
API 示例响应
JSON
{
    "tweet_id": "2061238843320443140",
    "creation_date": "Mon Jun 01 00:10:10 +0000 2026",
    "text": "The state of AI right now https://t.co/79Wvo9rDgs",
    "media_url": [
        "https://pbs.twimg.com/media/HJr9zc6a4AA2azB.jpg"
    ],
    "video_url": null,
    "user": {
        "creation_date": "Wed Oct 05 17:00:03 +0000 2022",
        "user_id": "1577705091737432070",
        "username": "yunta_tsai",
        "name": "Yun-Ta Tsai",
        "follower_count": 101021,
        "following_count": 215,
        "favourites_count": 106489,
        "is_private": false,
        "is_verified": false,
        "is_blue_verified": true,
        "location": "Earth",
        "profile_pic_url": "https://pbs.twimg.com/profile_images/2035915849819938816/b6kIsNMe_normal.jpg",
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/1577705091737432070/1773849991",
        "description": "Sr. Staff Engineer  @Tesla_AI",
        "external_url": null,
        "number_of_tweets": 13238,
        "bot": false,
        "timestamp": 1664989203,
        "has_nft_avatar": false,
        "category": null,
        "default_profile": true,
        "default_profile_image": false,
        "listed_count": 620,
        "verified_type": null
    },
    "language": "en",
    "favorite_count": 2821,
    "retweet_count": 1047,
    "reply_count": 240,
    "quote_count": 20,
    "retweet": false,
    "views": 779380,
    "timestamp": 1780272610,
    "video_view_count": null,
    "in_reply_to_status_id": null,
    "quoted_status_id": null,
    "binding_values": null,
    "expanded_url": "https://x.com/yunta_tsai/status/2061238843320443140/photo/1",
    "retweet_tweet_id": null,
    "extended_entities": {
        "media": [
            {
                "display_url": "pic.x.com/79Wvo9rDgs",
                "expanded_url": "https://x.com/yunta_tsai/status/2061238843320443140/photo/1",
                "ext_media_availability": {
                    "status": "Available"
                },
                "features": {
                    "large": {
                        "faces": [
                            {
                                "h": 100,
                                "w": 100,
                                "x": 4,
                                "y": 517
                            }
                        ]
                    },
                    "medium": {
                        "faces": [
                            {
                                "h": 100,
                                "w": 100,
                                "x": 4,
                                "y": 517
                            }
                        ]
                    },
                    "orig": {
                        "faces": [
                            {
                                "h": 100,
                                "w": 100,
                                "x": 4,
                                "y": 517
                            }
                        ]
                    },
                    "small": {
                        "faces": [
                            {
                                "h": 68,
                                "w": 68,
                                "x": 2,
                                "y": 351
                            }
                        ]
                    }
                },
                "id_str": "2061238839851802624",
                "indices": [
                    26,
                    49
                ],
                "media_key": "3_2061238839851802624",
                "media_results": {
                    "result": {
                        "media_key": "3_2061238839851802624"
                    }
                },
                "media_url_https": "https://pbs.twimg.com/media/HJr9zc6a4AA2azB.jpg",
                "original_info": {
                    "focus_rects": [
                        {
                            "h": 444,
                            "w": 792,
                            "x": 0,
                            "y": 103
                        },
                        {
                            "h": 792,
                            "w": 792,
                            "x": 0,
                            "y": 0
                        },
                        {
                            "h": 903,
                            "w": 792,
                            "x": 0,
                            "y": 0
                        },
                        {
                            "h": 1000,
                            "w": 500,
                            "x": 292,
                            "y": 0
                        },
                        {
                            "h": 1000,
                            "w": 792,
                            "x": 0,
                            "y": 0
                        }
                    ],
                    "height": 1000,
                    "width": 792
                },
                "sizes": {
                    "large": {
                        "h": 1000,
                        "resize": "fit",
                        "w": 792
                    },
                    "medium": {
                        "h": 1000,
                        "resize": "fit",
                        "w": 792
                    },
                    "small": {
                        "h": 680,
                        "resize": "fit",
                        "w": 539
                    },
                    "thumb": {
                        "h": 150,
                        "resize": "crop",
                        "w": 150
                    }
                },
                "type": "photo",
                "url": "https://t.co/79Wvo9rDgs"
            }
        ]
    },
    "conversation_id": "2061238843320443140",
    "retweet_status": null,
    "quoted_status": null,
    "bookmark_count": 216,
    "source": "Twitter for iPhone",
    "community_note": null
}
推文详情 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/14/tweet+details?tweet_id=2061238843320443140' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

此终端返回搜索结果

 
Endpoint ID: 4808
GET https://docs.zylalabs.com/api/5/get+twitter+data+api/4808/search+tweets
输入参数

搜索推文 — 端点功能

对象 描述
query 必需 Topic or word related to your search

剩余免费测试请求:3 / 3。


输入参数

query
API 示例响应
JSON
{
    "results": [
        {
            "tweet_id": "2071640066321953081",
            "creation_date": "Mon Jun 29 17:00:55 +0000 2026",
            "text": "Is Ousmane Dembélé the most two-footed player in football?\n\n#UCL https://t.co/nqpUylWxDO",
            "media_url": [
                "https://pbs.twimg.com/amplify_video_thumb/2071638985445629952/img/pdSf7k0_zBtKOM1X.jpg"
            ],
            "video_url": [
                {
                    "content_type": "application/x-mpegURL",
                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/pl/ZNzgg2dnYbaj93xI.m3u8?tag=28&v=cfc"
                },
                {
                    "bitrate": 632000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/320x400/VVL6awZb6_cRm01n.mp4?tag=28"
                },
                {
                    "bitrate": 950000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/480x600/kb0pk-k43iZyBp_P.mp4?tag=28"
                },
                {
                    "bitrate": 2176000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/720x900/AJ0aWSoDyd7KD-gE.mp4?tag=28"
                },
                {
                    "bitrate": 10368000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/1080x1350/oIvWgEYw-kT4YZQN.mp4?tag=28"
                }
            ],
            "user": {
                "creation_date": "Thu Jul 05 19:43:40 +0000 2012",
                "user_id": "627673190",
                "username": "ChampionsLeague",
                "name": "UEFA Champions League",
                "follower_count": 52976189,
                "following_count": 640,
                "favourites_count": 5354,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "location": "Nyon, Vaud",
                "profile_pic_url": "https://pbs.twimg.com/profile_images/1816474701360685056/-JaD_SYC_normal.jpg",
                "profile_banner_url": "https://pbs.twimg.com/profile_banners/627673190/1721916293",
                "description": "🇪🇸 @LigadeCampeones \n🇯🇵 @UCLJapan \nYouth League: @UEFAMensYouth",
                "external_url": "https://linktr.ee/UEFAChampionsLeague",
                "number_of_tweets": 102280,
                "bot": false,
                "timestamp": 1341517420,
                "has_nft_avatar": false,
                "category": null,
                "default_profile": false,
                "default_profile_image": false,
                "listed_count": 31629,
                "verified_type": "Business"
            },
            "language": "ht",
            "favorite_count": 9388,
            "retweet_count": 527,
            "reply_count": 176,
            "quote_count": 24,
            "retweet": false,
            "views": 655222,
            "timestamp": 1782752455,
            "video_view_count": null,
            "in_reply_to_status_id": null,
            "quoted_status_id": null,
            "binding_values": null,
            "expanded_url": "https://x.com/ChampionsLeague/status/2071640066321953081/video/1",
            "retweet_tweet_id": null,
            "extended_entities": {
                "media": [
                    {
                        "additional_media_info": {
                            "monetizable": false
                        },
                        "display_url": "pic.x.com/nqpUylWxDO",
                        "expanded_url": "https://x.com/ChampionsLeague/status/2071640066321953081/video/1",
                        "ext_media_availability": {
                            "status": "Available"
                        },
                        "id_str": "2071638985445629952",
                        "indices": [
                            65,
                            88
                        ],
                        "media_key": "13_2071638985445629952",
                        "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2071638985445629952/img/pdSf7k0_zBtKOM1X.jpg",
                        "original_info": {
                            "focus_rects": [],
                            "height": 1350,
                            "width": 1080
                        },
                        "sizes": {
                            "large": {
                                "h": 1350,
                                "resize": "fit",
                                "w": 1080
                            },
                            "medium": {
                                "h": 1200,
                                "resize": "fit",
                                "w": 960
                            },
                            "small": {
                                "h": 680,
                                "resize": "fit",
                                "w": 544
                            },
                            "thumb": {
                                "h": 150,
                                "resize": "crop",
                                "w": 150
                            }
                        },
                        "type": "video",
                        "url": "https://t.co/nqpUylWxDO",
                        "video_info": {
                            "aspect_ratio": [
                                4,
                                5
                            ],
                            "duration_millis": 20400,
                            "variants": [
                                {
                                    "content_type": "application/x-mpegURL",
                                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/pl/ZNzgg2dnYbaj93xI.m3u8?tag=28&v=cfc"
                                },
                                {
                                    "bitrate": 632000,
                                    "content_type": "video/mp4",
                                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/320x400/VVL6awZb6_cRm01n.mp4?tag=28"
                                },
                                {
                                    "bitrate": 950000,
                                    "content_type": "video/mp4",
                                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/480x600/kb0pk-k43iZyBp_P.mp4?tag=28"
                                },
                                {
                                    "bitrate": 2176000,
                                    "content_type": "video/mp4",
                                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/720x900/AJ0aWSoDyd7KD-gE.mp4?tag=28"
                                },
                                {
                                    "bitrate": 10368000,
                                    "content_type": "video/mp4",
                                    "url": "https://video.twimg.com/amplify_video/2071638985445629952/vid/avc1/1080x1350/oIvWgEYw-kT4YZQN.mp4?tag=28"
                                }
                            ]
                        }
                    }
                ]
            },
            "conversation_id": "2071640066321953081",
            "retweet_status": null,
            "quoted_status": null,
            "bookmark_count": 189,
            "source": "Twitter Web App",
            "community_note": null
        },
        {
            "tweet_id": "2077135757181866328",
            "creation_date": "Tue Jul 14 20:58:50 +0000 2026",
            "text": "🚨🚨 BREAKING: SPAIN QUALIFY FOR THE 2026 WORLD CUP FINAL! 💥🇪🇸 https://t.co/g3IJjcTpvt",
            "media_url": [
                "https://pbs.twimg.com/media/HNN39Q5WQAEQd-v.jpg"
            ],
            "video_url": null,
            "user": {
                "creation_date": "Wed Jul 06 10:58:55 +0000 2011",
                "user_id": "330262748",
                "username": "FabrizioRomano",
                "name": "Fabrizio Romano",
                "follower_count": 28320539,
                "following_count": 2677,
                "favourites_count": 11623,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "location": "Milano, Italia",
                "profile_pic_url": "https://pbs.twimg.com/profile_images/1741753635158024192/j0m8Ucvv_normal.jpg",
                "profile_banner_url": "https://pbs.twimg.com/profile_banners/330262748/1635957145",
                "description": "Here we go! © [email protected] 📩",
                "external_url": "https://m.youtube.com/@FabrizioRomanoYT",
                "number_of_tweets": 74042,
                "bot": false,
                "timestamp": 1309949935,
                "has_nft_avatar": false,
                "category": null,
                "default_profile": false,
                "default_profile_image": false,
                "listed_count": 32700
            }
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
搜索推文 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/4808/search+tweets?query=football' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 获取推特数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控
zeiss-logo amazon-logo zoom-logo decathlon-logo

领先企业的信赖之选

概览

 

关于API:

全球的新闻和时事可以在Twitter上获取。可以使用浏览器和移动设备访问Twitter。我们还为公司、开发者和用户提供通过我们的API对Twitter数据的程序化访问。

Twitter数据与大多数其他社交网络发布的数据不同,因为它包含用户选择公开广播的信息。通过我们的API平台,用户选择公开的数据可以轻松访问。

 

此API接收什么以及您的API提供什么(输入/输出)?

使用GetTwitter API,您可以获取帖子、用户信息、推文详细信息、账户信息、相关推文等。

通过输入用户的Twitter用户名,您可以获得以下信息:

  • 用户的ID。
  • 粉丝的数量和列表。
  • 他们关注的用户数量和列表。
  • 账户是否经过验证。
  • 账户是公开的还是私人。
  • 个人资料图片的URL。
  • 账户的推文数量及其列表。
  • 您可以获取推文的内容、创建日期、每条推文的点赞和转发数量。

 

此API的最常见使用案例是什么?

此API非常适合那些希望了解Twitter上名人的内容创作者。

此外,如果您是市场营销机构,您将收集有关用户关注的人的信息,以更好地定位您的活动。

 

您的计划是否有任何限制?

唯一的限制是您每月可以进行的API调用次数。

获取推特数据 API FAQs

每个端点返回特定的Twitter数据。例如GET用户详情端点提供用户ID关注者数量和个人资料图片URL而GET每用户推文端点返回推文创建日期文本和转发点赞等参与指标

关键字段包括用户ID、关注者数量、用户推文数量以及推文ID、创建日期、文本、点赞数和转发数 这些字段有助于识别用户和分析推文表现

响应数据采用JSON格式构建 每个端点返回一个包含相关字段的主要对象 例如 GET用户详情端点返回一个单一对象中的用户属性 而GET每用户推文端点返回一个推文对象的数组

参数因端点而异。获取用户详情需要Twitter用户名。获取每个用户的推文也需要用户名。这些参数允许用户自定义请求以检索特定数据

每个端点提供不同的信息 获取用户详细信息提供用户资料数据 获取用户推文返回一份推文列表 获取用户关注的账户显示用户关注的账户 获取用户粉丝列出用户的粉丝

用户可以分析返回的数据以获取有关用户参与和行为的洞察。例如,通过检查关注者数量和推文指标,市场营销人员可以定制活动,而内容创作者可以识别趋势和热门话题

典型的用例包括市场调研、影响者分析和社交媒体监测.机构可以根据用户的关注对象来定位广告活动,而内容创作者可以通过推文表现跟踪参与度和观众兴趣

数据的准确性通过直接从Twitter的公共API获取信息来保持,这反映了实时用户生成的内容 定期更新确保数据对访问它的用户保持最新和相关

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API