持久化データベースからXクリエイターのポストをページ単位で返します。各項目には投稿日時、キャプション、エンゲージメント数が含まれ、パフォーマンス推移の把握や代表コンテンツの選定に適しています。
GET
/api/v1/x/user/postsクォータ消費: このエンドポイントへの成功したリクエスト 1 件あたり、プランのクォータが 1 単位消費されます。
リクエストパラメータ
必須パラメータ
| 名前 | 位置 | 型 | 説明 |
|---|---|---|---|
username | query | string | X handle example: elonmusk |
任意パラメータ
| 名前 | 位置 | 型 | 説明 |
|---|---|---|---|
publish_at_start | query | string | Publish time from example: 2026-01-01 |
publish_at_end | query | string | Publish time to example: 2026-09-01 |
post_id | query | string | Post ID example: 1519480761749016577 |
media_type | query | string | Media type (0 = text, 1 = image, 2 = video, 3 = GIF) example: 2 |
post_type | query | string | Post type (1 = original, 2 = repost, 3 = quote, 4 = thread, 5 = reply) example: 1 |
exclude_retweet | query | string | Exclude reposts (1 = exclude) example: 1 |
is_paid | query | string | Sponsored post (1 = yes) example: 1 |
sort_by | query | string | Sort field (publish_at, view_count, like_count, engagement_rate) example: publish_at |
sort_order | query | string | Sort direction (asc, desc), default desc example: desc |
page | query | integer | Page number |
page_size | query | integer | Page size |
レスポンスフィールド
| 名前 | 型 | 説明 |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.items | array<object> | Items |
data.total | integer | Total |
data.page | integer | Page |
data.page_size | integer | Page Size |
data.total_pages | integer | Total Pages |
お試し実行
クエリパラメータ
username*publish_at_startpublish_at_endpost_idmedia_typepost_typeexclude_retweetis_paidsort_bysort_orderpagepage_sizecURL の例
bash
curl -X GET "https://openapi.scdata.cc/api/v1/x/user/posts?username=elonmusk" \-H "Authorization: YOUR_API_KEY"
レスポンス例 (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"items": [{"post_id": "1519480761749016577","post_url": "https://x.com/elonmusk/status/1519480761749016577","description": "Next I’m buying Coca-Cola to put the cocaine back in","duration": 0,"publish_at": "2022-04-28 08:56:58","language": "en","media_type": "text","post_type": "original","is_pinned": false,"is_sensitive": false,"is_paid": false,"view_count": 0,"like_count": 4198044,"comment_count": 167757,"retweet_count": 577720,"quote_count": 168195,"bookmark_count": 22534,"engagement_count": 5111716,"engagement_rate": "2.12","source": "Twitter for iPhone","post_username": "elonmusk","post_user_url": "https://x.com/elonmusk","post_user_follower_count": 241536070,"last_update_at": "2026-09-02 16:22:17"}],"total": 112,"page": 1,"page_size": 1,"total_pages": 112}}
ユースケース
- コンテンツ実績のレビュー — クリエイターの最新ポストのエンゲージメントを比較し、どの形式やテーマが受けているかを把握します。
- ブランドセーフティ確認 — 提携前に最近のキャプションやテーマを確認し、クリエイターのコンテンツがブランドに合うかを判断します。