Skip to main content
POST
/
api
/
twitter
/
user
/
posts
/twitter/user/posts
curl --request POST \
  --url https://api.anysite.io/api/twitter/user/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "user": "CoinDesk",
  "count": 123
}'
[
  {
    "@type": "TwitterPost",
    "id": "<string>",
    "created_at": 123,
    "url": "<string>",
    "text": "<string>",
    "user": {
      "@type": "TwitterPostUser",
      "rest_id": "<string>",
      "name": "<string>",
      "alias": "<string>",
      "url": "<string>",
      "image": "<string>",
      "verified": false,
      "verified_type": "<string>",
      "is_blue_verified": false
    },
    "retweet_count": 0,
    "favorite_count": 0,
    "reply_count": 0,
    "quote_count": 0,
    "view_count": "<string>",
    "is_retweet": false,
    "retweeted": {},
    "is_quote": false,
    "quoted": {},
    "in_reply_to_status_id": "<string>",
    "in_reply_to_user_id": "<string>",
    "in_reply_to_screen_name": "<string>",
    "lang": "<string>",
    "source": "<string>",
    "possibly_sensitive": false,
    "medias": [],
    "urls": [],
    "hashtags": [],
    "user_mentions": [],
    "card": {
      "@type": "TwitterCardInfo",
      "title": "<string>",
      "description": "<string>",
      "domain": "<string>",
      "vanity_url": "<string>",
      "image_url": "<string>",
      "url": "<string>",
      "card_type": "<string>"
    },
    "poll": {
      "@type": "TwitterPoll",
      "choices": [],
      "ended_at": 123,
      "duration_minutes": 0,
      "is_final": false,
      "last_updated_at": 123
    }
  }
]

Headers

access-token
string
required

Body

application/json
user
string
required

User ID, alias or URL

Examples:

"CoinDesk"

count
integer
required

Max result count

Required range: x > 0
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
url
string
required
text
string
required
user
object
required
@type
string
default:TwitterPost
created_at
integer | null
retweet_count
integer
default:0
favorite_count
integer
default:0
reply_count
integer
default:0
quote_count
integer
default:0
view_count
string | null
is_retweet
boolean
default:false
retweeted
object | null
is_quote
boolean
default:false
quoted
object | null
in_reply_to_status_id
string | null
in_reply_to_user_id
string | null
in_reply_to_screen_name
string | null
lang
string | null
source
string | null
possibly_sensitive
boolean
default:false
medias
TwitterMedia · object[]
urls
TwitterUrl · object[]
hashtags
TwitterHashtag · object[]
user_mentions
TwitterPostUserMention · object[]
card
object | null
poll
object | null
I