Skip to content

Instantly share code, notes, and snippets.

@creaktive
Created September 19, 2026 07:50
Show Gist options
  • Select an option

  • Save creaktive/93b9ca791cce390399622f41a192682c to your computer and use it in GitHub Desktop.

Select an option

Save creaktive/93b9ca791cce390399622f41a192682c to your computer and use it in GitHub Desktop.
telegraf duolingo elo
# Duolingo chess
[[inputs.http]]
interval = "1h"
urls = ["https://ios-api-cf.duolingo.com/chess/1/27658994/matches?cleanUpActiveMatches=false&fromLanguage=en&sectionNumber=5&userTimezone=Europe/Amsterdam"]
method = "GET"
timeout = "10s"
data_format = "json_v2"
tagexclude = ["url"]
[inputs.http.headers]
"accept" = "*/*"
"cookie" = "jwt_token=..."
"accept-language" = "en-US;q=1.0,pt-BR;q=0.9,ru-US;q=0.8"
"x-amzn-trace-id" = "User=27658994"
"user-agent" = "DuolingoMobile/7.133.0 (iPhone; iOS 26.5.2; Scale/3.00)"
"priority" = "u=3"
[[inputs.http.json_v2]]
measurement_name = "duolingo_chess"
[[inputs.http.json_v2.field]]
path = "eloRating"
type = "int"
[[inputs.http.json_v2.field]]
path = "record.draws"
type = "int"
[[inputs.http.json_v2.field]]
path = "record.losses"
type = "int"
[[inputs.http.json_v2.field]]
path = "record.wins"
type = "int"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment