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 8690431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:54:02+00:00 2026-06-12T23:54:02+00:00

Is there a way to extract user id’s (331063009) from status ids(234552300176293888)? Ruby answer

  • 0

Is there a way to extract user id’s (331063009) from status ids(234552300176293888)? Ruby answer preferable if there’s an answer.

Responses are from the Twitter’s REST API (https://dev.twitter.com/docs/api/1.1/)

I want to have tweets and user information into two separate databases, and not have a document that stores who the statuses belong too. I much rather have a search query (small dataset).

Sample response:

{"_id"=>331063009,
 "attrs"=>
  {"default_profile_image"=>true,
   "id"=>331063009,
   "contributors_enabled"=>false,
   "geo_enabled"=>false,
   "favourites_count"=>0,
   "verified"=>false,
   "followers_count"=>6,
   "profile_background_image_url"=>
    "http://a0.twimg.com/images/themes/theme1/bg.png",
   "profile_link_color"=>"0084B4",
   "show_all_inline_media"=>false,
   "profile_background_image_url_https"=>
    "https://si0.twimg.com/images/themes/theme1/bg.png",
   "notifications"=>false,
   "utc_offset"=>nil,
   "time_zone"=>nil,
   "follow_request_sent"=>false,
   "name"=>"ZORO",
   "profile_use_background_image"=>true,
   "protected"=>false,
   "profile_text_color"=>"333333",
   "default_profile"=>true,
   "url"=>nil,
   "created_at"=>"Thu Jul 07 15:58:34 +0000 2011",
   "lang"=>"en",
   "profile_sidebar_border_color"=>"C0DEED",
   "statuses_count"=>1,
   "profile_image_url_https"=>
    "https://si0.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
   "description"=>"",
   "listed_count"=>0,
   "profile_image_url"=>
    "http://a0.twimg.com/sticky/default_profile_images/default_profile_4_normal.png",
   "id_str"=>"331063009",
   "friends_count"=>24,
   "profile_background_tile"=>false,
   "profile_sidebar_fill_color"=>"DDEEF6",
   "location"=>"",
   "is_translator"=>false,
   "status"=>
    {"in_reply_to_status_id_str"=>nil,
     "favorited"=>false,
     "in_reply_to_user_id_str"=>nil,
     "in_reply_to_user_id"=>nil,
     "coordinates"=>nil,
     "retweeted"=>false,
     "retweet_count"=>0,
     "in_reply_to_status_id"=>nil,
     "source"=>
      "<a href=\"http://twitter.com/tweetbutton\" rel=\"nofollow\">Tweet Button</a>",
     "contributors"=>nil,
     "in_reply_to_screen_name"=>nil,
     "truncated"=>false,
     "id"=>234552300176293888,
     "possibly_sensitive"=>false,
     "id_str"=>"234552300176293888",
     "place"=>nil,
     "geo"=>nil,
     "text"=>
      "The Cool Gadgets - Quest for The Coolest Gadgets http://t.co/FGhpj4Gu via @thecoolgadgets",
     "created_at"=>"Sun Aug 12 07:30:00 +0000 2012"},
   "screen_name"=>"ZORO1959",
   "following"=>false,
   "profile_background_color"=>"C0DEED"}}
  • 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-12T23:54:03+00:00Added an answer on June 12, 2026 at 11:54 pm

    The Twitter API directly exposes the data you want. I used the Twitter API console to request http://api.twitter.com/1/statuses/show/234552300176293888.json, and it gave me back:

    {
      "id": 234552300176293900,
      "id_str": "234552300176293888",
      // ...
      "user":  {
        "id": 331063009,
        "id_str": "331063009",
        "name": "ZORO",
        "screen_name": "ZORO1959",
        // ...
      },
    }
    

    It happily returns the user ID given the status ID.

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

Sidebar

Related Questions

Is there a way to extract all email addresses from a plain text using
Is there a way to extract the file name from the file full path
Is there a way to extract the values of the fitted line returned from
I know how make a PDF from LaTeX. Is there a way to extract
Is there any way by which i can extract a private key from a
Is there a better way extract the current revision hash in Mercurial than hg
In Java is there a way to extract the value of an unknown subset
Since ldd lists only the dynamic libraries, is there a way to extract the
Is there a way to easily extract the json data portion in the body
I wonder if there is a way to extract a resource file packaged in

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.