impfbot
impfbot copied to clipboard
REST documentation
Is there a public documentation of the Impfportal-API? I was not able to find it.
@sibalzer I am also interested on how the REST API and also the json structure/fields ("outOfStock / freeSlotSizeOnline / vaccineName / vaccineType" which the impfbot.py is checking) have been found out. Thanks :)
E: Just inspecting the impfportal main page is enough, there's a GET request which we can use to evaluate.
Unfortunately there is no public documentation. F12 is your friend.
https://www.impfportal-niedersachsen.de/portal/rest/appointments/findVaccinationCenterListFree/{plz}
There are 3 parameters: stkio: no idea for what is alway empty count: used for groupsize; default 1 birthdate: unix timestamp in ms
Looks like it's obsolete since there are no more priorities.
getVacctionationcenterFree(e, t, i, n) {
let a = new C.f;
return a = a.append("stiko", t),
i && (a = a.append("count", i)),
n && (a = a.append("birthdate", n)),
this.ajaxService.ajaxGET("rest/appointments/findVaccinationCenterListFree/" + e, {}, {
params: a
})
}
indicationSTIKO() {
return !0
}
indicationSTIKONoAge_Obsolate() {
return this.calcAge() >= 70 && this.calcAge() <= 120 || this.customer.jobIndication || this.customer.medicalIndication || this.customer.vaccinationPermit || this.customer.carecenterIndication
}
getStikoCode(e) {
let t = "";
return e.ageIndication && (t += "A"),
e.jobIndication && (t += "J"),
e.medicalIndication && (t += "M"),
t
}
🤷