Is there a machine-readable Sefer Torah or Chumash? Machine-readable meaning formatted as to be understood by a computer program. Despite the phrase, this is different from a Torah simply stored in some sort of electronic medium which though it can be read by a machine/program cannot be parsed meaningfully(understood). E.g. Wikidata is a machine-readable Wikipedia?
Sefaria has an API that will serve it up as a JSON object.