Skip to content
ComputerElite edited this page Aug 14, 2021 · 7 revisions

Retrieving data

Endpoints

The HTTP endpoints for retrieving Data are as follows,

  • http://[Your Quests ip]:53502/data
    will give you the standard json output with all the information.
  • http://[Your Quests ip]:53502/positions
    will give you saber and head positions as json. May crash the game
  • http://[Your Quests ip]:53502/cover/cover.jpg
    coverImage as jpg file.
  • http://[Your Quests ip]:53502/cover/cover.png
    coverImage as png file.
  • http://[Your Quests ip]:53502/cover/base64
    for receiving the image as jpg encoded in base64 starting with the data:image/jpg;base64, header.
  • http://[Your Quests ip]:53502/cover/base64/png
    for receiving the image as png encoded in base64 starting with the data:image/png;base64, header.
  • http://[Your Quests ip]:53502/info
    Shows the same info as Multicast (mod version, ...) as Json
Image Data Format
  • Base64 Encoded Images will be sent as text/html.

Example data:image/jpg;base64,/9j/4AAQSkZJRgABAQA...=

  • The cover.jpg and cover.png endpoints will send the data as image/filetype where filetype is the type of the image for example image/jpg