When I use the search API I get a result like this:

http://search.twitter.com/search.json?q=twitter

{
            "from_user_id_str": "142342329",
            "profile_image_url": "http://a1.twimg.com/profile_images/
1257749535/leo_map2_normal.jpg",
            "created_at": "Mon, 28 Feb 2011 19:20:31 +0000",
            "from_user": "lmoliva_",
            "id_str": "42303151705047041",
            "metadata": {
                "result_type": "recent"
            },
            "to_user_id": null,
            "text": "RT @alexismadrigal: Exclusive! The Man Behind the
Best Twitter Feed Ever, @MayorEmanuel: http://theatln.tc/gxQXwh";,
            "id": 42303151705047041,
                         [..............]

However, when I go to look up this user via the user/show api with
that same id I get:

http://api.twitter.com/1/users/show.json?user_id=142342329

{
    "is_translator": false,
    "favourites_count": 0,
    "profile_background_color": "C0DEED",
    "url": "http:\/\/percepcionderealidad.blogspot.com\/",
    "follow_request_sent": false,
    "profile_background_image_url": "http:\/\/a3.twimg.com\/a\/
1298664727\/images\/themes\/theme1\/bg.png",
    "description": "",
    "screen_name": "carlitosvilchis",
                   [.................]

A totally different user!  There appears to be no way to get the
proper numerical id from the search API.  Am I doing something wrong
or is this a known issue and I should just rewrite to use their screen
name to look up users instead?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to