Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:16:37+00:00 2026-06-01T11:16:37+00:00

I need to run a query that returns a list of users, along with

  • 0

I need to run a query that returns a list of users, along with data about those users. Suppose I consider one person and I want to know where all his/her followers are. This query:

http://api.twitter.com/1/followers/ids.json?screen_name={screen_name}

returns a list of user ids of the person’s followers. I can then plug each user id into this query:

http://api.twitter.com/1/users/lookup.json?user_id={user_id}

to get information about the user, including location. But that means that if the person has 1000 followers, I would have to call the second query 1000 times. It would be better to do a “join” (as it would be called in SQL), where we could ask for the followers AND their locations, and do this in one query, but I can’t see how to do this.

Is this possible? Also, when asking for user lookup, is it possible to specify that you only want one field and not the whole user record (kind of like asking for select single_field instead of select * in SQL)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:16:38+00:00Added an answer on June 1, 2026 at 11:16 am

    You can enumerate multiple user_ids in query. Example:
    http://api.twitter.com/1/users/lookup.xml?user_id=351927492,8602462,132533067,16984020,131217651,125764179

    But you capped to 100 values (names, ids) per query, so for user with 1000 followers you have to make 10 queries.

    Update For 1.1 version of API correct URL would be http://api.twitter.com/1.1/users/lookup.json?user_id=351927492,8602462,132533067,16984020,131217651,125764179

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run a JOIN query on a solr index. I've got two
I need to be able to run an Oracle query which goes to insert
I want to run a sql query on a specific schedule (weekly) and need
i need run code that will create a database and populate tables. i am
I am trying to run a SQL query (SQL Server) that will look up
I want to run a linq query that will return values to my custom
I need a Regex Statement (run in c#) that will take a string containing
For example, if I run one query in model: public function list_users() { $q
I need run ts:reindex when smth add in model or destroy from model. How
I need to run a script and have access to the default stdin (terminal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.