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 .
×
Create a free account

API - Character Avatar Tailed with Numbers

1535209887

Edited 1535209919
GM Michael
API Scripter
Maybe this is just a function of AWS, but why do my character avatar lookups in the API return things like this? "Avatar: <a href="https://s3.amazonaws.com/files.d20.io/images/55213992/jzhbkFoMmBMuIMoCLHXdiw/med.png?1527966685" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/55213992/jzhbkFoMmBMuIMoCLHXdiw/med.png?1527966685</a>" I can easily enough strip off the question mark and the numbers thereafter so that I can get it to display properly in the chat, but why are they there in the first place?
1535216325

Edited 1535216524
The Aaron
Pro
API Scripter
I believe they are a cache buster value. You can just append #.png to a url to force the [x](url) syntax to interpret it as an image instead of stripping the end. If you output an img tag it shouldn’t be a problem.&nbsp; Incidentally, all Roll20 images have that on the end (with a few bizarre exceptions).&nbsp;