Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 2.6 KB

File metadata and controls

48 lines (31 loc) · 2.6 KB

Tweets.Replies

Overview

Available Operations

  • Page - Get Replies by Page

Page

Recommended for fetching tweet replies. Uses cursor-based pagination and avoids timeouts on large threads. The first request (omit next_cursor) returns root_tweet plus the first batch of replies. Pass next_cursor from the previous response to fetch the next page until has_next_page is false. Pricing: $0.10 per 1,000 replies.

Example Usage

using XapiScraper;
using XapiScraper.Models.Components;
using XapiScraper.Models.Requests;

var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

TweetsRepliesPageRequest req = new TweetsRepliesPageRequest() {
    TweetId = "1803006263529541838",
    Body = new GetRepliesPageQuery() {},
};

var res = await sdk.Tweets.Replies.PageAsync(req);

// handle response

Parameters

Parameter Type Required Description
request TweetsRepliesPageRequest ✔️ The request object to use for the request.

Response

TweetsRepliesPageResponse

Errors

Error Type Status Code Content Type
XapiScraper.Models.Errors.HTTPValidationError 422 application/json
XapiScraper.Models.Errors.APIException 4XX, 5XX */*