Tweets
Retrieve detailed information for one or more tweets by ID (no cookie required). The maximum input quantity is limited by your plan's QPS. To pass larger input quantity limits, upgrade your plan to get higher QPS.
using System.Collections.Generic;
using XapiScraper;
using XapiScraper.Models.Components;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
List<string> req = new List<string>() {
"2076874251915743687",
};
var res = await sdk.Tweets.DetailAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
List<string> |
✔️ |
The request object to use for the request. |
TweetsDetailResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |
Retrieve all tweets in a thread by tweet ID, sorted by latest.
using XapiScraper;
using XapiScraper.Models.Components;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
TweetThreadByIdBody req = new TweetThreadByIdBody() {
TweetId = "<id>",
};
var res = await sdk.Tweets.ThreadAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
TweetThreadByIdBody |
✔️ |
The request object to use for the request. |
TweetsThreadResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |
Retrieve detailed information for multiple Tweets by their IDs. The maximum input quantity is limited by your plan's QPS. To pass larger input quantity limits, upgrade your plan to get higher QPS.
using System.Collections.Generic;
using XapiScraper;
using XapiScraper.Models.Components;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
List<string> req = new List<string>() {
"1803006263529541838",
};
var res = await sdk.Tweets.LookupAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
List<string> |
✔️ |
The request object to use for the request. |
TweetsLookupResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |
Get similar tweets
using XapiScraper;
using XapiScraper.Models.Components;
using XapiScraper.Models.Requests;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
TweetsSimilarRequest req = new TweetsSimilarRequest() {
TweetId = "<id>",
};
var res = await sdk.Tweets.SimilarAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
TweetsSimilarRequest |
✔️ |
The request object to use for the request. |
TweetsSimilarResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |