Refine embed logic and add API-Route