X data API
With SocialHz you can search posts, fetch posts and pages from links, get comments with their sentiment on X, from one API, with the same fields as every other platform.
What you can fetch
- X post (
x-post): Details of one post on X (Twitter). - X profile (
x-profile): The latest posts of one X (Twitter) account, with the account's profile. - X replies (
x-replies): The replies on one X post, each with its author, likes and sentiment. - X search (
x-search): Posts on X (Twitter) that match a search, optionally by country and language.
What comes back
id, url, platform, title, text, published_at, language, content_type, is_reply, is_quote, is_repost, is_video, deleted, author_id, author_username, author_name, author_profile_url, author_verified, author_followers, following_count, author_avatar_url, author_location, like_count, comments_count, share_count, quote_count, save_count, view_count, impression_count, hashtags, mentions, media, sentiment, geo, metrics_captured_at, indexed_at, comment_items
X post from a link
POST /api/v1/quick-run
{
"links": ["https://x.com/levelsio/status/2041112253349442037"]
}X profile from a link
POST /api/v1/quick-run
{
"links": ["https://x.com/levelsio"]
}Comments on one post
GET /api/v1/comments?url=https%3A%2F%2Fx.com%2FSawyerMerritt%2Fstatus%2F1753279251523191195Search X
GET /api/v1/search?platform=x&query=electric+vehicles