get data in astro detail view