Skip to content

Get Twitter Article - API Reference

Returns tweet with an article attached to it. Output contains the same properies as tweet details endpoint, article content is returned within “article” attribute of the response.

GET https://api.socialdata.tools/twitter/article/{article_id}

Headers

Authorization string required

Authorization Bearer header containing your SocialData API key

Example: Bearer YOUR_API_KEY

Parameters

article_id integer required

The numerical ID of the desired article tweet.

Example: 1799137410284134858

Code Examples

Terminal window
curl "https://api.socialdata.tools/twitter/article/1799137410284134858"
-H 'Authorization: Bearer API_KEY'
-H 'Accept: application/json'

Example Responses

-

Response Codes

  • 200 OK - request succeeded
  • 402 Payment Required - not enough credits to perform this request
  • 404 Not Found - requested tweet does not exist
  • 422 Unprocessable Content - validation failed (e.g. one of the required parameters was not provided)
  • 500 Internal Error - API internal error, typically means that SocialData API failed to obtain the requested information and you should try again later

Useful Resources