YourImageShare YourImageShare API
The YourImageShare API API from YourImageShare, for yourimageshare api.
The YourImageShare API API from YourImageShare, for yourimageshare api.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/yourimageshare-com:yourimageshare-com-yourimageshare-api-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: YourImageShare API
version: 1.0.0
description: 'Free JSON/REST API for YourImageShare - upload, list, and delete image/video files. Every request needs an API key. Official client libraries: JavaScript/TypeScript (`yourimageshare` on npm), Python (`yourimageshare` on PyPI), an MCP server (`yourimageshare-mcp` on npm, also hosted at https://yourimageshare.com/mcp - streamable HTTP, uploads work there without an API key) for AI agents, and a Discord bot.'
termsOfService: https://yourimageshare.com/about/terms-and-conditions
contact:
url: https://yourimageshare.com/contact
license:
name: MIT
url: https://github.com/yourimageshare/yourimageshare/blob/main/LICENSE
servers:
- url: https://yourimageshare.com/api
description: Production
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: YourImageShare API
paths:
/:
post:
operationId: uploadFile
summary: Upload a file
description: Upload an image or video and get back a permanent direct file URL, a page link, a thumbnail, dimensions and size. Accepts JPG, PNG, GIF, WEBP, AVIF, BMP, TIFF, HEIC or HEIF images, or MP4, WEBM, AVI, MOV, M4V, MKV, MPEG, WMV, FLV or 3GP video, up to 200MB. Send the file in "uploads" (up to 100MB, the per-request limit of our network), a public link in "url" (the server downloads it), or an "upload_id" for a file sent in pieces to POST /chunk. Uploading the exact same file again from the same account returns the existing upload with duplicate=true.
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
description: 'Send one of: "uploads" (a file, up to 100MB), "url" (a link, up to 200MB) or "upload_id" (pieces sent to POST /chunk, up to 200MB).'
properties:
uploads:
type: string
format: binary
description: The file to upload, up to 100MB. Required unless "url" or "upload_id" is sent.
url:
type: string
format: uri
maxLength: 2048
description: A public http(s) link to an image or video, downloaded by the server (up to 200MB).
expires_in:
type: integer
minimum: 60
maximum: 31536000
description: Auto-delete this upload after N seconds (60 to 31,536,000 = 1 year). Omit for a permanent upload.
expires_at:
type: string
description: 'Auto-delete at this exact moment instead: ISO 8601 date-time with offset (e.g. 2026-12-24T18:00:00+01:00) or unix seconds, 1 minute to 1 year ahead. Overrides expires_in.'
upload_id:
type: string
pattern: ^[a-f0-9]{32}$
description: 'Finish a chunked upload: the id used for its pieces on POST /chunk (up to 200MB).'
filename:
type: string
maxLength: 255
description: 'With upload_id: the original file name.'
allow_duplicate:
type: boolean
description: Store a new copy even if this account already uploaded the exact same file.
keep_original:
type: boolean
description: Keep the image exactly as uploaded (JPG/PNG over 1 MB are otherwise optimized to WebP). Metadata such as GPS is removed either way.
visibility:
type: string
enum:
- private
- unlisted
- public
default: unlisted
description: 'unlisted: file and page work for anyone with the link, not listed. private: file only - the page link sends everyone but the owner to the file. public: listed and indexable.'
title:
type: string
maxLength: 90
description:
type: string
maxLength: 500
responses:
'200':
description: Upload succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/UploadResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: This account or IP is currently banned from uploading.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'413':
description: The request body is over 100MB (rejected by the network edge). Send the file in pieces (POST /chunk) or as a "url".
'422':
description: Validation failed - no file or link, unsupported format, oversized dimensions, a url that could not be downloaded, or content previously flagged.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
$ref: '#/components/responses/ServerError'
tags:
- YourImageShare API
get:
operationId: listUploads
summary: List your uploads
description: List your uploads, newest first, 50 per page.
parameters:
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListResponse'
'401':
$ref: '#/components/responses/Unauthorized'
tags:
- YourImageShare API
/{id}:
delete:
operationId: deleteUpload
summary: Delete an upload
description: Permanently delete one of your uploads by id.
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The upload id, from the `upload` or `list` response.
responses:
'200':
description: Deleted.
content:
application/json:
schema:
type: object
properties:
type:
type: string
const: success
msg:
type: string
const: Deleted.
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: No upload with that id belongs to this account.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- YourImageShare API
get:
operationId: getUpload
summary: Get one upload
description: One of your uploads (full API key).
responses:
'200':
description: The upload.
content:
application/json:
schema:
type: object
properties:
type:
type: string
enum:
- success
data:
$ref: '#/components/schemas/Upload'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: No such upload on this account.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The upload id, from the `upload` or `list` response.
tags:
- YourImageShare API
patch:
operationId: updateUpload
summary: Change an upload
description: Change visibility, title or description of one of your uploads (full API key). An empty title/description clears it.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
visibility:
type: string
enum:
- private
- unlisted
- public
default: unlisted
description: 'unlisted: file and page work for anyone with the link, not listed. private: file only - the page link sends everyone but the owner to the file. public: listed and indexable.'
title:
type: string
maxLength: 90
description:
type: string
maxLength: 500
application/json:
schema:
type: object
properties:
visibility:
type: string
enum:
- private
- unlisted
- public
default: unlisted
description: 'unlisted: file and page work for anyone with the link, not listed. private: file only - the page link sends everyone but the owner to the file. public: listed and indexable.'
title:
type: string
maxLength: 90
description:
type: string
maxLength: 500
responses:
'200':
description: The upload.
content:
application/json:
schema:
type: object
properties:
type:
type: string
enum:
- success
data:
$ref: '#/components/schemas/Upload'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: No such upload on this account.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Nothing to change, or an invalid value.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The upload id, from the `upload` or `list` response.
tags:
- YourImageShare API
components:
schemas:
UploadResponse:
type: object
properties:
type:
type: string
const: success
msg:
type: string
const: success
data:
$ref: '#/components/schemas/Upload'
Upload:
type: object
properties:
id:
type: string
description: Unique identifier for this upload. Pass to the delete endpoint to remove it.
type:
type: string
enum:
- image
- video
path:
type: string
description: The storage URL of the file as uploaded. It can change shortly afterwards when the file is converted (WebP/MP4) - store src instead.
src:
type: string
description: 'Permanent direct file URL: always opens the current file. Use it for <img>/<video> src and store it.'
direct:
type: string
description: The shareable page URL (title, description, comments, share buttons).
expires_at:
type:
- string
- 'null'
format: date-time
thumb:
type:
- string
- 'null'
format: uri
description: 'A 280px wide WebP thumbnail (a video: its first frame), or null.'
width:
type:
- integer
- 'null'
description: Display width in pixels, or null if unknown.
height:
type:
- integer
- 'null'
description: Display height in pixels, or null if unknown.
thumbhash:
type:
- string
- 'null'
description: 'ThumbHash placeholder (base64, see github.com/evanw/thumbhash): decode it to show a blurred preview while the file loads. Null for audio and some older uploads.'
size:
type:
- integer
- 'null'
description: File size in bytes as stored.
locked:
type: boolean
description: True if the upload is password-protected.
duplicate:
type: boolean
description: 'Upload response only: true if this account had already uploaded the exact same file and that upload was returned instead of a new one.'
visibility:
type: string
enum:
- private
- unlisted
- public
title:
type:
- string
- 'null'
description:
type:
- string
- 'null'
delete_url:
type: string
format: uri
description: 'Upload response only (new uploads, not duplicates): a private link that deletes the upload without an API key. Shown once.'
required:
- id
- type
- path
- src
- direct
- expires_at
ListResponse:
type: object
properties:
type:
type: string
const: success
data:
type: array
items:
$ref: '#/components/schemas/ListedUpload'
meta:
type: object
properties:
current_page:
type: integer
last_page:
type: integer
total:
type: integer
ErrorResponse:
type: object
properties:
type:
type: string
const: error
errors:
type: string
ListedUpload:
allOf:
- $ref: '#/components/schemas/Upload'
- type: object
properties:
title:
type:
- string
- 'null'
created_at:
type: string
format: date-time
required:
- title
- created_at
responses:
Unauthorized:
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ServerError:
description: Server error, please try again.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: X-API-Key
description: Your API key or upload-only key, from the API tab at https://yourimageshare.com/my-account. The full API key can upload, list, and delete. The upload-only key can only upload (list/delete return 401 for it) - use it anywhere the value ends up visible to others, and the full key only in trusted server-side code.
ApiKeyQuery:
type: apiKey
in: query
name: key
description: Fallback for the X-API-Key header (same key types accepted), kept for older integrations. If both are present, the header wins.
externalDocs:
description: Full human-readable API reference
url: https://yourimageshare.com/about/api