Skip to main content
POST
/
getOEmbedURL
Get OEmbed URL preview
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/getOEmbedURL \
  --header 'Content-Type: application/json' \
  --data '
{
  "link": "https://example.com/post",
  "platform": "instagram"
}
'

Body

application/json

URL to get OEmbed for (NOT url)

Example:

"https://example.com/post"

platform
string

Platform name (e.g. twitter, tiktok)

Example:

"instagram"

Response

200

OEmbed preview data