Media
Verify Media URL Exists
Verify that the media file exists
POST
Verify that the media file exists when uploaded. It should be used in conjunction with the /media/uploadUrl endpoint.
Header Parameters
Verify Media URL Exists
POST https://api.ayrshare.com/api/media/urlExists
Verify that the media file exists when uploaded. It should be used in conjunction with the /media/uploadUrl endpoint.
You will also receive the contentType of the media file.
A HEAD request is made to the media URL to verify it exists.
Please be sure the hosting provider is not blocking the HEAD request.
This endpoint checks reachability only. It does not run the deeper media probe used before publishing, validate the file’s contents or platform requirements, or prove that a social network’s crawler can download the media. A successful response can therefore still be followed by a media-validation error during /post.
Body Parameters
string
required
URL of the media to verify exists.