I am trying to pull in twitter data via http://search.twitter.com/search.json?q=%40twitterapi?callback=? (using javascript) to show on a web page.
It returns no results.
I assume this is because I am not passing authentication (oauth) and token information in the string? Is there an example of this somewhere?
You’re using an API that has been deprecated and will cease functioning in March 2013. You’ll want to move to API v1.1’s search/tweets method instead.
While this old version you’re using didn’t require authentication, the new one does. That means you probably won’t be able to use it in a Javascript-only client-side environment.
The reason this query you’re running is returning empty results is likely due to your query being understood as “@twitterapi?callback=?” – only the first parameter in a URL should be preceded by a question mark, the rest should use the “&” character: https://search.twitter.com/search.json?q=%40twitterapi&callback=?
When it’s deprecated will it cease to function entirely or will twitter just no longer update it?
Cease functioning in totality.