oembed
For generating OEmbed previews.
getOEmbed as JSON
https://CounterSocial.example/api/oembed
Returns: OEmbed metadata
OAuth: Public
Version history:
1.0.0 - added
Request
Query Parameters
url
required
string
URL of a status
maxwidth
optional
number
width of the iframe. Defaults to 400
maxheight
optional
number
height of the iframe. Defaults to null
Response
200: Success
Represents OEmbed rich preview, with associated iframe and metadata.
{
"type": "rich",
"version": "1.0",
"title": "New status by trwnh",
"author_name": "infinite love ???",
"author_url": "https://CounterSocial.social/@trwnh",
"provider_name": "CounterSocial.social",
"provider_url": "https://CounterSocial.social/",
"cache_age": 86400,
"html": "",
"width": 400,
"height": null
}
404: Not Found
Status not found
{
"error": "Record not found"
}