This service enables cross-origin requests to the Tower Defense Simulator Wiki only.
Use this proxy to fetch content from allowed domains by using a query parameter.
To use the query, simply pass the target URL as a URL-encoded url
query parameter:
https://api.tds-editor.com/?url=https%3A%2F%2Ftds.fandom.com%2Fwiki
Example Output: Returns the HTML content of the /wiki/
page.
Note: Use JavaScript's encodeURIComponent()
to encode URLs properly, occulticnine.vercel.app
can also be used instead of api.tds-editor.com
.
Use our dedicated badge API to fetch Roblox badge awarded counts.
https://api.tds-editor.com/badges?id=2124475816
Add this script tag to your HTML:
<script src="https://api.tds-editor.com/badges?id=2124475816"></script>
And implement this function to handle the counts:
window.__updateBadgeCount = function(id, count) {
document.getElementById('badge-' + id).textContent = count.toLocaleString();
};
Add this code to your wiki's common.js file to automatically load badge counts for elements with id classes:
window.__updateBadgeCount = function(id, count) {
document.querySelectorAll('.id' + id).forEach(el => {
el.textContent = count.toLocaleString();
});
};
document.querySelectorAll('[class*="id"]').forEach(el => {
const match = el.className.match(/id(d{5,})/);
if (!match) return;
const badgeId = match[1];
const script = document.createElement('script');
script.src = 'https://api.tds-editor.com/badges?id=' + badgeId;
document.head.appendChild(script);
});
Then simply add the badge ID as a class to any HTML element:
<span class="id2124475816">Loading...</span>
You can use multiple badge counters on the same page:
<div>Event Badge: <span class="id2124475816">Loading...</span> awarded</div>
<div>Golden Badge: <span class="id12345678">Loading...</span> awarded</div>
Pre-cached access to common wiki data:
https://api.tds-editor.com/dbtree
https://api.tds-editor.com/common-wiki
(legacy URL)
Result: Returns the TDS Database category listing with improved performance.
fetch('https://api.tds-editor.com/?url=' + encodeURIComponent('https://tds.fandom.com/wiki'))
.then(response => response.text())
.then(html => console.log(html))
.catch(error => console.error('Error:', error));
fetch('https://api.tds-editor.com/?url=https://assetdelivery.roproxy.com/v2/assetId/123456789')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Domain | Features | Cache Duration |
---|---|---|
tds.fandom.com | Full access to wiki content | 1 hour |
roblox.com | Authenticated API access | 24 hours |
roproxy.com | Authenticated API access | 24 hours |
Note: Badges are cached for a week.
tds.fandom.com, roblox.com, roproxy.com
are allowedtds-editor.com, occulticnine.vercel.app, localhost, 127.0.0.1
are allowedPowered by CORS Anywhere, named after Occultic;Nine.