use api for percentage