MG Share

API
Endpoint
POST /?api=1
Content type
application/x-www-form-urlencoded or multipart/form-data
Required
url target URL

Optional fields

name
Custom link name. Leave blank to auto-generate one.
password
Password required before redirect.
permanent
Set to 1, true, yes, or on to keep the link after first use.
response
Set to json for a JSON response.

Responses

Default success
text/plain response body containing only the short link.
JSON success
{"link":"https://...","name":"example","target":"https://...","permanent":true}
Error
application/json response with an error message.
curl -F "name=example" -F "url=https://example.com/some/path" -F "permanent=1" -F "response=json" "https://share.mad-gamer.com/?api=1"