AR Hosting API Documentation
Free, fast, and reliable media hosting service with Telegram integration. Upload images and videos directly or via URL with our simple API.
Fast Uploads
Upload and retrieve your media files in seconds with our optimized infrastructure.
Secure Storage
Your files are stored securely using Telegram's robust cloud storage infrastructure.
Telegram Integration
Upload files directly from Telegram using our dedicated bot for seamless integration.
API Documentation
This documentation provides a comprehensive guide on how to use the Ashlynn Repository API to upload media files to the platform.
Endpoints
- POST
/upload- Direct file upload via form data. - GET
/hosturl?url=[media_url]- Uploads media from a specified URL.
Base URLs
- POST:
https://ar-hosting.pages.dev/upload - GET:
https://ar-hosting.pages.dev/hosturl?url=[media_url]
POST Method
Uploads a media file (image, video, or any other type of media) directly using multipart/form-data. This method is ideal for client-side form submissions.
Header: Content-Type: multipart/form-data (Required)
Form Data Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
file | Yes | The media file to be uploaded (image, video, or any other type of media). Must not exceed 20MB in size. |
Usage Example (cURL)
curl -X POST https://ar-hosting.pages.dev/upload -H "Content-Type: multipart/form-data" -F "file=@path/to/your/file.jpg"
Usage Example (JavaScript - Fetch API)
const fileInput = document.querySelector('input[type="file"]');
const formData = new FormData();
formData.append('file', fileInput.files[0]);
fetch('https://ar-hosting.pages.dev/upload', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
GET Method
Fetches and uploads media from a provided URL. This method is suitable for uploading media files already hosted online.
Usage: GET /hosturl?url=[media_url]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | The URL of the media file to upload (image or video, max 20MB). |
Usage Example
https://ar-hosting.pages.dev/hosturl?url=https://example.com/path/to/media.jpg
Response Format (Success)
A successful upload will return a JSON object with the following details:
{
"data": "https://ar-hosting.pages.dev/1753020712833.png",
"url": "https://ar-hosting.pages.dev/1753020712833.png",
"filename": "2nNV2I4.png",
"size": 83638,
"uploaded_on": "2025-07-20T14:11:52.833Z",
"media_type": "image/png",
"creator": "https://t.me/Ashlynn_Repository"
}
data: The direct URL of the uploaded media file.url: (Alias fordata) The direct URL of the uploaded media file.filename: The original filename of the uploaded media.size: The size of the uploaded file in bytes.uploaded_on: The timestamp when the file was uploaded (ISO 8601 format).media_type: The MIME type of the uploaded media (e.g., 'image/png', 'video/mp4').creator: A link to the creator's Telegram channel.
Response Format (Error)
In case of an error, especially with the url parameter for the GET method, an error JSON object will be returned:
{
"error": "Failed to download file from URL"
}
Notes
- POST Method: Best for uploading files directly from user input (e.g., via an HTML form).
- GET Method: Ideal for programmatically uploading files that are already accessible via a public URL.
- All uploaded media is subject to a 20MB file size limit.
Telegram Bot Integration
Now you can directly upload media to AR Hosting using our dedicated Telegram bot @AR_UrlUploaderBot. This offers a convenient way to host files without needing to interact directly with the API.
How to Use the Telegram Bot
- Start a chat with @AR_UrlUploaderBot on Telegram.
- Direct File Upload: Send any image, video, or media file directly to the bot.
- URL Upload: Alternatively, send a URL containing a media file. Our bot will automatically download and upload it for you.
- The bot will process your request and return the direct AR Hosting URL for your uploaded media.
Bot Commands
| Command | Description |
|---|---|
/start |
Get a welcome message and basic instructions. |
/help |
Show detailed help information and available features. |
About Us
Welcome to AR Hosting — your trusted platform for free image, video, and general media hosting. Designed with an emphasis on simplicity, speed, and security, AR Hosting offers a seamless and efficient experience for uploading and sharing your digital content. Developed by Ashlynn Repository, our service is built on a foundation of robust privacy protections to ensure your data remains safe and secure.
Our platform leverages Telegram's cutting-edge cloud storage infrastructure, providing you with reliable and easily accessible media storage, whenever and wherever you need it.
About Ashlynn Repository: Ashlynn Repository is a dynamic Telegram channel managed by Aarabh (known as itz_ashlynn), who specializes in developing advanced Telegram bots, powerful APIs, and innovative web applications. You can explore all the latest tools, projects, and updates directly on their Telegram channel: Ashlynn Repository.
Disclaimer: AR Hosting is an independent project created solely for educational and demonstrative purposes and is not affiliated with or endorsed by Telegram. Users are solely responsible for the content they upload; AR Hosting does not claim any rights over user-uploaded media. By using our platform, users agree that they retain all responsibility for compliance with relevant copyright laws and regulations.