Skip to main content
Glama
code_javascript.dot693 B
{{?data.bodyParameter.present}}const inputBody = '{{=data.bodyParameter.exampleValues.json}}';{{?}} {{?data.allHeaders.length}}const headers = { {{~data.allHeaders :p:index}} '{{=p.name}}':{{=p.exampleValues.json}}{{?index < data.allHeaders.length-1}},{{?}} {{~}}}; {{?}} fetch('{{=data.url}}{{=data.requiredQueryString}}', { method: '{{=data.methodUpper}}'{{?data.bodyParameter.present || data.allHeaders.length}},{{?}} {{?data.bodyParameter.present}} body: inputBody{{?}}{{? data.bodyParameter.present && data.allHeaders.length}},{{?}} {{?data.allHeaders.length}} headers: headers{{?}} }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server