Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 23.1 KB

README.md

File metadata and controls

63 lines (42 loc) · 23.1 KB

Advent of Code Badge Generator

An interface over Shields.io to facilitate the creation of badges from Advent of Code.

Deploy on your Vercel instance


Setup

Get your session id

There is no open api to get user's profile.

Press F12 while you are logged in on adventofcode.com to open the developer tools of your browser.

Then open the Application Tab on Chromium Browsers or Storage on Firefox. There you can have a look at your cookies and copy the session id.

Deploy to Vercel

Import project from this repo.

Deploy to Vercel

Add your environment variable named SESSION value is your session id.

Click deploy. See your domains to use the API!

API

Response

{
  "2015":"6*",
  "2016":"0*",
  "2017":"0*",
  "2018":"3*",
  "2019":"0*",
  "2020":"0*",
  "2021":"0*",
  "allStars":"9*"
}
  • The API fetch star-counts from 2015 to the current year.

  • We can show all star-counts or each year respectively.

My Adent of Code Elixir Solutions

Readme Card