abstract over get API