https://xmlexpr.blogspot.com/2025/09/blogger-post-label-alias.html
https://xmlexpr.blogspot.com/
8624397615555766327
https://xmlexpr.blogspot.com/2025/09/update-blogger-html-gadget-using-javascript.html
Update Blogger HTML Gadget using JavaScript
September 26, 2025
2025
September
26
01:25 AM
There's a way to update Blogger HTML gadget using JavaScript, but you will need an access token that have to be copied manually from another network request.
- Go to your blog dashboard and open DevTools > Network tab.
- Refresh the page. You should see at least one network request named "batchexecute".
- Go to the Payload tab, and look for
at
. That's your dashboard access token. Copy it.
![]() |
Blogger Dashboard Access Token. |
The Script
Here's the script to update a widget. Fill in the blank with your configuration:
// update HTML widget of a blog
// configuration
let blogId = '___'
let widgetId = 'HTML1'
let widgetTitle = 'Example Widget'
let widgetContent = 'Example widget content'
let accessToken = '___'
let widgetData = [];
widgetData[0] = widgetId
widgetData[1] = 15
widgetData[16] = [widgetTitle, widgetContent]
widgetData[33] = 1
let updateDate = [blogId, widgetData]
const formData = new FormData();
const data = new URLSearchParams();
data.append('f.req', JSON.stringify([[["ehMEXb",JSON.stringify(updateDate),null,"generic"]]]));
data.append('at', accessToken);
fetch("https://draft.blogger.com/_/BloggerUi/data/batchexecute", {
"headers": {
"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
},
"body": data.toString(),
"method": "POST",
"mode": "cors",
"credentials": "include"
});
Configuration:
blogId
Your Blogger blog ID.widgetId
The ID of the widget that you want to update.widgetTitle
The title of the HTML widget.widgetContent
The content of the HTML widget.securityToken
Blogger security token found in abatchexecute
request. You can use the same one for more than 24 hours, it seems.
**
https://www.blogger.com/rpc_relay.html https://www.blogger.com/comment/frame/220561901913020919?po=8624397615555766327&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo https://xmlexpr.blogspot.com/2025/09/update-blogger-html-gadget-using-javascript.html#comments true
https://xmlexpr.blogspot.com/search/label/template-development
template-development
https://xmlexpr.blogspot.com/2025/09/blogger-post-label-alias.html
https://xmlexpr.blogspot.com/