I know it's not your doing, but the api should contain the full link, including the id...