API: score as an attribute