Twitter follower demographics? - twitter

Any ideas on how I can get location, age and gender of my followers on Twitter? I know that Twitter can only give me location (not always), by looking at either time-zone or location. But I have seen other applications presenting the demographics of my followers and I have no idea how they do it? Is it fake?

Twitter does not provide this information. Some third party sites use techniques like analyzing tweets to try and predict demographics based on content. Others have deals with third partys that connect Twitter accounts with other profiles like Facebook accounts. There is no sure fire way to do it and all options will have reliability issues.

Related

Audience information for a twitter handle

Sorry if my question to too naive. But i wish to find audience level information for a particular twitter handle. Lets consider #BarackObama, i wish to find his followers by gender, age, language, location etc. I used python scripts in this link https://github.com/GnipDz/Python-Insights to achieve it.
I do have access to twitter ADS API but it still shows your application ID is not authorized when i try to run the scripts. Is there a special API or addition over Ads API to achieve this? can someone guide me as to how i can do this?
Those scripts use Twitter's enterprise (commercial) Audience API. This API does not enable you to access audiences for individual users, only aggregated data for large numbers of Twitter handles. Additionally, this is not a free-to-access API so you need to have an active enterprise subscription for this to work.
I'm not aware of any programmatic way to access this data, and particularly not for any organic account - the Engagement API enables access to Tweet engagements for the authenticated account, but you're not able to access that data for other users.

How to get user's location in iOS using google plus sdk?

I am integrating Google Plus login in my app along with Facebook and Twitter login. So, is it possible to get user's location(city) Like Facebook and Twitter? If yes, how?
Any kind of help would be appreciated.
There is a field in the Google+ profile for "places lived" that may contain a location. However, it is not very common for people to share that publicly, so you will likely find only a small proportion of users have it available.
If you want to try, you can retrieve the profile data by following this documentation: https://developers.google.com/+/mobile/ios/people#retrieve_profile_information - this returns GTLPlusPerson for the current user.
From that, look at the placesLived property: https://code.google.com/p/google-api-objectivec-client/source/browse/trunk/Source/Services/Plus/Generated/GTLPlusPerson.h?r=246#128

Using OAuth with Twitter in ASP.NET

I am using Twitter as an OAuth provider for ASP.NET MVC 4 web site. I would like to be able to follow up with a registered user at a later date, either by email or via a tweet. Outside of having the user follow me on Twitter, do I have any other options to communicate with the user?
Here is what I unsuccessfully considered:
It appears that there is no way to get access to the email address since Twitter OAuth API does not return it.
It appears I cannot send a direct message unless a user
follows me on Twitter.
"Read/Write/DirectMessage" permissions seem
too intrusive -- all I want to do is send a user a message that a
new product is released -- I don't need any of the write
capabilities that this level of permissions provides.
To recap, if a user used Twitter to sign in to my website, what are my options to contact that user at a later date?
Thanks.
Twitter's solution for this sort of person-to-person communication is the Direct Message, however, Twitter has (rightfully) decided that both parties need to consent to this channel being available. This decision is intended to reduce the amount of spam in the Twitter ecosystem.
Posting public tweets that mention the username will get your users' attention, but it is also broadcasting their relationship with your company to the entire Twitter ecosystem. You will, essentially, be advertising their relationship with your company without their permission. This approach will bring you headaches sooner or later.
Email is probably a better choice for the sort of announcement to existing customers.

Twitter API - Getting friends and follower ids for a set of users?

I am able to extract tweets, and the submitter's user details using the streaming API, but I also need the list of followers and friends of users posting these tweets.
I am aware that Twitter search API has the friends/ids and followers/ids functions through which one can get the public followers and friends list one user at a time.
But, my data collection requires getting this information for all the users whose tweets I have collected, around 20,000+ users. This is quite exhaustive given the high number of users, and the limitation of one user per call. Moreover, I need to refresh this list for each of these 20,000+ users preferably once a day to observe changes in their friends and followers (if any).
IS there any I can achieve this using the Twitter Streaming API or any other method. Or I have to apply for the Twitter commercial data license?
Thanks!!!
20,000 is way beyond the limits of any normal Twitter API method. I think your going to have to apply for a commercial license to go that high. The streaming API, I believe, tracks 400 keywords and 5000 users max. Your right in that the REST twitter API method only allows you to track one user or a list of ID's. You can take a look at the Twitter Counter API which mines additional info including information about followers, etc. But again, 20,000 I'm sure would be above the limits. Communicate with Twitter, Gnip and, and the Twitter Counter service to see what they can do for you.
Twitter Counter API:
http://twittercounter.com/pages/api?ref=footer

Tweets not available on public timeline, but tweets are not protected...what may be the cause?

I started to use the Twitter Search API to create a view into our company's multiple twitter streams. For one of the accounts, the Search API only returns mentions of the account (i.e. in other people's tweets), but does not return tweets from the account. That account does not have it's tweets protected. Does anyone know what can be happening?
Just to make sure that it's not my coding, I also tested it at http://search.twitter.com/ and the tweets didn't show up either.
I recently had the same problem but then I found http://support.twitter.com/groups/32-something-s-not-working/topics/118-search/articles/66018-my-tweets-or-hashtags-are-missing-from-search
Indeed, the account was just created and the tweets started appearing later on. Anyway, even if it isn't new or protected there are several other reasons you might find on that page. Worst case scenario, drop an e-mail to Twitter and ask what's the cause, I'm sure it will be fixed soon enough.
Good luck!

Resources