🔒

Enter Code SPUNK to Unlock

This exclusive premium tool requires the SPUNK referral code.

Get the code at spunk.codes/exclusive-tools
👑 EXCLUSIVE TOOL

API Documentation Generator

Define endpoints, parameters, and response schemas. Auto-generate beautiful API docs with code examples in cURL, JavaScript, and Python.

⚙ API Settings

🚀 Add Endpoint

Parameters

Response Schema (JSON)

📋 Endpoints (0)

📄

No endpoints yet. Add your first endpoint above.

🎨 Preview & Export

🔓 Share the Code, Unlock More Tools

Share code SPUNK to help others access 15+ exclusive premium tools.

SPUNK.CODES EXCLUSIVE
'; var blob = new Blob([doc], {type:'text/html'}); var a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = (name.replace(/\s+/g,'-').toLowerCase() || 'api-docs') + '.html'; a.click(); } function copyMarkdown(){ var name = document.getElementById('apiName').value || 'API Documentation'; var baseUrl = document.getElementById('apiBaseUrl').value || 'https://api.example.com'; var version = document.getElementById('apiVersion').value || 'v1.0.0'; var desc = document.getElementById('apiDesc').value || ''; if(endpoints.length === 0){alert('Add at least one endpoint first');return} var groups = {}; endpoints.forEach(function(ep){ if(!groups[ep.tag]) groups[ep.tag] = []; groups[ep.tag].push(ep); }); var md = '# ' + name + '\n\n'; md += '**Base URL:** `' + baseUrl + '` | **Version:** ' + version + '\n\n'; if(desc) md += desc + '\n\n'; md += '---\n\n'; Object.keys(groups).forEach(function(tag){ md += '## ' + tag + '\n\n'; groups[tag].forEach(function(ep){ md += '### `' + ep.method + '` ' + ep.path + '\n\n'; md += ep.desc + '\n\n'; if(ep.params.length > 0){ md += '| Name | Type | In | Required | Description |\n|------|------|----|----------|-------------|\n'; ep.params.forEach(function(p){ md += '| `' + p.name + '` | ' + p.type + ' | ' + p.in + ' | ' + (p.required==='true'?'Yes':'No') + ' | ' + p.desc + ' |\n'; }); md += '\n'; } md += '**cURL**\n```bash\n' + generateCurl(ep, baseUrl) + '\n```\n\n'; md += '**JavaScript**\n```javascript\n' + generateJS(ep, baseUrl) + '\n```\n\n'; md += '**Python**\n```python\n' + generatePython(ep, baseUrl) + '\n```\n\n'; if(ep.response){ md += '**Response**\n```json\n'; try{md += JSON.stringify(JSON.parse(ep.response),null,2);}catch(e){md += ep.response;} md += '\n```\n\n'; } md += '---\n\n'; }); }); navigator.clipboard.writeText(md).then(function(){alert('Markdown copied to clipboard!')}); } loadState(); renderEndpoints(); function shareX(){window.open('https://twitter.com/intent/tweet?text='+encodeURIComponent('Building API docs with this insane generator tool. Code SPUNK unlocks it free @SpunkArt13')+'&url='+encodeURIComponent('https://spunk.codes/exclusive-tools'),'_blank')} function shareReddit(){window.open('https://www.reddit.com/submit?url='+encodeURIComponent('https://spunk.codes/exclusive-tools')+'&title='+encodeURIComponent('API Documentation Generator - free with code SPUNK [spunk.codes]'),'_blank')} function shareEmail(){window.location.href='mailto:?subject='+encodeURIComponent('API Documentation Generator Tool')+'&body='+encodeURIComponent('Generate beautiful API docs with code examples. Code SPUNK: https://spunk.codes/exclusive-tools')}