More API Documentation
This commit is contained in:
46
readme.md
46
readme.md
@ -14,25 +14,51 @@ Just replace twitter.com with vxtwitter.com on the link to the tweet! `https://t
|
||||
|
||||
## API
|
||||
If you're a nerd like me and want to use information about a tweet in your code, you can make a request to `api.vxtwitter.com` to get basic information about a tweet:
|
||||
`https://api.vxtwitter.com/Twitter/status/1263145271946551300`
|
||||
`https://api.vxtwitter.com/Twitter/status/1577730467436138524`
|
||||
```json
|
||||
{
|
||||
"date": "Wed May 20 16:31:15 +0000 2020",
|
||||
"date_epoch": 1589992275,
|
||||
"date": "Wed Oct 05 18:40:30 +0000 2022",
|
||||
"date_epoch": 1664995230,
|
||||
"hashtags": [],
|
||||
"likes": 60038,
|
||||
"likes": 21664,
|
||||
"mediaURLs": [
|
||||
"https://video.twimg.com/amplify_video/1263145212760805376/vid/1280x720/9jous8HM0_duxL0w.mp4?tag=13"
|
||||
"https://video.twimg.com/tweet_video/FeU5fh1XkA0vDAE.mp4",
|
||||
"https://pbs.twimg.com/media/FeU5fhPXkCoZXZB.jpg"
|
||||
],
|
||||
"replies": 11720,
|
||||
"retweets": 16729,
|
||||
"text": "Testing, testing...\n\nA new way to have a convo with exactly who you want. We’re starting with a small % globally, so keep your 👀 out to see it in action. https://t.co/pV53mvjAVT",
|
||||
"tweetID": "1263145271946551300",
|
||||
"tweetURL": "https://twitter.com/Twitter/status/1263145271946551300",
|
||||
"media_extended": [
|
||||
{
|
||||
"altText": "GIF of Laura Dern in Jurassic Park as Dr. Ellie Sattler taking off her sunglasses in shock",
|
||||
"duration_millis": 0,
|
||||
"size": {
|
||||
"height": 206,
|
||||
"width": 194
|
||||
},
|
||||
"thumbnail_url": "https://pbs.twimg.com/tweet_video_thumb/FeU5fh1XkA0vDAE.jpg",
|
||||
"type": "video",
|
||||
"url": "https://video.twimg.com/tweet_video/FeU5fh1XkA0vDAE.mp4"
|
||||
},
|
||||
{
|
||||
"altText": "picture of Kermit doing a one legged stand on a bicycle seat riding through the park",
|
||||
"size": {
|
||||
"height": 1007,
|
||||
"width": 1179
|
||||
},
|
||||
"thumbnail_url": "https://pbs.twimg.com/media/FeU5fhPXkCoZXZB.jpg",
|
||||
"type": "image",
|
||||
"url": "https://pbs.twimg.com/media/FeU5fhPXkCoZXZB.jpg"
|
||||
}
|
||||
],
|
||||
"replies": 2911,
|
||||
"retweets": 3229,
|
||||
"text": "whoa, it works\n\nnow everyone can mix GIFs, videos, and images in one Tweet, available on iOS and Android https://t.co/LVVolAQPZi",
|
||||
"tweetID": "1577730467436138524",
|
||||
"tweetURL": "https://twitter.com/Twitter/status/1577730467436138524",
|
||||
"user_name": "Twitter",
|
||||
"user_screen_name": "Twitter"
|
||||
}
|
||||
```
|
||||
See [the following page](https://github.com/dylanpdx/BetterTwitFix/blob/main/api.md) for more info on the API
|
||||
|
||||
#
|
||||
|
||||
**Note**: If you enjoy this service, please considering donating via [Ko-Fi](https://ko-fi.com/dylanpdx) to help cover server costs
|
||||
|
Reference in New Issue
Block a user