JavaScript
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}}; fetch('https://api.browser-use.com/api/v2/sessions/{session_id}/public-share', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "shareToken": "<string>", "shareUrl": "<string>", "viewCount": 123, "lastViewedAt": "2023-11-07T05:31:56Z" }
Get public share information including URL and usage statistics.
Successful Response
View model for representing a public share of a session.
Token to access the public share
URL to access the public share
Number of times the public share has been viewed
Timestamp of the last time the public share was viewed (None if never viewed)