Oh, and yahoo does too...
Main Topics
Browse All TopicsHow to get MSN and Altavista API's for the search engine as that of getting the Google API.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You could make your own simple "query api" pretty easily..
For MSN just make a URL encoded request to:
http://search.msn.com/resu
For Altavista it is very similar:
http://www.altavista.com/w
Mr.Matthewdfleming
I need the ranking of the site for the particular keyword, Not the result page.
ie., if i give the keyword as java and i give the site name as "www.java.com". If after search for that keyword if it finds the sitemap name it should return the place position of the site is listed.
thanks
Ahh yes.. well it looks like there are a plethora of free sites that do this already..
http://www.e-axis-inc.com/
http://www.googlerankings.
If you were to do it yourself.. all you need to do is make a search request with the term.. then page through the results to test for the url. It shouldn't be too hard.. But why write it when you can just use an already existing site? :-)
Mr.Matthewdfleming,
It was why i need is i don't want to depend on other sites and fear for whether that site will change their way i also want to change my way.
Can you tell me a sample code for getting the ranking position for a particular keyword in a particular search engine exspecially for Lycos.com.
thanks
I think you will have to write your own program to submit the search, and parse results.
Check out the jakarta http client for an easy to use java http client @ http://jakarta.apache.org/
Ya Mr.Matthewdfleming,
The same approach i done using http unit. But the thing in it is i just read the page of the particular site and i want to scrap the data. Instead of that i need to do is just if i give the keyword and the website name to find by giving the particular search engine name i want the ranking position in my application.
Hoping for the positive result.
thanks
The Expert colr__ did have a program that did that:
See here:
http:Q_21523592.html#14651
Maybe posting a comment in that question, you could ask him if it's still available?
Tim
Hi ephrontech,
I've put up a link to the app here: http://www.colin-reid.co.u
To compile, run c.bat under the soft directory. To run, simply run run.bat in the top level directory.
The app works for Google, Yahoo, MSN, AltaVista and Alltheweb. At present msn.co.uk isn't working cause they've got a 302 redirect in place which the app cant handle (for the time being).
Although it doesnt cater for Lycos, it's been designed to eaily plug in more Search Engines. To add a new engine, place engine code in the soft\JSE\Search\Engines\Pa
When you start up the app, put some keywords and domain names in the search fields and let it run - itll then prompt you for a save location, wher it outputs an HTML report of the ranks found.
Hope this helps, and feedback would be appreciated (and any code developed for Lycos).
colr__
Mr.Colr,
I got your application and i run it. It is very nice. But the thing is you used a scraping method to get the page. I made the same thing using http unit(like Http Client). But the thing is if they(search engine site) change the site (ie., if suppose in MSN instead of <div id=result> if they change to <div id=final page>) we can't get the expected result. If we use this we have to be aware of the search engine site every time whether they are changing their site. So, instead of scraping, is their any way to get the rank of our site from the desired search engine.Because i want to include this as a part in my application.(Whether i got your coding functionality correctly or i mistaken it. If so, sorry for my comment).
please contact.
thanks
It wont be possible to get "real" results without calling an instance of the web page that displays these results, i.e. by scraping.
The only alternative to the API is therefore scraping. There is no other way to immitate a normal user request than having your app make the request for you in the same way.
Both google and Yahoo have APIs, but as Ive said they dont provide the same search results as the public websites.
colr__
I think the answer is simple..
Use an API (Google, Yahoo): No manual http parsing/requesting
Use a browser: The browser could be written in Java, but you will need to parse the responses (aka scraping) to determine a) your rank and b) the "next" link.
The thing that always stinks about scraping is the maintenance of the scrapers.. But in this case, how hard is it really to change the link finder? and how many times a year do the engines change their pages?
If you really don't want to do the scraping maintenance, use an SEO company and pay for someone to do it for you! ;-)
Business Accounts
Answer for Membership
by: TimYatesPosted on 2005-09-05 at 01:56:51ID: 14822315
I don't believe either of those two do an API.
Just Google do one
As far as I know...
Tim