Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

External .JSON api calls format for purchased compendiums

I'm working on a DND helper tool that makes use of Roll20's open compendium through the following external calls: For example: <a href="https://app.roll20.net/compendium/dnd5e/cat.json" rel="nofollow">https://app.roll20.net/compendium/dnd5e/cat.json</a> <a href="https://app.roll20.net/compendium/dnd5e/eldritch_blast.json" rel="nofollow">https://app.roll20.net/compendium/dnd5e/eldritch_blast.json</a> Here's a quick screenshot from the work in progress tool &nbsp; If I purchased a compendium expansion, like Volo's Guide - What would an 'external' API call to fetch Volo's Guide .JSON data, look like?&nbsp;&nbsp; I believe there would be an authentication code of some kind to show proof of purchase in order to access the data.
1604006244
The Aaron
Roll20 Production Team
API Scripter
The same as the others.&nbsp; For example:&nbsp; <a href="https://roll20.net/compendium/dnd5e/Lore:Beholders.json" rel="nofollow">https://roll20.net/compendium/dnd5e/Lore:Beholders.json</a> &nbsp;: would be the Lore of Beholders URL and it would have a structure like: { "name": "Beholders", "id": 12296, "content": "&lt;TEXT CONTENT&gt;", "htmlcontent": "&lt;HTML CONTENT&gt;", "data": { "Source": "Volo's Guide to Monsters", "Category": "Lore", "data-List": "false" } }
Thanks for your response Aaron, I thought I'd get an email notification on the followed-topics, so I'm late to reply. I feel like there's a compendium forum post I'm missing that discusses how to create these URL calls. Can you direct me to where I can find this information? What I want to do overall is build an app that allows me to access the free compendium - so bestiary, spells, etc.(currently this is working) and also displays purchasable compendiums to a mobile user, so they have an option to purchase and have greater access to the info through the app's tools. If the user has previously purchased a compendium through roll20, is there an authentication process to go through from an external call (from a phone request, not a web browser that senses you're signed in?). I'm not sure if roll20 has anything like this setup. I did contact them but have not received an adequate reply as of yet. I'm appreciative of any kind of direction you can provide on this, thank you.