READ API LIVEBuild on /v1 for search, profiles, timelines, audience graph, and tweet context.READ DOCS

API reference

The live /v1 read surface, in one place.

Each section lists the endpoint purpose, parameters, response shape, credit cost, and a request sample. Use /v1 for new integrations; /docs/x-api-compatible covers the official-style /2 migration layer.

Auth

Send your xfetch API key as a bearer token on every customer API request.

Authorization: Bearer $XFETCH_API_KEY

Credits

/v1 responses include meta.credits.charged and meta.credits.remaining. New accounts receive 1,000 credits; failed validation, auth failures, insufficient credits, rate limits, and service-side failures are not charged.

Pagination

Paginated endpoints use next_token and return meta.pagination.next_token only when another page exists. limit is endpoint-specific: recent search allows up to 20, trends allows up to 100, graph mode=ids allows up to 5000, and continuation-only endpoints do not expose limit. Tokens are opaque — do not parse them.

Errors

Every endpoint returns the same public error envelope on failure. Standard codes: invalid_request (400), invalid_api_key / revoked_api_key (401), insufficient_credits (402), endpoint_not_found (404), rate_limited (429), internal_error (500), service_unavailable (503).

Basic Reads

GET/v1/search/recentBasic Reads1 base + 1 per item#

Search recent tweets matching a query for social listening and monitoring jobs.

curl 'https://api.xfetch.io/v1/search/recent?query=xfetch' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
queryquerystringrequired
limitqueryintegeroptionaldefault: 20Page size for search-backed results.
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "xfetch ships /v1 today.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 5,
      "retweet_count": 1,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}Basic ReadsFlat 1 credit#

Look up one user by numeric ID.

curl 'https://api.xfetch.io/v1/users/783214' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
Response
{
  "data": {
    "id": "783214",
    "username": "xfetch",
    "name": "xfetch",
    "description": "Developer-facing X/Twitter data API.",
    "created_at": "2024-01-01T00:00:00.000Z",
    "verified": false,
    "protected": false,
    "profile_image_url": "https://example.com/avatar.png",
    "follower_count": 12000,
    "following_count": 18,
    "tweet_count": 240
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 1,
      "remaining": 999
    }
  }
}
GET/v1/users/by-username/{username}Basic ReadsFlat 1 credit#

Look up one user by case-insensitive username.

curl 'https://api.xfetch.io/v1/users/by-username/xfetch' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
usernamepathstringrequired
Response
{
  "data": {
    "id": "783214",
    "username": "xfetch",
    "name": "xfetch",
    "description": "Developer-facing X/Twitter data API.",
    "created_at": "2024-01-01T00:00:00.000Z",
    "verified": false,
    "protected": false,
    "profile_image_url": "https://example.com/avatar.png",
    "follower_count": 12000,
    "following_count": 18,
    "tweet_count": 240
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 1,
      "remaining": 999
    }
  }
}
GET/v1/usersBasic Reads1 base + 1 per item#

Look up multiple users in one call by comma-separated IDs.

curl 'https://api.xfetch.io/v1/users?ids=783214' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idsquerystringrequiredComma-separated IDs.
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 3,
      "remaining": 997
    }
  }
}
GET/v1/users/{id}/tweetsBasic Reads1 base + 1 per item#

List a user's recent original tweets and retweets in reverse-chronological order.

curl 'https://api.xfetch.io/v1/users/783214/tweets' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "xfetch ships /v1 today.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 5,
      "retweet_count": 1,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/tweets/repliesBasic Reads1 base + 1 per item#

List a user's recent tweets including reply tweets.

curl 'https://api.xfetch.io/v1/users/783214/tweets/replies' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "@user great question!",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 2,
      "retweet_count": 0,
      "reply_count": 1,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/mediaBasic Reads1 base + 1 per item#

List a user's recent tweets that include compact media objects.

curl 'https://api.xfetch.io/v1/users/783214/media' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "New dashboard screenshot.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 18,
      "retweet_count": 3,
      "reply_count": 1,
      "quote_count": 0,
      "bookmark_count": 2,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      },
      "media": [
        {
          "type": "photo",
          "url": "https://example.com/media.jpg"
        }
      ]
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/followersBasic Reads1 base + 1 per 20 items (varies by mode)#

List follower IDs for low-cost audience-graph reads.

curl 'https://api.xfetch.io/v1/users/783214/followers?mode=ids' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
modequerystringoptionalids | profiles
limitqueryintegeroptionaldefault: 200Supported only when mode=ids.
Response
{
  "data": [
    {
      "id": "783214"
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/verified-followersBasic Reads1 base + 1 per item#

List a user's verified followers — a high-signal subset of followers for audience and influence analysis.

curl 'https://api.xfetch.io/v1/users/783214/verified-followers' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": true,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/followingBasic Reads1 base + 1 per 20 items (varies by mode)#

List followed account IDs for low-cost audience-graph reads.

curl 'https://api.xfetch.io/v1/users/783214/following?mode=ids' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
modequerystringoptionalids | profiles
limitqueryintegeroptionaldefault: 200Supported only when mode=ids.
Response
{
  "data": [
    {
      "id": "783214"
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/tweets/{id}Basic ReadsFlat 1 credit#

Look up one tweet by ID with enriched metrics, language, and entities.

curl 'https://api.xfetch.io/v1/tweets/1234567890123456789' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
Response
{
  "data": {
    "id": "1234567890123456789",
    "text": "xfetch ships /v1 today.",
    "author_id": "783214",
    "created_at": "2026-05-23T12:00:00.000Z",
    "lang": "en",
    "like_count": 5,
    "retweet_count": 1,
    "reply_count": 0,
    "quote_count": 0,
    "bookmark_count": 0,
    "is_quote_status": false,
    "entities": {
      "hashtags": [],
      "urls": [],
      "mentions": []
    }
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 1,
      "remaining": 999
    }
  }
}
GET/v1/tweetsBasic Reads1 base + 1 per item#

Look up multiple tweets in one call by comma-separated IDs.

curl 'https://api.xfetch.io/v1/tweets?ids=1234567890123456789' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idsquerystringrequiredComma-separated IDs.
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "xfetch ships /v1 today.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 5,
      "retweet_count": 1,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 3,
      "remaining": 997
    }
  }
}
GET/v1/tweets/{id}/quotesBasic Reads1 base + 1 per item#

List quote tweets of a given tweet, most recent first.

curl 'https://api.xfetch.io/v1/tweets/1234567890123456789/quotes' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "Quoting xfetch launch announcement.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 3,
      "retweet_count": 0,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": true,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/tweets/{id}/retweetersBasic Reads1 base + 1 per item#

List users who retweeted a given tweet.

curl 'https://api.xfetch.io/v1/tweets/1234567890123456789/retweeters' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/lists/{id}/tweetsBasic Reads1 base + 1 per item#

Read tweets from a public list.

curl 'https://api.xfetch.io/v1/lists/9999000099990000/tweets' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "xfetch ships /v1 today.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 5,
      "retweet_count": 1,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/lists/{id}/membersBasic Reads1 base + 1 per item#

List members of a public list.

curl 'https://api.xfetch.io/v1/lists/9999000099990000/members' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/lists/{id}/subscribersBasic Reads1 base + 1 per item#

List subscribers of a public list.

curl 'https://api.xfetch.io/v1/lists/9999000099990000/subscribers' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/communities/{id}Basic ReadsFlat 1 credit#

Look up one community by ID.

curl 'https://api.xfetch.io/v1/communities/1000200030004000' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
Response
{
  "data": {
    "id": "1000200030004000",
    "name": "xfetch builders",
    "description": "Developers building on the xfetch API.",
    "member_count": 240
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 1,
      "remaining": 999
    }
  }
}
GET/v1/communities/{id}/membersBasic Reads1 base + 1 per item#

List members of a community.

curl 'https://api.xfetch.io/v1/communities/1000200030004000/members' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/communities/{id}/moderatorsBasic Reads1 base + 1 per item#

List moderators of a community.

curl 'https://api.xfetch.io/v1/communities/1000200030004000/moderators' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}

Enriched Reads

GET/v1/users/{id}/followersEnriched Reads1 base + 1 per 20 items (varies by mode)#

List follower profile objects for enriched audience analysis.

curl 'https://api.xfetch.io/v1/users/783214/followers?mode=profiles' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
modequerystringoptionalids | profiles
limitqueryintegeroptionaldefault: 200Supported only when mode=ids.
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/users/{id}/followingEnriched Reads1 base + 1 per 20 items (varies by mode)#

List followed account profile objects for enriched audience analysis.

curl 'https://api.xfetch.io/v1/users/783214/following?mode=profiles' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
modequerystringoptionalids | profiles
limitqueryintegeroptionaldefault: 200Supported only when mode=ids.
Response
{
  "data": [
    {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/search/recent/enrichedEnriched Reads2 base + 2 per item#

Search recent tweets and return matching tweets plus deduped authors; join via `tweet.author_id`.

curl 'https://api.xfetch.io/v1/search/recent/enriched?query=xfetch' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
queryquerystringrequired
limitqueryintegeroptionaldefault: 20Page size for search-backed results.
next_tokenquerystringoptional
Response
{
  "data": {
    "tweets": [
      {
        "id": "1234567890123456789",
        "text": "xfetch ships /v1 today.",
        "author_id": "783214",
        "created_at": "2026-05-23T12:00:00.000Z",
        "lang": "en",
        "like_count": 5,
        "retweet_count": 1,
        "reply_count": 0,
        "quote_count": 0,
        "bookmark_count": 0,
        "is_quote_status": false,
        "entities": {
          "hashtags": [],
          "urls": [],
          "mentions": []
        }
      }
    ],
    "authors": [
      {
        "id": "783214",
        "username": "xfetch",
        "name": "xfetch",
        "description": "Developer-facing X/Twitter data API.",
        "created_at": "2024-01-01T00:00:00.000Z",
        "verified": false,
        "protected": false,
        "profile_image_url": "https://example.com/avatar.png",
        "follower_count": 12000,
        "following_count": 18,
        "tweet_count": 240
      }
    ]
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 4,
      "remaining": 996
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/communities/{id}/tweetsEnriched Reads1 base + 1 per item#

Read community tweets with relevance, recency, or likes-based sorting.

curl 'https://api.xfetch.io/v1/communities/1000200030004000/tweets' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
sortquerystringoptionalrelevance | recency | likes
time_filterquerystringoptionalday | week | month | year | allOnly accepted when sort=likes.
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "xfetch ships /v1 today.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 5,
      "retweet_count": 1,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}

Workflow APIs

GET/v1/tweets/{id}/conversationWorkflow APIs1 base + 1 per item#

Read the paginated reply thread under a tweet; the focal tweet itself is not included in `data`.

curl 'https://api.xfetch.io/v1/tweets/1234567890123456789/conversation' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
next_tokenquerystringoptional
Response
{
  "data": [
    {
      "id": "1234567890123456789",
      "text": "Great to hear! Tell me more.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 1,
      "retweet_count": 0,
      "reply_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    }
  ],
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 2,
      "remaining": 998
    },
    "pagination": {
      "next_token": "tok_2"
    }
  }
}
GET/v1/profiles/{id}Workflow APIs2 base + 1 per item#

Aggregate one user and their recent tweets in a single workflow call.

curl 'https://api.xfetch.io/v1/profiles/783214' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
Response
{
  "data": {
    "user": {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    },
    "recent_tweets": [
      {
        "id": "1234567890123456789",
        "text": "xfetch ships /v1 today.",
        "author_id": "783214",
        "created_at": "2026-05-23T12:00:00.000Z",
        "lang": "en",
        "like_count": 5,
        "retweet_count": 1,
        "reply_count": 0,
        "quote_count": 0,
        "bookmark_count": 0,
        "is_quote_status": false,
        "entities": {
          "hashtags": [],
          "urls": [],
          "mentions": []
        }
      }
    ]
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 3,
      "remaining": 997
    }
  }
}
GET/v1/profiles/by-username/{username}Workflow APIs2 base + 1 per item#

Aggregate one user (by username) and their recent tweets in a single workflow call.

curl 'https://api.xfetch.io/v1/profiles/by-username/xfetch' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
usernamepathstringrequired
Response
{
  "data": {
    "user": {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    },
    "recent_tweets": [
      {
        "id": "1234567890123456789",
        "text": "xfetch ships /v1 today.",
        "author_id": "783214",
        "created_at": "2026-05-23T12:00:00.000Z",
        "lang": "en",
        "like_count": 5,
        "retweet_count": 1,
        "reply_count": 0,
        "quote_count": 0,
        "bookmark_count": 0,
        "is_quote_status": false,
        "entities": {
          "hashtags": [],
          "urls": [],
          "mentions": []
        }
      }
    ]
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 3,
      "remaining": 997
    }
  }
}
GET/v1/tweets/{id}/contextWorkflow APIs3 base + 1 per item#

Aggregate one tweet's author, quotes, and retweeters in a single workflow call.

curl 'https://api.xfetch.io/v1/tweets/1234567890123456789/context' \
  -H 'Authorization: Bearer $XFETCH_API_KEY'
NameInTypeRequiredDefault / EnumDescription
idpathstringrequired
Response
{
  "data": {
    "tweet": {
      "id": "1234567890123456789",
      "text": "xfetch is live.",
      "author_id": "783214",
      "created_at": "2026-05-23T12:00:00.000Z",
      "lang": "en",
      "like_count": 42,
      "retweet_count": 7,
      "reply_count": 3,
      "quote_count": 1,
      "bookmark_count": 0,
      "is_quote_status": false,
      "entities": {
        "hashtags": [],
        "urls": [],
        "mentions": []
      }
    },
    "author": {
      "id": "783214",
      "username": "xfetch",
      "name": "xfetch",
      "description": "Developer-facing X/Twitter data API.",
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified": false,
      "protected": false,
      "profile_image_url": "https://example.com/avatar.png",
      "follower_count": 12000,
      "following_count": 18,
      "tweet_count": 240
    },
    "quotes": [],
    "retweeters": []
  },
  "meta": {
    "request_id": "req_01HXFETCHEXAMPLE",
    "credits": {
      "charged": 3,
      "remaining": 997
    }
  }
}

/2 compatibility

/2 mirrors the /v1 Basic Reads layer with official-style paths and query names for teams migrating familiar code. For full /2 details see /docs/x-api-compatible.

Capability/v1 endpoint/2 endpoint
Recent searchGET /v1/search/recentGET /2/tweets/search/recent
User by usernameGET /v1/users/by-username/:usernameGET /2/users/by/username/:username
User by idGET /v1/users/:idGET /2/users/:id
Users by idsGET /v1/users?ids=...GET /2/users?ids=...
User tweetsGET /v1/users/:id/tweetsGET /2/users/:id/tweets
FollowersGET /v1/users/:id/followers?mode=idsGET /2/users/:id/followers
FollowingGET /v1/users/:id/following?mode=idsGET /2/users/:id/following
Tweet by idGET /v1/tweets/:idGET /2/tweets/:id
Tweets by idsGET /v1/tweets?ids=...GET /2/tweets?ids=...
Quote tweetsGET /v1/tweets/:id/quotesGET /2/tweets/:id/quote_tweets
RetweetersGET /v1/tweets/:id/retweetersGET /2/tweets/:id/retweeted_by
List tweetsGET /v1/lists/:id/tweetsGET /2/lists/:id/tweets
List membersGET /v1/lists/:id/membersGET /2/lists/:id/members
List subscribers/followersGET /v1/lists/:id/subscribersGET /2/lists/:id/followers

Run a request on your own key.

Sign in with Google to mint a key and call any endpoint above from the dashboard playground. New accounts receive 1,000 credits; failed validation, auth failures, insufficient credits, rate limits, and service-side failures are not charged.