On 03/30/2010 06:54 PM, Jeff Computers wrote: > Actually this API looks so easy, I don't think I need an a code example. All > I need is the GET url with api.php and an example that would get the first > dictionary definition for something like 'Turtle' For example, it should > return something like this: > > > > 1. A land or marine reptile having a protective shell (made up of a > carapace and a plastron) enclosing its body. >
Wiktionary doesn't have a detailed API (yet), you can get the page source using a GET request to http://en.wiktionary.org/w/api.php?action=query&prop=revisions&rvprop=content&titles=turtle Or, for just one page to: http://en.wiktionary.org/w/index.php?action=raw&title=turtle Note that the page is not "Turtle", Wiktionary is case sensitive. Once you have the page, the definition lines (and only the definition lines) start with a #, so they're pretty easy to find. I don't know of any VB clients, but there's some in C# at http://www.mediawiki.org/wiki/API:Client_code#.NET Conrad _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
