推特 API

API ID 9795

获取完整的Twitter数据:通过ID获取用户信息、粉丝列表和发布推文的详细汇编

100% 正常运行时间 589 ms 平均响应

API 文档

端点

请求
获取完整的用户信息,包括个人资料 粉丝 帖子 多媒体 验证 订阅 互动统计和专业详情
Endpoint ID: 18296
GET https://zylalabs.com/api/9795/twitter+api/18296/user+information
输入参数

用户信息 — 端点功能

对象 描述
username 必需 Enter a username

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


输入参数

username
API 示例响应
JSON
{
    "result": {
        "data": {
            "user": {
                "result": {
                    "__typename": "User",
                    "id": "VXNlcjoxNTU2NTkyMTM=",
                    "rest_id": "155659213",
                    "affiliates_highlighted_label": [],
                    "avatar": {
                        "image_url": "https://pbs.twimg.com/profile_images/1940344470290989057/1OUP8RgK_normal.jpg"
                    },
                    "core": {
                        "created_at": "Mon Jun 14 19:09:20 +0000 2010",
                        "name": "Cristiano Ronaldo",
                        "screen_name": "Cristiano"
                    },
                    "dm_permissions": {
                        "can_dm": false
                    },
                    "has_graduated_access": true,
                    "is_blue_verified": true,
                    "legacy": {
                        "default_profile": false,
                        "default_profile_image": false,
                        "description": "Welcome to the official account of Cristiano Ronaldo.",
                        "entities": {
                            "description": {
                                "urls": []
                            },
                            "url": {
                                "urls": [
                                    {
                                        "display_url": "cristianoronaldo.com",
                                        "expanded_url": "https://www.cristianoronaldo.com/",
                                        "url": "https://t.co/Pc19xaN1Sp",
                                        "indices": [
                                            0,
                                            23
                                        ]
                                    }
                                ]
                            }
                        },
                        "fast_followers_count": 0,
                        "favourites_count": 63,
                        "followers_count": 115709965,
                        "friends_count": 76,
                        "has_custom_timelines": false,
                        "is_translator": false,
                        "listed_count": 85008,
                        "media_count": 2401,
                        "normal_followers_count": 115709965,
                        "pinned_tweet_ids_str": [],
                        "possibly_sensitive": false,
                        "profile_banner_url": "https://pbs.twimg.com/profile_banners/155659213/1751449147",
                        "profile_interstitial_type": "",
                        "statuses_count": 4333,
                        "translator_type": "regular",
                        "url": "https://t.co/Pc19xaN1Sp",
                        "want_retweets": false,
                        "withheld_in_countries": []
                    },
                    "location": {
                        "location": ""
                    },
                    "media_permissions": {
                        "can_media_tag": true
                    },
                    "parody_commentary_fan_label": "None",
                    "profile_image_shape": "Circle",
                    "privacy": {
                        "protected": false
                    },
                    "relationship_perspectives": {
                        "following": false
                    },
                    "tipjar_settings": [],
                    "verification": {
                        "verified": false
                    },
                    "legacy_extended_profile": {
                        "birthdate": {
                            "day": 5,
                            "month": 2,
                            "year": 1985,
                            "visibility": "Public",
                            "year_visibility": "Public"
                        }
                    },
                    "is_profile_translatable": false,
                    "has_hidden_subscriptions_on_profile": false,
                    "verification_info": {
                        "is_identity_verified": false,
                        "reason": {
                            "description": {
                                "text": "This account is verified. Learn more",
                                "entities": [
                                    {
                                        "from_index": 26,
                                        "to_index": 36,
                                        "ref": {
                                            "url": "https://help.twitter.com/managing-your-account/about-twitter-verified-accounts",
                                            "url_type": "ExternalUrl"
                                        }
                                    }
                                ]
                            },
                            "verified_since_msec": "1276611237262"
                        }
                    },
                    "highlights_info": {
                        "can_highlight_tweets": true,
                        "highlighted_tweets": "0"
                    },
                    "user_seed_tweet_count": 0,
                    "premium_gifting_eligible": false,
                    "business_account": [],
                    "creator_subscriptions_count": 0
                }
            }
        }
    }
}
用户信息 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18296/user+information?username=cristiano' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
获取多个用户的详细信息,包括个人资料 关注者 发布的内容 多媒体 验证 订阅 互动统计和专业数据
Endpoint ID: 18377
GET https://zylalabs.com/api/9795/twitter+api/18377/users+data+by+id
输入参数

用户数据按ID — 端点功能

对象 描述
username 必需 Indicate the user IDs

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


输入参数

username
API 示例响应
JSON
{
    "data": {
        "id": "783214",
        "encoded_id": "VXNlcjo3ODMyMTQ=",
        "screen_name": "X",
        "name": "X",
        "desc": "what's happening?!",
        "location": "everywhere",
        "birthdate": [],
        "website_url": "https://t.co/Xp0xJlcROt",
        "avatar_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
        "banner_url": "https://pbs.twimg.com/profile_banners/783214/1690175171",
        "created_at": "Tue Feb 20 14:35:54 +0000 2007",
        "created_at_unix": 1171982154,
        "profile_image_shape": "Square",
        "tweet_count": 15740,
        "media_tweet_count": 2492,
        "follower_count": 60649462,
        "following_count": 1,
        "favorites_count": 5967,
        "affiliates_count": 729,
        "creator_subscriptions_count": 0,
        "is_private": false,
        "is_verified": false,
        "is_blue_verified": true,
        "verification_info": {
            "is_identity_verified": false,
            "verified_since_msec": "1362700632470",
            "reason": "This account is verified because it's an official organization on X"
        },
        "can_dm": false,
        "can_media_tag": false,
        "is_profile_translatable": false,
        "possibly_sensitive": false,
        "premium_gifting_eligible": false,
        "super_follow_eligible": false,
        "profile_sort_enabled": true,
        "has_graduated_access": true,
        "has_hidden_subscriptions_on_profile": false,
        "urls": [
            {
                "url": "https://t.co/Xp0xJlcROt",
                "display_url": "x.com",
                "expanded_url": "https://x.com"
            }
        ],
        "affiliates_highlighted_label": [],
        "professional": {
            "category": [
                {
                    "id": 714,
                    "name": "Technology Company"
                }
            ],
            "id": "1858538123375874167",
            "type": "Business"
        },
        "parody_commentary_fan_label": "None",
        "pinned_tweet_ids": [],
        "profile_url": "https://x.com/X"
    }
}
用户数据按ID — 代码片段

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18377/users+data+by+id?username=x' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
获取关于关注者的详细信息,包括ID、姓名、简介、认证账户、关注者指标、链接、头像和其他设置
Endpoint ID: 18403
GET https://zylalabs.com/api/9795/twitter+api/18403/followers
输入参数

粉丝 — 端点功能

对象 描述
user_id 必需 Indicates a user id

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


输入参数

user_id
API 示例响应
JSON
{
    "cursor": "1881669565738675537|2120920706106523577",
    "data": [
        {
            "id": "10228272",
            "encoded_id": "VXNlcjoxMDIyODI3Mg==",
            "screen_name": "YouTube",
            "name": "YouTube",
            "desc": "like and subscribe",
            "location": "San Bruno, CA",
            "birthdate": [],
            "website_url": "https://t.co/GIOK0JwagA",
            "avatar_url": "https://pbs.twimg.com/profile_images/1984471345854566400/5pd8GpgC_normal.jpg",
            "banner_url": "https://pbs.twimg.com/profile_banners/10228272/1794339718",
            "created_at": "Tue Nov 13 21:43:46 +0000 2007",
            "created_at_unix": 1194990226,
            "profile_image_shape": "Square",
            "tweet_count": 61681,
            "media_tweet_count": 16217,
            "follower_count": 68721325,
            "following_count": 1139,
            "favorites_count": 6016,
            "affiliates_count": 0,
            "creator_subscriptions_count": 0,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "verification_info": [],
            "can_dm": false,
            "can_media_tag": false,
            "possibly_sensitive": false,
            "super_follow_eligible": false,
            "has_graduated_access": true,
            "urls": [
                {
                    "url": "https://t.co/GIOK0JwagA",
                    "display_url": "youtube.com",
                    "expanded_url": "http://youtube.com/"
                }
            ],
            "affiliates_highlighted_label": [],
            "professional": [],
            "parody_commentary_fan_label": "None",
            "pinned_tweet_ids": [
                "2102412606308757511"
            ],
            "profile_url": "https://x.com/YouTube"
        },
        {
            "id": "20536157",
            "encoded_id": "VXNlcjoyMDUzNjE1Nw==",
            "screen_name": "Google",
            "name": "Google",
            "desc": "Here to help.",
            "location": "Mountain View, CA",
            "birthdate": [],
            "website_url": "https://t.co/RS3iU87BGe",
            "avatar_url": "https://pbs.twimg.com/profile_images/2042749771337564160/AgOFPEL3_normal.jpg",
            "banner_url": "https://pbs.twimg.com/profile_banners/20536157/1780004508",
            "created_at": "Tue Feb 10 19:14:39 +0000 2009",
            "created_at_unix": 1234293279,
            "profile_image_shape": "Square",
            "tweet_count": 252081,
            "media_tweet_count": 38371,
            "follower_count": 31900993,
            "following_count": 300,
            "favorites_count": 5801,
            "affiliates_count": 0,
            "creator_subscriptions_count": 0,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "verification_info": [],
            "can_dm": true,
            "can_media_tag": false,
            "possibly_sensitive": false,
            "super_follow_eligible": false,
            "has_graduated_access": true,
            "urls": [
                {
                    "url": "https://t.co/RS3iU87BGe",
                    "display_url": "blog.google/newsletter-sub…",
                    "expanded_url": "https://blog.google/newsletter-subscribe/"
                }
            ],
            "affiliates_highlighted_label": [],
            "professional": {
                "category": [
                    {
                        "id": 713,
                        "name": "Science & Technology"
                    }
                ],
                "id": "1504886752259059716",
                "type": "Business"
            },
            "parody_commentary_fan_label": "None",
            "pinned_tweet_ids": [
                "2120186185423159331"
            ],
            "profile_url": "https://x.com/Google"
        },
        {
            "id": "74286565",
            "encoded_id": "VXNlcjo3NDI4NjU2NQ==",
            "screen_name": "Microsoft",
            "name": "Microsoft",
            "desc": "We're on a mission to empower every person and every organization on the planet to achieve more. Support: @MicrosoftHelps",
            "location": "Redmond, WA",
            "birthdate": [],
            "website_url": "",
            "avatar_url": "https://pbs.twimg.com/profile_images/2105783660914122752/qyF3N1l8_normal.jpg",
            "banner_url": "https://pbs.twimg.com/profile_banners/74286565/1780943553",
            "created_at": "Mon Sep 14 22:35:42 +0000 2009",
            "created_at_unix": 1252967742,
            "profile_image_shape": "Square",
            "tweet_count": 31141,
            "media_tweet_count": 3362,
            "follower_count": 13059134,
            "following_count": 1096,
            "favorites_count": 13761,
            "affiliates_count": 0,
            "creator_subscriptions_count": 0,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "verification_info": [],
            "can_dm": true,
            "can_media_tag": false,
            "possibly_sensitive": false,
            "super_follow_eligible": false,
            "has_graduated_access": true,
            "affiliates_highlighted_label": [],
            "professional": [],
            "parody_commentary_fan_label": "None",
            "pinned_tweet_ids": [
                "2117670766921842826"
            ],
            "profile_url": "https://x.com/Microsoft"
        },
        {
            "id": "1399766153053061121",
            "encoded_id": "VXNlcjoxMzk5NzY2MTUzMDUzMDYxMTIx",
            "screen_name": "Subscriptions",
            "name": "The X Subscription",
            "desc": "Get all the benefits of X Premium, Grok and Cursor in one plan.",
            "location": "",
            "birthdate": [],
            "website_url": "https://t.co/IiVN0z23AV",
            "avatar_url": "https://pbs.twimg.com/profile_images/1683366300054069248/67v23AEj_normal.jpg",
            "banner_url": "https://pbs.twimg.com/profile_banners/1399766153053061121/1690180776",
            "created_at": "Tue Jun 01 16:34:27 +0000 2021",
            "created_at_unix": 1622565267,
            "profile_image_shape": "Square",
            "tweet_count": 1310,
            "media_tweet_count": 66,
            "follower_count": 1297125,
            "following_count": 3,
            "favorites_count": 663,
            "affiliates_count": 0,
            "creator_subscriptions_count": 0,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "verification_info": [],
            "can_dm": true,
            "can_media_tag": false,
            "possibly_sensitive": false,
            "super_follow_eligible": false,
            "has_graduated_access": true,
            "urls": [
                {
                    "url": "https://t.co/IiVN0z23AV",
                    "display_url": "x.com/subscription",
                    "expanded_url": "https://x.com/subscription"
                }
            ],
            "affiliates_highlighted_label": {
                "description": "X",
                "url": "https://twitter.com/X",
                "badge_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg",
                "type": "BusinessLabel"
            },
            "professional": [],
            "parody_commentary_fan_label": "None",
            "pinned_tweet_ids": [],
            "profile_url": "https://x.com/Subscriptions"
        },
        {
            "id": "243381107",
            "encoded_id": "VXNlcjoyNDMzODExMDc=",
            "screen_name": "GooglePlay",
            "name": "Google Play",
            "desc": "The official home for all things Google Play. Get the latest and greatest in mobile gaming, movies, apps, and more.",
            "location": "",
            "birthdate": [],
            "website_url": "https://t.co/RVBA7v9ZL6",
            "avatar_url": "https://pbs.twimg.com/profile_images/1551615678418788353/F49R5U9C_normal.png",
            "banner_url": "https://pbs.twimg.com/profile_banners/243381107/1771613229",
            "created_at": "Wed Jan 26 22:44:39 +0000 2011",
            "created_at_unix": 1296081879,
            "profile_image_shape": "Square",
            "tweet_count": 254951,
            "media_tweet_count": 25416,
            "follower_count": 6581308,
            "following_count": 266,
            "favorites_count": 8538,
            "affiliates_count": 0,
            "creator_subscriptions_count": 0,
            "is_private": false,
            "is_verified": false,
            "is_blue_verified": true,
            "verification_info": [],
            "can_dm": false,
            "can_media_tag": false,
            "possibly_sensitive": false,
            "super_follow_eligible": false,
            "has_graduated_access": true,
            "urls": [
                {
                    "url": "https://t.co/RVBA7v9ZL6",
                    "display_url": "play.google.com",
                    "expanded_url": "http://play.google.com"
                }
            ],
            "affiliates_highlighted_label": [],
            "professional": [],
            "parody_commentary_fan_label": "None",
            "pinned_tweet_ids": [
                "2112227318282260952"
            ]
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
粉丝 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18403/followers?user_id=783214' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
提供特定推文的完整细节,包括计数 附加媒体 主题标签 元数据 可用性 和相关互动属性
Endpoint ID: 18404
GET https://zylalabs.com/api/9795/twitter+api/18404/user+tweets
输入参数

用户推文 — 端点功能

对象 描述
user_id 必需 Indicates user ID

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


输入参数

user_id
API 示例响应
JSON
{
    "cursor": "DAAHCgABHW8GPpp__-4LAAIAAAATMjEwMjE0NzYzNjcwMjYzNDE5NQgAAwAAAAIAAA",
    "data": [
        {
            "id": "2120252460145238375",
            "conversation_id": "2120252460145238375",
            "desc": "asking for timestamps is so last week",
            "lang": "en",
            "view_count": 399189,
            "bookmark_count": 136,
            "favorite_count": 1310,
            "quote_count": 15,
            "reply_count": 166,
            "retweet_count": 383,
            "medias": [],
            "hashtags": [],
            "user_mentions": [],
            "author": {
                "id": "783214",
                "encoded_id": "VXNlcjo3ODMyMTQ=",
                "screen_name": "X",
                "name": "X",
                "desc": "what's happening?!",
                "location": "everywhere",
                "website_url": "https://t.co/Xp0xJlcROt",
                "avatar_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
                "banner_url": "https://pbs.twimg.com/profile_banners/783214/1690175171",
                "created_at": "Tue Feb 20 14:35:54 +0000 2007",
                "created_at_unix": 1171982154,
                "profile_image_shape": "Square",
                "tweet_count": 15740,
                "media_tweet_count": 2492,
                "follower_count": 60649462,
                "following_count": 1,
                "favorites_count": 5967,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "can_dm": false,
                "can_media_tag": false,
                "possibly_sensitive": false,
                "super_follow_eligible": false,
                "has_graduated_access": true,
                "urls": [
                    {
                        "url": "https://t.co/Xp0xJlcROt",
                        "display_url": "x.com",
                        "expanded_url": "https://x.com"
                    }
                ],
                "affiliates_highlighted_label": [],
                "professional": {
                    "category": [
                        {
                            "id": 714,
                            "name": "Technology Company"
                        }
                    ],
                    "id": "1858538123375874167",
                    "type": "Business"
                },
                "pinned_tweet_ids": [],
                "profile_url": "https://x.com/X"
            },
            "in_reply_to_tweet_id": null,
            "in_reply_to_user_id": null,
            "in_reply_to_screen_name": null,
            "is_quote_status": true,
            "quoted_status_id": "2119892170224074832",
            "is_translatable": false,
            "is_edit_eligible": true,
            "possibly_sensitive": false,
            "possibly_sensitive_editable": false,
            "created_at_unix": 1794342553,
            "created_at": "Tue Nov 10 20:29:13 +0000 2026",
            "url": "https://x.com/X/status/2120252460145238375"
        },
        {
            "id": "2118833672539553808",
            "conversation_id": "2118833672539553808",
            "desc": "bigger than you could ever @Imagine",
            "lang": "en",
            "view_count": 553705,
            "bookmark_count": 153,
            "favorite_count": 1797,
            "quote_count": 33,
            "reply_count": 302,
            "retweet_count": 516,
            "medias": [],
            "hashtags": [],
            "user_mentions": [
                {
                    "id": "2019292645466730499",
                    "name": "Grok Imagine",
                    "screen_name": "imagine"
                }
            ],
            "author": {
                "id": "783214",
                "encoded_id": "VXNlcjo3ODMyMTQ=",
                "screen_name": "X",
                "name": "X",
                "desc": "what's happening?!",
                "location": "everywhere",
                "website_url": "https://t.co/Xp0xJlcROt",
                "avatar_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
                "banner_url": "https://pbs.twimg.com/profile_banners/783214/1690175171",
                "created_at": "Tue Feb 20 14:35:54 +0000 2007",
                "created_at_unix": 1171982154,
                "profile_image_shape": "Square",
                "tweet_count": 15740,
                "media_tweet_count": 2492,
                "follower_count": 60649462,
                "following_count": 1,
                "favorites_count": 5967,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "can_dm": false,
                "can_media_tag": false,
                "possibly_sensitive": false,
                "super_follow_eligible": false,
                "has_graduated_access": true,
                "urls": [
                    {
                        "url": "https://t.co/Xp0xJlcROt",
                        "display_url": "x.com",
                        "expanded_url": "https://x.com"
                    }
                ],
                "affiliates_highlighted_label": [],
                "professional": {
                    "category": [
                        {
                            "id": 714,
                            "name": "Technology Company"
                        }
                    ],
                    "id": "1858538123375874167",
                    "type": "Business"
                },
                "pinned_tweet_ids": [],
                "profile_url": "https://x.com/X"
            },
            "in_reply_to_tweet_id": null,
            "in_reply_to_user_id": null,
            "in_reply_to_screen_name": null,
            "is_quote_status": true,
            "quoted_status_id": "2118831607650136119",
            "is_translatable": false,
            "is_edit_eligible": true,
            "possibly_sensitive": false,
            "possibly_sensitive_editable": false,
            "created_at_unix": 1794004288,
            "created_at": "Fri Nov 06 22:31:28 +0000 2026",
            "url": "https://x.com/X/status/2118833672539553808"
        },
        {
            "id": "2117375669432664133",
            "conversation_id": "2117375669432664133",
            "desc": "ah yes welcome back irl dark mode",
            "lang": "en",
            "view_count": 2543358,
            "bookmark_count": 514,
            "favorite_count": 12094,
            "quote_count": 182,
            "reply_count": 943,
            "retweet_count": 1163,
            "medias": [],
            "hashtags": [],
            "user_mentions": [],
            "author": {
                "id": "783214",
                "encoded_id": "VXNlcjo3ODMyMTQ=",
                "screen_name": "X",
                "name": "X",
                "desc": "what's happening?!",
                "location": "everywhere",
                "website_url": "https://t.co/Xp0xJlcROt",
                "avatar_url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_normal.jpg",
                "banner_url": "https://pbs.twimg.com/profile_banners/783214/1690175171",
                "created_at": "Tue Feb 20 14:35:54 +0000 2007",
                "created_at_unix": 1171982154,
                "profile_image_shape": "Square",
                "tweet_count": 15740,
                "media_tweet_count": 2492,
                "follower_count": 60649462,
                "following_count": 1,
                "favorites_count": 5967,
                "is_private": false,
                "is_verified": false,
                "is_blue_verified": true,
                "can_dm": false,
                "can_media_tag": false,
                "possibly_sensitive": false,
                "super_follow_eligible": false,
                "has_graduated_access": true,
                "urls": [
                    {
                        "url": "https://t.co/Xp0xJlcROt",
                        "display_url": "x.com",
                        "expanded_url": "https://x.com"
                    }
                ],
                "affiliates_highlighted_label": [],
                "professional": {
                    "category": [
                        {
                            "id": 714,
                            "name": "Technology Company"
                        }
                    ],
                    "id": "1858538123375874167",
                    "type": "Business"
                },
                "pinned_tweet_ids": [],
                "profile_url": "https://x.com/X"
            },
            "in_reply_to_tweet_id": null,
            "in_reply_to_user_id": null,
            "in_reply_to_screen_name": null,
            "is_quote_status": false,
            "quoted_status_id": null,
            "is_translatable": false,
            "is_edit_eligible": true,
            "possibly_sensitive": false,
            "possibly_sensitive_editable": false,
            "created_at_unix": 1793656673,
            "created_at": "Mon Nov 02 21:57:53 +0000 2026",
            "url": "https://x.com/X/status/2117375669432664133"
        },
        {
            "id": "2115117485020135559",
            "conversation_id": "2115117485020135559",
            "desc": "ty for 4 years of bangers",
            "lang": "en"
        }
    ],
    "_note": "Response truncated for documentation purposes"
}
用户推文 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18404/user+tweets?user_id=783214' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

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

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

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

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

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

Twitter API 提供了一个全面的解决方案,用于访问、分析和管理平台上的公共个人资料和内容信息。它旨在为需要直接从 Twitter 获取结构化、最新数据的用户提供服务,适用于多种目的:品牌监测、趋势分析、影响者跟踪、报告生成和自定义应用程序创建。

通过这个 API,可以通过 ID 获取用户数据,这确保了准确性并避免了按名称搜索时常见的模糊性。您可以访问详细信息,例如姓名、简介、位置、账户创建日期、验证状态、个人资料图片和关键指标(关注者、关注、推文、列表)。

该 API 在设计上考虑了灵活性和可扩展性:它适应小型个人分析项目和需要大量信息的企业系统。通过将用户、关注者和推文数据的收集集中到一个服务中,它消除了多个单独集成的需要。

简而言之,Twitter API 为那些需要将 Twitter 上的公共信息转化为可操作知识的人提供了全面、最新和易于集成的数据,确保最大程度的准确性和效率。

推特 API FAQs

每个端点返回特定的数据类型:用户信息端点提供用户资料和互动统计;按ID获取用户数据的端点为多个用户提供详细的用户资料;关注者端点详细列出关注者的指标和资料;用户推文端点包含推文详细信息、媒体和互动属性

关键字段因端点而异:用户信息包括姓名、简历、位置和指标;通过ID的用户数据添加多个用户资料;粉丝功能包括身份、姓名、简介和粉丝指标;用户推文包括推文内容、媒体、标签和互动次数

响应数据采用JSON格式结构,每个端点返回一个特定的对象。例如,用户信息返回一个用户对象,该对象包含用于个人资料详细信息的嵌套字段,而用户推文返回一个推文对象数组,每个对象包含元数据和交互属性

每个端点支持各种参数。例如,用户信息端点可能接受用户ID,而关注者端点可以根据验证状态进行过滤。用户可以通过指定参数如用户ID或推文ID来自定义请求以获取目标数据

典型的使用案例包括品牌监测、趋势分析、影响者追踪和报告生成例如企业可以分析关注者的人口统计数据以定制营销策略或跟踪推文参与度以评估活动效果

通过直接访问推特的公共数据来维护数据的准确性,确保实时更新。API的设计通过允许用户使用用户ID等唯一标识符来检索信息,最小化歧义,增强可靠性

用户可以利用返回的数据进行洞察和分析。例如,通过分析关注者指标,企业可以识别关键影响者,而推文详情可以为内容策略提供信息。数据可以被可视化或集成到应用程序中,以增强决策制定

用户应实现错误处理以管理部分或为空的结果例如如果用户ID返回无数据API响应将指示这一点使用户能够调整查询或通知用户缺失的信息

用户信息端点提供全面的数据,包括用户的姓名、个人简介、位置、账户创建日期、验证状态、头像以及关键指标,如关注者数量、关注数量、推文数量和列表

用户可以通过指定用户ID、验证状态和分页选项等参数来自定义对Followers端点的请求,以过滤和管理返回的关注者数据量

用户推文响应包括推文内容 媒体附件 话题标签 元数据(如创建日期) 可用状态 以及互动属性如转推和点赞计数

Twitter API 涵盖来自公共 Twitter 个人资料的全球数据,允许访问来自各个地区和类别的用户信息和推文,包括个人账户、品牌和公众人物

通过ID获取用户数据的端点接受用户ID作为参数,允许用户检索一个或多个用户的详细资料。它还可以包括可选字段以指定要返回哪些数据属性

关注者端点返回一个结构化的JSON对象,其中包含一个关注者对象的数组。每个对象包括ID、姓名、简介、验证状态和个人资料图片等字段,便于访问和分析

通过直接访问推特的实时公共数据并与推特自身系统进行持续更新和验证,确保数据的准确性,最小化差异并增强可靠性

在检索用户推文时,期望每个推文对象具有一致的结构,其中包含内容、媒体、标签和互动指标的字段。模式可能包括推文发布时的时间戳和互动统计数据

一般常见问题

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