A php curl based twitter tweets scraper API developed by Tufayel Ahmed
This API was built for those who wants to collect tweets programmatically from profiles or those who wants to delete their twitter account but wants to backup their tweets.
- There are 20 tweets returned per each request made.
- Twitter has rate limiting feature, so don't plan to go mad.
- I am not hosting this API just to play safe.
- To bypass rate limit, implement rotating proxies if you plan to use it in production level.
username
- twitter username of target account (required)
nextPageCursor
- token for accessing next tweets/pagination (not required for initial API call, required for accessing next pages)
- For accessing first page:
/tweets.php?username=tufayel_cse
{ "tweets":["tweet body here", "another tweet body here"], "nextPageCursor":"HBaGwLrlrJv63SAAAA==" }
- For accessing next pages and so on(set nextPageCursor value received in previous request):
/tweets.php?username=tufayel_cse&nextPageCursor=HBaGwLrlrJv63SAAAA==
{ "tweets":["next page tweets"], "nextPageCursor":"HBaGwvdfgfv63SAAAA==" }