View Drop
View any kind of drop.
Retrieve the details of a specific drop using its dropId. For private drops, include the password.
POST
Endpoint
https://droplink.cc/api/v1/drop/view
Arguments
dropId
string
Required
The main id called dropId
of your Drop. Depending on the type of drop, it can be a customUrl
or randomly generated. Check your browser for /drop/:dropId
while viewing a drop.
password
string
Optional
Max Characters: 6
Password for your private
drop. Only works if the visibility
is set to private
. Required in case of private
drop.
Sample Request
const url = "https://droplink.cc/api/v1/drop/view";
const dropData = {
dropId: "1df22228-f520-4433-8bcc-bde6b7b499fe",
password: "123123"
};
try {
const response = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
},
body: JSON.stringify(dropData)
});
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
const responseData = await response.json();
console.log("Drop created successfully:", responseData);
} catch (error) {
console.error("Error creating drop:", error);
}
Sample Response
200
{
"title": "A good title",
"content": "Main Content",
"createdAt": "2000-00-00T00:00:00.000Z",
"viewCount": 500
}