There is no available embed. You just have to do it yourself.
The information comes from this unsupported API endpoint:
https://rechat.twitch.tv/rechat-messages
Options
You pass a video_id (a prepended “v” is required) and one of these two:
start
A time stamp in seconds. If you send something before or after valid time stamps for the video, you will get an error. Use increments of 30 seconds.
offset_seconds
An offset in seconds. This is similar to start in that it’s just added to the actual start value internally. Use increments of 30 seconds.
Output
Success
Without any useful data
{
"data": []
}
With a regular chat line
{
"data": [
{
"type": "rechat-message",
"id": "chat-23-2017:AVyGk02p3SgXF2ZqXqdl",
"attributes": {
"command": "",
"room": "piggsty",
"timestamp": 1496906404791, // milliseconds
"video-offset": 300791, // milliseconds
"deleted": false,
"message": "----",
"from": "alca",
"color": "#187DE3",
"tags": {
"badges": "moderator/1,turbo/1",
"color": "#187DE3",
"display-name": "Alca",
"emotes": null,
"id": "05fb4966-b1c4-47c2-a3fb-74858db0d71a",
"mod": true,
"room-id": "36993713",
"sent-ts": "1496906419217",
"subscriber": false,
"tmi-sent-ts": "1496906419226",
"turbo": true,
"user-id": "7676884",
"user-type": "mod"
}
},
"links": {
"self": "/rechat-message/chat-23-2017:AVyGk02p3SgXF2ZqXqdl"
}
},
],
"meta": {
"next": null
}
}
Use timestamp and/or video-offset in the attributes to know when the message should appear with the video.
I suppose it’s possible for there to be more than just a “rechat-message” chat line but I haven’t necessarily found one in just playing with it. As well as “commands.”
Error
Invalid or missing video ID
{
"errors": [
{
"status": 400,
"detail": "Invalid Video ID"
}
]
}
Out of range start time
{
"errors": [
{
"status": 400,
"detail": "0 is not between 1497029898 and 1497051187"
}
]
}