- Fetch - Batch Fetch X Articles
- Markdown - Fetch Article as Markdown
Retrieves detailed article content for a specified list of X (Twitter) IDs. Use this endpoint to fetch full text, metadata, and media links for multiple posts in a single request. 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.Articles.FetchAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
List<string> |
✔️ |
The request object to use for the request. |
ArticlesFetchResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |
Retrieves the content of an X (Twitter) article formatted as clean, valid Markdown. The response body is delivered as a raw UTF-8 string, optimized for direct import into static site generators, Obsidian, Notion, or any standard Markdown editor.
using XapiScraper;
using XapiScraper.Models.Components;
using XapiScraper.Models.Requests;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
ArticlesMarkdownRequest req = new ArticlesMarkdownRequest() {
TweetId = "<id>",
};
var res = await sdk.Articles.MarkdownAsync(req);
// handle response
ArticlesMarkdownResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |