2

Does anyone have experience in using the Wiki API Sandbox with making REST calls on custom wikis? By custom wiki I mean something like http://bulbapedia.bulbagarden.net/wiki/.

I particularly want to get access to some of the Pokemon content found on Bulbapedia, but not sure where to start or if it's even possible to use REST on custom wikis.

My current solution is to just use a standard wikipedia page with calls like:

I get some JSON that I can work with, but would love to be able to explore the content of a Bulbapedia page AND have access to all of Ken Sugimori's artwork.

enter image description here

greg
  • 1,118
  • 1
  • 20
  • 40

1 Answers1

2

Yes, MediaWiki comes with API bundled. Furthermore, since 1.27 it includes a rewritten ApiSandbox that I originally wrote as an extension. So as Bulbapedia is running 1.27.1, it has the sandbox too.

MaxSem
  • 3,457
  • 21
  • 34
  • Perfect, I'll look into it :). So all wikis have access to the sandbox from the directory _"/wiki/Special:ApiSandbox"_ ? – greg Sep 30 '16 at 22:28
  • 1
    This answer is spot on. Here is a direct link to the API to parse the Bulbasaur page on bulbapedia -- similar to the wikipedia example in the original post: https://bulbapedia.bulbagarden.net/w/api.php?action=parse&format=json&page=Bulbasaur_(Pok%C3%A9mon) – MrHappyAsthma Nov 06 '21 at 08:41