The REST APIs provide programmatic access to read and write Twitter data. Create a new Tweet, read user profile and follower data, and more. The REST API identifies Twitter applications and users using OAuth; responses are in JSON format.
Questions tagged [twitter-rest-api]
95 questions
0
votes
2 answers
Extracting Old Tweets using Twitter streaming API using Geo-Location Filter
My aim is to extract old tweets for the entire month of Jan 2017 for New York City ('locations':'-74,40,-73,41') using python. I am able to get the live streaming tweets using the following code:
import json
import pandas as pd
import…

Utkarsh
- 33
- 1
- 6
0
votes
0 answers
twitter rest api give me a wrong media id in uploading
i create a php script for uploading media(image/video) in twitter.
it's working correctly but twitter api give me a wrong media id after uploading.
this is what the api give me : image.
but in twitter the uploaded media has a different id…

hich
- 3
- 1
- 3
0
votes
1 answer
Twitter Rest API Read tweets from one page endpoint
I've never used twitter before and I need to implement the Twitter Rest API. I need to read all the tweets from one page (example: here) with my application.
Now I'm reading the documentation and I can't figure out which endpoint I have to use for…

stef morren
- 289
- 2
- 5
- 15
0
votes
1 answer
Add custom Twitter REST API queries using Kotlin
I'm a newbie in Kotlin.
I'm building an app like Twitter.
I want to create custom class extends TwitterApiClient - to use more endpoints. Twitter's tutorial is here
Tutorial
Here's my code:
class TwitterApiList(session: TwitterSession) :…

VitDuck
- 83
- 9
0
votes
1 answer
Twitter RestAPI call from java using space and OR
In this link, it has been explained how to use the Twitter search API, for example:
Your search URL is:
https://api.twitter.com/1.1/search/tweets.json?q=superman OR spiderman&result_type=recent
when I do a GET call using the link from POSTMAN…

Majico
- 3,810
- 2
- 24
- 36
0
votes
1 answer
How to tag twitter list in post/tweet?
I am using twitter list api to add people in the list(List Name: New People), it will be used as target people. When I add a user to my public list they get notified, twitter feature.
Now as per their documentation :…

Himanshu Arora
- 688
- 1
- 9
- 20
0
votes
1 answer
uploading image to twitter with nodejs
I'm using the twitter node js package at https://github.com/desmondmorris/node-twitter and am running into issues uploading images (posting simple tweet does not cause any issue).
here is my code, note that the first step is downloading the image…

otusweb
- 1,638
- 1
- 19
- 30
0
votes
1 answer
Twitter API connection aborted with Twython
i'm trying to download twitter followers from a list of accounts. my function (that uses twython) works pretty well for short account lists but rise an error for longer lists. it is not a RateLimit problem since my function sleeps until the next…

mbiella
- 51
- 6
0
votes
1 answer
Twitter REST API: tweet extraction
The following code has been written by me to extract tweets with specific hashtags.
import json
import oauth2
import time
import io
Consumer_Key = ""
Consumer_Secret = ""
access_token = ""
access_token_secret = ""
def oauth_req(url, key,…

Ranjan Satapathy
- 33
- 1
- 8
0
votes
1 answer
Get latest tweets for multiple screen_names through Twitter Rest API in CURL
I'm completely new to the Twitter Rest API. I have generated a curl command using OAuth tool in twitter to get the tweets posted by a single user.
curl --get 'https://api.twitter.com/1.1/statuses/user_timeline.json' --data…

user3792699
- 339
- 3
- 7
- 17
0
votes
1 answer
How to check if an app has an access to Direct Messages?
I'm aware that access is returned as X-Access-Level header in response to API requests. But I noticed read-write is returned for both Read and Write and Read, Write and Direct Messages. So, how do I know if the app has access to Direct Messages as…

Dilip Raj Baral
- 3,060
- 6
- 34
- 62
0
votes
1 answer
Twitter API Hashtag Search Results don't contain images
I am not seeing image entities in my twitter API search results when I search for a hashtag, but if I use the api endpoint for that specific tweet I do.
Using this tweet for an example:…

goddamnyouryan
- 6,854
- 15
- 56
- 105
0
votes
1 answer
Twitter API: get newly created accounts
I'm looking for a way to fetch the usernames of the most recently created accounts on Twitter, or alternatively search for accounts, filtered by join date.
There doesn't seem to be a built-in way of doing this in the Twitter API. Can anyone suggest…

Jack Lewin
- 15
- 4
0
votes
1 answer
How to get the most recent tweet of many users
I have a list of twitter user_ids. I want to get the most recent tweet of each of them.
There is a search/tweet.json api in which you can give multiple user ids separated by OR as…

Lavanya Mohan
- 1,496
- 7
- 28
- 39
0
votes
1 answer
Twitter Search Api to find mentions of word 'apple' iOS Swift
I am trying to find all the tweets mentioning the word 'apple' using SWIFT.
I am using a open source Library for twitter (https://github.com/mattdonnelly/Swifter/tree/xcode-6.3).
but when calling the api , it only gives top 32 tweets whereas I want…

Prabal Malhan
- 21
- 2