Use your numbers anywhere
Your fasts, streaks and points are yours. Show them on your desktop, phone or website, put them in a spreadsheet or a calendar, or post them to Discord. Most of it needs no coding.
Step 1: get your key — Account → API access → Create API key. Copy it once; it works like a password. Put it where you see YOUR_KEY below. Links with the key in them can only read your data.
=IMPORTDATA("https://snakediet.org/api/v1/export.csv?key=YOUR_KEY&inline=1")Subscribe to this address in Google, Apple or Outlook calendar (add "from URL"):
https://snakediet.org/api/v1/calendar.ics?key=YOUR_KEY
Shortcuts app → new shortcut → Get contents of URL → then Speak text:
https://snakediet.org/api/v1/summary?format=text&key=YOUR_KEY
Any widget app that can read a web address works: KWGT, HTTP Shortcuts, Lively, Rainmeter, Übersicht, Conky. Point it at:
https://snakediet.org/api/v1/widget?key=YOUR_KEY
See Widgets for the exact fields.
rest:
- resource: https://snakediet.org/api/v1/widget?key=YOUR_KEY
scan_interval: 300
sensor:
- name: "Fast hours"
value_template: "{{ value_json.fast_hours }}"
unit_of_measurement: "h"
- name: "Snake Diet streak"
value_template: "{{ value_json.streak }}"No key needed. Works only if you turned on Make my stats public in your profile settings.
<img src="https://snakediet.org/api/v1/card/YOURNAME.svg" alt="My Snake Diet stats">
MyFitLevel is a free fitness community. A finished fast here shows up there, and a finished workout there shows up here. Posts say "(via …)" and link back. Nothing else is shared.
- On MyFitLevel: Settings → API access → create a key (allow writing). Copy it.
- Here: Account → Link a site. Paste
https://myfitlevel.com/api/v1/postsand that key. Press Send a test post. - On MyFitLevel: Connect → "Link with SnakeDiet". Paste
https://snakediet.org/api/v1/postsand your key from here (it must be allowed to write).
Stop any time by clearing the fields. Only https addresses on port 443 are accepted.
The post sent from "Link a site" is JSON with both text and content, so any webhook-style address that accepts a bearer key works.
{"text":"Finished a 36 h fast 🐍","content":"Finished a 36 h fast 🐍","source":"snakediet.org",
"url":"https://snakediet.org/profile/NAME","event":"fast.finished","username":"NAME"}