API - astropy-based example