⚠️ Warning: Alura API is still in development. Rewriting support is VERY limited and may not work perfectly.
What is Alura API?
The Alura API allows you to fetch any webpage and transform it to rewrite all asset URLs (images, scripts, stylesheets, links) so they are served through the API. You can also retrieve the raw HTML with updated links for programmatic use.
It’s perfect for:
- Embedding third-party webpages into your projects safely.
- Fetching static or dynamic content with rewritten URLs.
- Analyzing or manipulating HTML content programmatically.
How It Works
Alura API takes a target URL and returns either:
- type=page: A fully rendered webpage with all asset URLs rewritten.
- type=raw: The raw HTML content with all URLs rewritten for programmatic usage.
GET
/?url={TARGET_URL}&type=page
Fetch transformed page
GET
/?url={TARGET_URL}&type=raw
Fetch raw HTML
GET
/asset?url={ASSET_URL}
Fetch individual asset
Usage Example
Here’s a simple example using fetch in JavaScript:
fetch('https://api.aluratech.org/?url=https://example.com&type=raw')
.then(res => res.text())
.then(html => {
console.log(html);
});
Or to fetch and embed the rewritten page in an iframe:
<iframe src="https://api.aluratech.org/?url=https://example.com"
style="width:100%;height:80vh;border:none;">
</iframe>
Parameters
url(required) - The target URL to fetch and rewrite.type(optional) -pageorraw. Defaults topage.
Notes
- Search engines currently don't work! Don't complain without reading this!
- All asset URLs (images, scripts, links, videos) are rewritten to pass through the API.
- Links (
<a>tags) are rewritten to go through Alura API. - Inline styles and
<style>blocks are automatically updated.