SR now offers xml-versions of all laws. Maybe this can be implemented or used to generate a custom API.