Javascript
const url = 'https://studyfetchapi.com/api/v1/embed/component/{componentId}'; const options = {method: 'GET', body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
Component ID or MongoDB _id
Embed token
Component data retrieved
Was this page helpful?