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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:58:05+00:00 2026-05-28T03:58:05+00:00

Using the Twitter Search API I have attempted to download JSON data from a

  • 0

Using the Twitter Search API I have attempted to download JSON data from a specific twitter user. If I use the recommended schema for a from:username twitter recommends http://search.twitter.com/search.json?q=%3Ausername

For example if I want to query tweets FROM @NBCNews, twitter recommends the following:

http://search.twitter.com/search.json?q=%3ANBCNews

In my code I make an NSURLRequest for this JSON data but the NSString that is instantiated somehow has an odd string of numbers and letters where the “%3A” portion of the URL was.

I have made 2 similar strings to test, *path and *workingPath. *path is a call to return all tweets from the user:NBCNews and *workingPath is a call to return all tweets containing NBCNews.

- (void)loadQuery {

NSString *path = [NSString stringWithFormat:@"http://search.twitter.com/search.json?rpp=%d&q=%3ANBCnews",
                  RESULTS_PERPAGE];

NSString *workingPath = [NSString stringWithFormat:@"http://search.twitter.com/search.json?rpp=%d&q=NBCnews",
                  RESULTS_PERPAGE,self];
path = [path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

NSLog(@"path --> %@", path);
NSLog(@"path --> %@", workingPath);

I have included the output in the debug console where you can see the difference.

Pending breakpoint 1 - ""TwitterSearchViewController.m":334" resolved
2012-01-06 22:01:11.785 emsguide[7286:11603] path --> http://search.twitter.com/search.json?rpp=100&q=0X1.A000040DA604P-1025NBCnews
2012-01-06 22:01:11.786 emsguide[7286:11603] workingPath --> http://search.twitter.com/search.json?rpp=100&q=NBCnews
Current language:  auto; currently objective-c

Here the string “0X1.A000040DA604P-1025” replaced %3A in my URL.

Anyone seen this or have thoughts?

  • 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-05-28T03:58:06+00:00Added an answer on May 28, 2026 at 3:58 am

    Despite what the search.twitter.com result renders, the code does not need %3A and the URL scheme works with from:username

    changed:

    http://search.twitter.com/search.json?rpp=%d&q=%3ANBCnews
    

    to

    http://search.twitter.com/search.json?rpp=%d&q=from:NBCnews
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trends data from Twitter Search API in JSON. Grabbing the file using: $jsonurl =
I've been using the Twitter search api and PHP to pull in tweets from
So I'm parsing data from twitter api in rails using the twitter library, and
When I search the same query using the Twitter API returning JSON content and
I'm using the following query: https://twitter.com/search.json?callback=?&q=from:_adeel&count=5&include_entities=true&include_rts=true and I would like to see the last
I'm using Twitter's OAuth API to updates a user's twitter account (twitter status update)
I am using jquery to build a request to the Twitter Search API. I
I'm using the Twitter search api to search for a keyword so I can
I'm producing HTML from twitter search results. Happily using the Net::Twitter module :-) One
I have a website that returns search results from Twitter, written in C# ASP.NET.

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.