A tool to get the latest played map info in formatted text for chat bots.


The token should be kept PRIVATE and is stored as cookie so same token is used as long as the browser keeps the cookie. You can also restore the cookie by providing the token in the input box below and pressing Restore Token.


Note that the token will expire in 24 hours if no data is sent from Trackmania with that token. The token will also expire if there is longer than 90 days since last data received from Trackmania.

Use with SNW Map Util OpenPlanet plugin.



Keep the Token private.

Token
6d4e956e-ae56-4acf-9709-c9ce6160199e

View Token is considered not private and is visible on url.

View Token pPbrdaq3MjgHYt44DtSoEM

Latest Map Info

No map info submitted yet


Texts
Preview:
Map: "" by  AT:  
URL:
https://tm.snekw.com/api/map/view/gdb7KJGEyvHS8hDEy7ujsK/sonqfZtjbsiinSXkR6vk5T
Help

Available formatting options:

  • mapName
  • mapAuthor
  • mapUid
  • mapAuthorTime
  • mapGoldTime
  • mapSilvertime
  • mapBronzeTime
  • tmxLink
TMX options

Details https://api2.mania.exchange/Method/Index/37

These options are available if the map is uploaded to Trackmania Exchange

Usage: {tmx.TrackID}

  • TrackID
  • UserID
  • Username
  • GbxMapName
  • AuthorLogin
  • MapType
  • TitlePack
  • TrackUID
  • Mood
  • DisplayCost
  • ModName
  • Lightmap
  • ExeVersion
  • ExeBuild
  • AuthorTime
  • ParserVersion
  • UploadedAt
  • UpdatedAt
  • Name
  • Tags
  • TypeName
  • StyleName
  • EnvironmentName
  • VehicleName
  • UnlimiterRequired
  • RouteName
  • LengthName
  • DifficultyName
  • Laps
  • ReplayWRID
  • ReplayWRTime
  • ReplayWRUserID
  • ReplayWRUsername
  • TrackValue
  • Comments
  • MappackID
  • Unlisted
  • Unreleased
  • Downloadable
  • RatingVoteCount
  • RatingVoteAverage
  • HasScreenshot
  • HasThumbnail
  • HasGhostBlocks
  • EmbeddedObjectsCount
  • EmbeddedItemsSize
  • IsMP4
  • SizeWarning
  • AwardCount
  • CommentCount
  • ReplayCount
  • ImageCount
  • VideoCount
Chat Bots

Nightbot

!commands add !map $(urlfetch https://tm.snekw.com/api/map/view/ew3pDGcne3EUc2h3civN2z/eUwwEtejsrL2QnFjt872K9 )


StreamElements

!command add map ${urlfetch https://tm.snekw.com/api/map/view/****/****}


Moobot

  • Create a new custom command
  • Select "Response" as "URL fetch - Full (plain) response"
  • Paste the url to "URL to fetch"
  • Leave all other URL fetch parameters as default


Other bots

  • Most bots have some form of custom API support
  • Most commonly it's named `URL-fetch`, `customapi` or `readapi`
  • Follow the instructions for your own bots version of this and it should work

Advanced

Endpoint: https://tm.snekw.com/api/map/update