alive

Home

Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Human Alive-ness API

It works by querying Wikidata via SPARQL to search for birth and death dates of a person.

Requires an exact name match. It will throw if it can't find results. It will return true if every match has a birth date and not a death date. (It will return false if a match does not have a birth date, because we assume that to mean they are a historical figure whose birthdate we don't know.)

@stevekrouse.alive("Henry Kissinger") // true (for now)

You can view some example usages / tests here: https://www.val.town/v/stevekrouse.aliveTests

Migrated from folder: Archive/alive