Many times people want to do things with us through an API and we think that's great.
The Basic API Functions:
Register - registers a new dmca.com user. Syntax --> string Register(string FirstName, string LastName, string Email, string CompanyName)
Login - logs in and return an auth token. Syntax --> string Login(string email, string Password
CreateCase - creates a dmca takedown case. Syntax --> string CreateCase(string subject, string description, string status, string CopiedFromUrl, string InfringingUrl, string InfringingSiteIp)
UpdateCase - update a dmca takedown case. Syntax --> string UpdateCase(string case_id, string subject, string description, string status, string copiedFromUrl, string infringingUrl, string infringingSiteIp, string priority)
ListCases - lists the dmca takedown cases on an account. Syntax --> string ListCases()
GetCaseByID - gets a case by id. Syntax --> string GetCaseById(string case_id)
Any registered DMCA.com user can access some basic functions through our API. https://github.com/dmca-services/api
API JS Example:
function newRegistration(firstName, lastName, companyName, email, callBack) {
var data = {
"FirstName": firstName,
"LastName": lastName,
"CompanyName": companyName,
"Email": email
};
$.ajax({
type: "POST",
contentType: 'application/json; charset=utf-8',
url: "https://api.dmca.com/register",
data: JSON.stringify(data),
dataType: "json",
crossDomain: true,
context: this,
success: function (response) {
if (typeof callBack !== 'undefined') { callBack(response); }
}
});
}
In order to avoid spamming we have a 100 executions per day limit on most of our API functions. If you'd like to have this limit increased you'll need to send an email to api@dmca.com and just let us know what you're up to and how much throughput you need.
If you have any further questions about these features, send an email to api@dmca.com and we will be happy to answer.
Other FAQ's that will interest you: