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
a19f449f-ed56-44e0-a40b-0c1b968f9133

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

View Token 2ZmvqshdFpQzxFf8HhFgj6

Latest Map Info
  • Map: Kacky Reloaded #270
  • Author: Larstm
  • MapUid: NmZiYzFhZTYtMWYyMi00OTY3LWE

Texts
Preview:
Map: "Kacky Reloaded #270" by Larstm AT: 0:25.346 https://trackmania.exchange/maps/126835
URL:
https://tm.snekw.com/api/map/view/d71KsgnGCyPe8udCqsYWsK/rAEGGcpCnEmjfqyAQMPm7f
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