Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Geek Talk & Media
Exclusive details on the DDI API (not a repeat...)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Asmor" data-source="post: 4831218" data-attributes="member: 1154"><p>I've figured out some exclusive details on how to programatically query the compendium. Details on <a href="http://www.encounteraday.com/2009/06/17/exclusive-dd-insider-compendium-api-details/" target="_blank">my blog</a>.</p><p></p><p>[sblock=Copied and pasted, but I'm too lazy to redo it in BB code.]So to cut a short (but uninteresting) story even shorter, I stumbled onto a way to get XML results from Compendium searches, opening the door for people to run queries against the compendium programatically. For example, I’ve just updated my Monster Maker with the ability to search the compendium for monsters and import them (this was previously available, but more complicated as you had to save the monsters to an HTML file and then import that…).</p><p></p><p>So without further ado, here’s the key:</p><p></p><p><a href="http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch" target="_blank">http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch</a></p><p></p><p>You can query that URL using either GET or POST If you don’t know what those are, you’re probably best off using GET, which I’ll describe.</p><p></p><p>The two parameters which seem to be necessary are “Keywords” and “tab” (I don’t think case matters, but that’s the case I’m using and it works…). Keywords is what you’re searching for, and tab is the type of results you want.</p><p></p><p>For example, to search for mind flayers, you’d look up:</p><p></p><p><a href="http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch?Keywords=mind%20flayers&tab=Monster" target="_blank">http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch?Keywords=mind flayers&tab=Monster</a></p><p></p><p>Note that the space was escaped to %20. I’m pretty sure you can NOT replace spaces with +. I haven’t tried dashes or underscores.</p><p></p><p>And that brings up a nice little XML document ready to be fed into whatever silly machinery you’re working on.</p><p></p><p>Also note that each entry has an associated ID. You can use that ID to find the page for the specific element. In the case of monsters, you use…</p><p></p><p><a href="http://www.wizards.com/dndinsider/compendium/monster.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/monster.aspx?id=</a>[insert ID here]</p><p></p><p>For example, the Mind Flayer Infiltrator is ID 339, so its page is</p><p></p><p><a href="http://www.wizards.com/dndinsider/compendium/monster.aspx?id=339" target="_blank">http://www.wizards.com/dndinsider/compendium/monster.aspx?id=339</a></p><p></p><p>The URLs for other elements are…</p><p></p><p><a href="http://www.wizards.com/dndinsider/compendium/race.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/race.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/class.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/class.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/glossary.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/glossary.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/deity.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/deity.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/item.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/item.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/monster.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/monster.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/epicdestiny.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/epicdestiny.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/paragonpath.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/paragonpath.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/ritual.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/ritual.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/feat.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/feat.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/skill.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/skill.aspx?id=</a></p><p><a href="http://www.wizards.com/dndinsider/compendium/power.aspx?id=" target="_blank">http://www.wizards.com/dndinsider/compendium/power.aspx?id=</a></p><p></p><p>For some info on actually running queries, check out Gaming in Code, a blog run by one of the guys working on DDI. I haven’t tested to make sure that all those filters and such actually work with this, but I strongly suspect they do.[/sblock]</p></blockquote><p></p>
[QUOTE="Asmor, post: 4831218, member: 1154"] I've figured out some exclusive details on how to programatically query the compendium. Details on [url=http://www.encounteraday.com/2009/06/17/exclusive-dd-insider-compendium-api-details/]my blog[/url]. [sblock=Copied and pasted, but I'm too lazy to redo it in BB code.]So to cut a short (but uninteresting) story even shorter, I stumbled onto a way to get XML results from Compendium searches, opening the door for people to run queries against the compendium programatically. For example, I’ve just updated my Monster Maker with the ability to search the compendium for monsters and import them (this was previously available, but more complicated as you had to save the monsters to an HTML file and then import that…). So without further ado, here’s the key: [url]http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch[/url] You can query that URL using either GET or POST If you don’t know what those are, you’re probably best off using GET, which I’ll describe. The two parameters which seem to be necessary are “Keywords” and “tab” (I don’t think case matters, but that’s the case I’m using and it works…). Keywords is what you’re searching for, and tab is the type of results you want. For example, to search for mind flayers, you’d look up: [url]http://www.wizards.com/dndinsider/compendium/CompendiumSearch.asmx/KeywordSearch?Keywords=mind%20flayers&tab=Monster[/url] Note that the space was escaped to %20. I’m pretty sure you can NOT replace spaces with +. I haven’t tried dashes or underscores. And that brings up a nice little XML document ready to be fed into whatever silly machinery you’re working on. Also note that each entry has an associated ID. You can use that ID to find the page for the specific element. In the case of monsters, you use… [url]http://www.wizards.com/dndinsider/compendium/monster.aspx?id=[/url][insert ID here] For example, the Mind Flayer Infiltrator is ID 339, so its page is [url]http://www.wizards.com/dndinsider/compendium/monster.aspx?id=339[/url] The URLs for other elements are… [url]http://www.wizards.com/dndinsider/compendium/race.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/class.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/glossary.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/deity.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/item.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/monster.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/epicdestiny.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/paragonpath.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/ritual.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/feat.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/skill.aspx?id=[/url] [url]http://www.wizards.com/dndinsider/compendium/power.aspx?id=[/url] For some info on actually running queries, check out Gaming in Code, a blog run by one of the guys working on DDI. I haven’t tested to make sure that all those filters and such actually work with this, but I strongly suspect they do.[/sblock] [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
Exclusive details on the DDI API (not a repeat...)
Top