[api] bugfix generating oembed data