See if this can be cleaner with `api_type = "json"`