Image Hosting for Developers API
Image Hosting API for Developers
ImgLink provides a comprehensive REST API for programmatic image hosting. Upload, manage, and retrieve images from your applications, scripts, and services.
Getting Started
1. Create a Free Account
Sign up in 10 seconds. No credit card required.
2. Get Your API Key
Go to Dashboard → API Keys → Create New Key.
3. Authenticate
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
API Endpoints
Upload Image
POST /api/upload
Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_KEY
Parameters:
Response:
{
"images": [{
"id": "abc123",
"url": "https://imglink.cc/cdn/abc123.png",
"thumbnail": "https://imglink.cc/cdn/thumb/abc123.webp",
"viewer": "https://imglink.cc/i/abc123",
"width": 1920,
"height": 1080,
"size": 245678,
"mime": "image/png"
}]
}
Get Image Info
GET /api/images/:id
Returns image metadata, embed codes, and URLs.
Delete Image
DELETE /api/images/:id
Authorization: Bearer YOUR_API_KEY
List Your Images
GET /api/dashboard/images?page=1
Authorization: Bearer YOUR_API_KEY
Create Album
POST /api/albums
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json{"title": "My Album", "description": "Collection of screenshots"}
Code Examples
Node.js
import fs from 'fs';const form = new FormData();
form.append('file', fs.createReadStream('image.png'));
form.append('visibility', 'public');
const res = await fetch('https://imglink.cc/api/upload', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + API_KEY },
body: form
});
const data = await res.json();
console.log(data.images[0].url);
Python
import requestswith open('image.png', 'rb') as f:
r = requests.post(
'https://imglink.cc/api/upload',
headers={'Authorization': f'Bearer {API_KEY}'},
files={'file': f},
data={'visibility': 'public'}
)
print(r.json()['images'][0]['url'])
cURL
curl -X POST https://imglink.cc/api/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-F "visibility=public"
Rate Limits
| Tier | Limit |
| Free Account | 100 uploads/hour |
Error Codes
| Code | Meaning |
| 400 | Bad request (invalid file, too large) |
| 401 | Missing or invalid API key |
| 429 | Rate limit exceeded |
| 500 | Server error |
Ready to start? Create a free ImgLink account in 10 seconds - no credit card, no BS. Unlimited uploads, albums, and API access.
Start hosting images for free today. Upload your first image now or create a free account to unlock albums, dashboard analytics, and developer API access. It takes 10 seconds.
Start hosting images for free
Free account, 10 seconds, no credit card. Unlimited uploads, albums, API access.
Related Articles
ImgLink Discord Bot - Upload, Resize, Compress & More
Add the ImgLink bot to your Discord server. Upload up to 10 images, resize, compress, convert formats, and search 41K+ emojis with simple slash commands.
8 minHow to Embed Images in Markdown
Complete guide to Markdown image syntax. Embed images in GitHub, Reddit, documentation, and blogs with proper formatting.
2 minHow to Embed Images in HTML
Complete guide to embedding images in HTML. From basic img tags to responsive images and lazy loading, with CDN-hosted image examples.
2 minBest Image Hosting for Developers
A developer-focused guide to image hosting. REST API, integration examples, and why ImgLink is the best choice for developer workflows.
3 minUser Profiles
Your ImgLink profile is a public portfolio for your uploaded images. Customize it with a profile picture, cover image, bio, and featured images.
3 min