CINXE.COM
Create and Test DMCA API Requests
<!DOCTYPE html> <html lang="en"> <head id="ctl00_mstrHead"><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title> Create and Test DMCA API Requests </title><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" /><link rel="stylesheet" href="/api/css/style.css" /><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous" /> <script async src="https://www.googletagmanager.com/gtag/js?id=GT-MBTZS27"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'GT-MBTZS27'); gtag('consent', 'default', { 'ad_storage': 'granted', 'ad_user_data': 'granted', 'ad_personalization': 'granted', 'analytics_storage': 'granted' }); gtag('consent', 'default', { 'ad_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'analytics_storage': 'denied', 'region': ['EU', 'US-CA'] }); </script> <style> @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap'); .shell { max-width: 1540px; padding-right: 20px; padding-left: 20px; margin: auto; } footer, .footer-top-section { float: left; } .footer-top-section { background-color: #202020; color: #fff; width: 100%; padding: 1.7rem 0; } .footer-top-section p { text-align: center; font-size: 1.1rem; letter-spacing: 2px; line-height: 25px; font-weight: 700; font-family: 'Open Sans', sans-serif; padding: 0 10px; margin-bottom: 0 !important; } .footer-top-section p span { color: #6BC530; } footer { background-color: #403F3F; color: #fff; padding: 1.5rem 0.8rem 0 0.8rem; width: 100%; font-family: 'Open Sans', sans-serif; } footer h3 { font-size: 1.1rem; font-weight: 700; } footer ul a { color: #fff; } .footer-container { display: flex; flex-wrap: wrap; max-width: 100%; /*justify-content: space-between;*/ } .footer-col, .footer-col-2 { padding: 10px; /*border: 1px solid grey;*/ margin: 5px; } .footer-col-1 { flex-grow: 1; flex-basis: 300px; } .footer-col-2 { flex-grow: 2; flex-basis: 600px; } .footer-col ul { list-style: none; margin-top: 0.7rem; line-height: 2; font-size: 0.9rem; padding: 0; } .footer-col ul li a:hover, footer .footer-container:last-child a:hover { text-decoration: underline !important; color: #fff !important; } .footer-col p a:hover { text-decoration: underline; } @media (max-width: 1024px) { footer .footer-container:first-child .footer-col:first-child { flex-basis: 100%; } } @media (max-width: 768px) { footer .footer-container:first-child .footer-col:nth-child(2), footer .footer-container:first-child .footer-col:nth-child(3) { flex-basis: 125px; } } @media (max-width: 428px) { footer .footer-container:last-child .footer-col-2 span.pp-ts { display: block; margin-top: 1.64rem; } footer .footer-container:last-child .footer-col-2 span.pp-ts a { color: #6BC530 !important; } } footer .footer-container:first-child .footer-col p { margin-top: 0.7rem; } .footer-col p { line-height: 1.4; font-size: 0.9rem; } .footer-col p a { color: #6BC530; font-size: 0.9rem; /*font-weight: 700;*/ } footer .footer-container:last-child a { color: #fff; font-weight: 400; } .social-lnks a, .social-lnks a:hover { text-decoration: none !important; } .footer-col p .facebook-square, .footer-col p .twitter-square { width: 38px; height: 38px; } .footer-col p .facebook-square:hover path { fill: #3b5998; } .footer-col p .twitter-square:hover path { fill: #1DA1F2; } footer .footer-container:last-child { border-top: 1px solid #595959; padding: 0.8rem 0; } /* Badge styles */ #footer-badge a { /*border: 2px solid #fff;*/ font-family: 'Open Sans', sans-serif !important; font-size: 14px !important; text-align: center; padding: 5.33px 10px 5px 10px; font-weight: 700; } #footer-badge a:hover { text-decoration: none !important; } @keyframes badge-animation-l { 0% {background-color:#6BC530; color: #fff;} 20% {background-color:#35bbcb; color: #fff;} 40% {background-color:#9d9fa2; color: #fff;} 60% {background-color:#000000; color: #fff;} 80% {background-color:#bcc0eb; color: #fff;} 100% {background-color:#6BC530; color: #fff;} } @keyframes badge-animation-r { 0% {background-color:#000000; color: #fff;} 20% {background-color:#000000; color: #fff;} 40% {background-color:#000000; color: #fff;} 60% {background-color:#757575; color: #fff;} 80% {background-color:#f5f5f5; color: #b3b3b3;} 100% {background-color:#000000; color: #fff;} } #footer-bl { margin-right: -5px; color: #ffffff; background-color: #6BC530; animation-name: badge-animation-l; animation-duration: 18s; animation-iteration-count: infinite; animation-timing-function:cubic-bezier(1,0,0,1); } #footer-br { color: #ffffff; background-color: #000000; animation-name: badge-animation-r; animation-duration: 18s; animation-iteration-count: infinite; animation-timing-function:cubic-bezier(1,0,0,1); } </style> <link href="/css/cookieconsent.css" rel="stylesheet" as="style" /> <meta property="og:title" content="Create and Test DMCA API Requests" /> <meta property="og:description" content="Easy start to login to the DMCA.com API and start making requests, Create a case, add a proetected item, integrate with you crm and existing system " /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://www.dmca.com/api/" /> <link rel="canonical" href="https://www.dmca.com/api/" /> <meta name="description" content="Easy start to login to the DMCA.com API and start making requests, Create a case, add a proetected item, integrate with you crm and existing system " /><meta name="keywords" content="dmca api, dmca.com api, dmca protected assets api, api testing, dmca endpoint, dmca api token," /></head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-sm bg-theme navbar-dark fixed-top navbar-expand-md"> <a class="navbar-brand" href="#">DMCA API Examples</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#dmcaNavbar"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="dmcaNavbar"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="https://www.dmca.com/"> DMCA </a> </li> <li class="nav-item"> <a class="nav-link" href="https://app.swaggerhub.com/apis-docs/dmca/dmca-api/2.1.1"> DMCA API Doc </a> </li> <!-- Dropdown Public API --> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> Public API </a> <div class="dropdown-menu"> <a class="dropdown-item" href="#login">/login</a> <a class="dropdown-item" href="#register">/register</a> </div> </li> <!-- Dropdown DMCA Takedowns API --> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> DMCA Takedowns </a> <div class="dropdown-menu"> <a class="dropdown-item" href="#createCase">/createCase</a> <a class="dropdown-item" href="#listCases">/listCases</a> <a class="dropdown-item" href="#getCaseById">/getCaseById</a> <a class="dropdown-item" href="#updateCase">/updateCase</a> </div> </li> <!-- Dropdown DMCA DIY Cases API --> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> DMCA DIY Cases </a> <div class="dropdown-menu"> <a class="dropdown-item" href="#createDIYCase">/createDIYCase</a> <a class="dropdown-item" href="#listDIYCases">/listDIYCases</a> <a class="dropdown-item" href="#getDIYCaseById">/getCaseById</a> </div> </li> <!-- Dropdown DMCA Compliance API --> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown"> DMCA Compliance API </a> <div class="dropdown-menu"> <a class="dropdown-item" href="#createComplianceCase">/createComplianceCase</a> <a class="dropdown-item" href="#listComplianceCases">/listComplianceCases</a> <a class="dropdown-item" href="#getComplianceCaseById">/getCaseById</a> </div> </li> </ul> </div> </nav> <!-- End of navigation --> <div class="container main-container"> <h1 class="text-center">DMCA.com API Examples - CRUD OPS DEMOS</h1> <h2>Public API</h2> <p class="text-muted">Common API methods for using DMCA services</p> <!-- Register API --> <div id="register" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Register a new user for dmca.com and this API</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/register</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#registerApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="registerForm"> <div class="form-group"> <label for="FirstName">First Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="FirstName" required placeholder="First Name" name="FirstName" /> </div> <div class="form-group"> <label for="LastName">Last Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="LastName" required placeholder="Last Name" name="LastName" /> </div> <div class="form-group"> <label for="Email">Email: <span class="text-danger small">* Required</span></label> <input type="email" class="form-control" id="Email" required placeholder="Email" name="Email" /> </div> <div class="form-group"> <label for="CompanyName">Company Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="CompanyName" required placeholder="Company Name" name="CompanyName" /> </div> <div class="form-group"> <label for="mpi">MPI: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="mpi" required disabled placeholder="MPI" name="mpi" value="Protection Pro" /> </div> <button type="submit" class="btn btn-success">Register</button> </form> <!-- End of form --> <!-- Output --> <div id="registerOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="registerResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="registerResponseData" name="registerResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="registerOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <!-- Login API --> <div id="login" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Login to the dmca.com API</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/login</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#loginApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="loginForm"> <div class="form-group"> <label for="email">Email: <span class="text-danger small">* Required</span></label> <input type="email" class="form-control" id="email" required placeholder="Enter email" name="email" /> </div> <div class="form-group"> <label for="password">Password: <span class="text-danger small">* Required</span></label> <input type="password" class="form-control" id="password" required placeholder="Enter password" name="password" /> </div> <button type="submit" class="btn btn-success"><i class="fas fa-sign-in-alt"></i> Login</button> <a href="https://www.dmca.com/Protection/signup.aspx?r=apidemo" target="_blank" class="btn btn-outline-secondary">FREE SIGNUP</a> </form> <!-- End of form --> <!-- Output --> <div id="loginOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="loginResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="loginResponseData" name="loginResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="loginOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <h2>DMCA Takedowns Public API</h2> <p class="text-muted">CRUD Operations for DMCA Cases</p> <!-- Create Case --> <div id="createCase" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Creates a new takedown case and returns a case ID</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/createCase</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#createCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="createCaseForm"> <div class="form-group"> <label for="createCaseToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="createCaseToken" required placeholder="Token" name="createCaseToken" /> <small id="createCaseTokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="subject">Subject: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="subject" required placeholder="Subject" name="subject" /> </div> <div class="form-group"> <label for="description">Description: <span class="text-danger small">* Required</span></label> <textarea class="form-control" rows="5" id="description" required name="description"></textarea> </div> <div class="form-group"> <label for="copiedFromUrl">Copied From URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="copiedFromUrl" placeholder="Copied From URL" name="copiedFromUrl" /> </div> <div class="form-group"> <label for="infringingUrl">Infringing URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="infringingUrl" placeholder="Infringing URL" name="infringingUrl" /> </div> <div class="form-group"> <label for="infringingSiteIp">Infringing Site IP: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="infringingSiteIp" placeholder="Infringing Site IP" name="infringingSiteIp" /> </div> <button type="submit" class="btn btn-success"><i class="fas fa-paper-plane"></i> Create</button> </form> <!-- End of form --> <!-- Output --> <div id="createCaseOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="createCaseResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="createCaseResponseData" name="createCaseResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="createCaseOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <!-- List Cases --> <div id="listCases" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a list of account cases</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/listCases</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#listCasesApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="listCasesForm"> <div class="form-group"> <label for="listCasesToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="listCasesToken" required placeholder="Token" name="listCasesToken" /> <small id="tokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="page">Page: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="page" placeholder="Page" name="page" /> <small id="pageHelpBlock" class="form-text text-muted"> Allows for paging through result set, max results is 50 per page. i.e. page=3 </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="listCasesOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="listCasesResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="listCasesResponseData" name="listCasesResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <p id="listCasesOutputErrorText" class="text-danger"></p> <ul class="list-group mt-1 bg-white" id="listCasesOutputText"> </ul> </div> <!-- End of output --> </div> </div> <!-- Get case by ID --> <div id="getCaseById" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a case by its ID, must be owned by the API users account</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/getCaseById</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#getCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="getCaseByIdForm"> <div class="form-group"> <label for="getCaseByIdToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="getCaseByIdToken" required placeholder="Token" name="getCaseByIdToken" /> <small id="tokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="caseId">ID: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="caseId" required placeholder="Case ID" name="caseId" /> <small id="caseIdHelpBlock" class="form-text text-muted"> Case the ID that's returned by listCases or createCase method </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="getCaseByIdOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="getCaseByIdResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="getCaseByIdResponseData" name="getCaseByIdResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <ul class="list-group mt-1 bg-white" id="getCaseByIdOutputText"> </ul> </div> <!-- End of output --> </div> </div> <!-- Update case --> <div id="updateCase" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Updates an existing takedown case and returns a case ID</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/updateCase</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#updateCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="updateCaseForm"> <div class="form-group"> <label for="updateCaseToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="updateCaseToken" required placeholder="Token" name="updateCaseToken" /> <small id="updateCaseTokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="case_id">Case ID: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="case_id" required placeholder="Case ID" name="case_id" /> </div> <div class="form-group"> <label for="status">Status: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="status" required placeholder="Status" name="status" /> </div> <div class="form-group"> <label for="case_subject">Subject: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="case_subject" required placeholder="Subject" name="case_subject" /> </div> <div class="form-group"> <label for="case_description">Description: <span class="text-danger small">* Required</span></label> <textarea class="form-control" rows="5" id="case_description" required name="case_description"></textarea> </div> <div class="form-group"> <label for="case_copiedFromUrl">Copied From URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="case_copiedFromUrl" placeholder="Copied From URL" name="case_copiedFromUrl" /> </div> <div class="form-group"> <label for="case_infringingUrl">Infringing URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="case_infringingUrl" placeholder="Infringing URL" name="case_infringingUrl" /> </div> <div class="form-group"> <label for="case_infringingSiteIp">Infringing Site IP: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="case_infringingSiteIp" placeholder="Infringing Site IP" name="case_infringingSiteIp" /> </div> <div class="form-group"> <label for="priority">Priority: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="priority" placeholder="Priority" name="priority" /> </div> <button type="submit" class="btn btn-success"><i class="fas fa-paper-plane"></i> Update</button> </form> <!-- End of form --> <!-- Output --> <div id="updateCaseOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="updateCaseResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="updateCaseResponseData" name="updateCaseResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="updateCaseOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <h2>DMCA DIY Cases</h2> <p class="text-muted">CRUD Operations for do-it-yourself (DIY cases - not managed or processed)</p> <!-- Create DIY Case --> <div id="createDIYCase" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Creates a new DIY takedown case</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/createDIYCase</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#createDIYCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="createDIYCaseForm"> <div class="form-group"> <label for="createDIYCaseToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="createDIYCaseToken" required placeholder="Token" name="createDIYCaseToken" /> <small id="createDIYCaseTokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="create_diy_case_subject">Subject: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="create_diy_case_subject" required placeholder="Subject" name="create_diy_case_subject" /> </div> <div class="form-group"> <label for="create_diy_case_description">Description: <span class="text-danger small">* Required</span></label> <textarea class="form-control" rows="5" id="create_diy_case_description" required name="create_diy_case_description"></textarea> </div> <div class="form-group"> <label for="create_diy_case_copiedFromUrl">Copied From URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_diy_case_copiedFromUrl" placeholder="Copied From URL" name="create_diy_case_copiedFromUrl" /> </div> <div class="form-group"> <label for="create_diy_case_infringingUrl">Infringing URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_diy_case_infringingUrl" placeholder="Infringing URL" name="create_diy_case_infringingUrl" /> </div> <div class="form-group"> <label for="create_diy_case_infringingSiteIp">Infringing Site IP: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_diy_case_infringingSiteIp" placeholder="Infringing Site IP" name="create_diy_case_infringingSiteIp" /> </div> <div class="form-group"> <label for="type">Type: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="type" placeholder="Type" name="type" value="Business - General" disabled /> </div> <button type="submit" class="btn btn-success"><i class="fas fa-paper-plane"></i> Create</button> </form> <!-- End of form --> <!-- Output --> <div id="createDIYCaseOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="createDIYCaseResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="createDIYCaseResponseData" name="createDIYCaseResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="createDIYCaseOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <!-- List DIY Cases --> <div id="listDIYCases" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a list of DIY cases on your account</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/listDIYCases</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#listDIYCasesApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="listDIYCasesForm"> <div class="form-group"> <label for="listDIYCasesToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="listDIYCasesToken" required placeholder="Token" name="listDIYCasesToken" /> <small id="listDIYCasesHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="diy_page">Page: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="diy_page" placeholder="Page" name="diy_page" /> <small id="diy_pageHelpBlock" class="form-text text-muted"> Allows for paging through result set, max results is 50 per page. i.e. page=3 </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="listDIYCasesOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="listDIYCasesResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="listDIYCasesResponseData" name="listDIYCasesResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <p id="listDIYCasesOutputErrorText" class="text-danger"></p> <ul class="list-group mt-1 bg-white" id="listDIYCasesOutputText"> </ul> </div> <!-- End of output --> </div> </div> <!-- Get DIY case by ID --> <div id="getDIYCaseById" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a case by its ID, must be owned by the API users account</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/getCaseById</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#getDIYCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="getDIYCaseByIdForm"> <div class="form-group"> <label for="getDIYCaseByIdToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="getDIYCaseByIdToken" required placeholder="Token" name="getDIYCaseByIdToken" /> <small id="diyCaseTokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="diyCaseId">ID: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="diyCaseId" required placeholder="Case ID" name="diyCaseId" /> <small id="DIYCaseIdHelpBlock" class="form-text text-muted"> Case the ID that's returned by listCases or createCase method </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="getDIYCaseByIdOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="getDIYCaseByIdResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="getDIYCaseByIdResponseData" name="getDIYCaseByIdResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <ul class="list-group mt-1 bg-white" id="getDIYCaseByIdOutputText"> </ul> </div> <!-- End of output --> </div> </div> <h2>DMCA Compliance API</h2> <p class="text-muted">CRUD Operations for DMCA Compliance</p> <!-- Create Compliance Case --> <div id="createComplianceCase" class="card bg-light text-dark my-3 border-success"> <div class="card-body"> <h4>Creates a new compliance case for site specified</h4> <div class="border border-success text-success rounded py-1 px-2 float-left">POST</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/createComplianceCase</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#createComplianceCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="createComplianceCaseForm"> <div class="form-group"> <label for="submitterEmail">Submitter Email: <span class="text-danger small">* Required</span></label> <input type="email" class="form-control" id="submitterEmail" required placeholder="Submitter Email" name="submitterEmail" /> </div> <div class="form-group"> <label for="submitterFirstName">Submitter First Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="submitterFirstName" required placeholder="Submitter First Name" name="submitterFirstName" /> </div> <div class="form-group"> <label for="submitterLastName">Submitter Last Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="submitterLastName" required placeholder="Submitter Last Name" name="submitterLastName" /> </div> <div class="form-group"> <label for="submitterCompanyName">Submitter Company Name: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="submitterCompanyName" required placeholder="Submitter Company Name" name="submitterCompanyName" /> </div> <div class="form-group"> <label for="create_compliance_case_description">Description: <span class="text-danger small">* Required</span></label> <textarea class="form-control" rows="5" id="create_compliance_case_description" required name="create_compliance_case_description"></textarea> </div> <div class="form-group"> <label for="create_compliance_case_copiedFromUrl">Copied From URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_compliance_case_copiedFromUrl" placeholder="Copied From URL" name="create_compliance_case_copiedFromUrl" /> </div> <div class="form-group"> <label for="create_compliance_case_infringingUrl">Infringing URL: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_compliance_case_infringingUrl" placeholder="Infringing URL" name="create_compliance_case_infringingUrl" /> </div> <div class="form-group"> <label for="create_compliance_case_infringingSiteIp">Infringing Site IP: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="create_compliance_case_infringingSiteIp" placeholder="Infringing Site IP" name="create_compliance_case_infringingSiteIp" /> </div> <div class="form-group"> <label for="siteId">Site Id: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="siteId" placeholder="Site Id" name="siteId" /> </div> <button type="submit" class="btn btn-success"><i class="fas fa-paper-plane"></i> Create</button> </form> <!-- End of form --> <!-- Output --> <div id="createComplianceCaseOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="createComplianceCaseResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="5" id="createComplianceCaseResponseData" name="createComplianceCaseResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <div class="p-3 mt-1 bg-white border"> <p class="mb-0" id="createComplianceCaseOutputText"></p> </div> </div> <!-- End of output --> </div> </div> <!-- List Compliance Cases --> <div id="listComplianceCases" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a list of Compliance cases</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/listComplianceCases</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#listComplianceCasesApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="listComplianceCasesForm"> <div class="form-group"> <label for="listComplianceCasesToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="listComplianceCasesToken" required placeholder="Token" name="listComplianceCasesToken" /> <small id="listComplianceCasesHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="compliance_page">Page: <span class="text-muted small">(Optional)</span></label> <input type="text" class="form-control" id="compliance_page" placeholder="Page" name="compliance_page" /> <small id="compliance_pageHelpBlock" class="form-text text-muted"> Allows for paging through result set, max results is 50 per page. i.e. page=3 </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="listComplianceCasesOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="listComplianceCasesResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="listComplianceCasesResponseData" name="listComplianceCasesResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <p id="listComplianceCasesOutputErrorText" class="text-danger"></p> <ul class="list-group mt-1 bg-white" id="listComplianceCasesOutputText"> </ul> </div> <!-- End of output --> </div> </div> <!-- Get Compliance case by ID --> <div id="getComplianceCaseById" class="card bg-light text-dark my-3 border-primary"> <div class="card-body"> <h4>Gets a case by its ID, must be owned by the API users account</h4> <div class="border border-primary text-primary border-primary rounded py-1 px-2 float-left">GET</div> <span class="lead ml-2 text-secondary">https://api.dmca.com/getCaseById</span> <button class="btn btn-outline-secondary btn-sm float-right" data-toggle="modal" data-target="#getComplianceCaseApiCodeModal"><i class="fas fa-code"></i> Code Snippet</button> <!-- Form --> <form action="#" class="border p-3 mt-2 bg-white" id="getComplianceCaseByIdForm"> <div class="form-group"> <label for="getComplianceCaseByIdToken">Token: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control token" id="getComplianceCaseByIdToken" required placeholder="Token" name="getComplianceCaseByIdToken" /> <small id="complianceCaseTokenHelpBlock" class="form-text text-muted"> Security token from Login method or from API section of DMCA.com website </small> </div> <div class="form-group"> <label for="complianceCaseId">ID: <span class="text-danger small">* Required</span></label> <input type="text" class="form-control" id="complianceCaseId" required placeholder="Case ID" name="complianceCaseId" /> <small id="ComplianceCaseIdHelpBlock" class="form-text text-muted"> Case the ID that's returned by listCases or createCase method </small> </div> <button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Submit</button> </form> <!-- End of form --> <!-- Output --> <div id="getComplianceCaseByIdOutput" style="display: none;"> <h4 class="mt-2 float-left">Response data</h4> <button class="btn btn-outline-secondary btn-sm float-right my-2" id="getComplianceCaseByIdResponseDataBtn"><i class="fas fa-copy"></i> Copy Response Data</button> <div class="form-group"> <textarea class="form-control" rows="10" id="getComplianceCaseByIdResponseData" name="getComplianceCaseByIdResponseData"></textarea> </div> <h4 class="mt-2">Output</h4> <ul class="list-group mt-1 bg-white" id="getComplianceCaseByIdOutputText"> </ul> </div> <!-- End of output --> </div> </div> </div> <!-- Code Snippets Modals --> <!-- Register API modal --> <div class="modal fade" id="registerApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Register API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="registerApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="registerApiCodeSnippet"> const data = { FirstName: document.getElementById("FirstName"), LastName: document.getElementById("LastName"), Email: document.getElementById("Email"), CompanyName: document.getElementById("CompanyName"), mpi: document.getElementById("mpi") }; fetch("https://api.dmca.com/register", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyRegisterApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Login API modal --> <div class="modal fade" id="loginApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Login API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="loginApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="loginApiCodeSnippet"> const data = { email: document.getElementById("email"), password: document.getElementById("password"), }; fetch("https://api.dmca.com/login", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyLoginApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Create Case API modal --> <div class="modal fade" id="createCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Create Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="createCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="createCaseApiCodeSnippet"> const token = document.getElementById("token"); const data = { subject: document.getElementById("subject"), description: document.getElementById("description"), copiedFromUrl: document.getElementById("copiedFromUrl"), infringingUrl: document.getElementById("infringingUrl"), infringingSiteIp: document.getElementById("infringingSiteIp") }; fetch("https://api.dmca.com/createCase", { method: "POST", headers: { "Content-Type": "application/json", "Token": token, }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data.d); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyCreateCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- List Cases API modal --> <div class="modal fade" id="listCasesApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - List Cases API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="listCasesApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="listCasesApiCodeSnippet"> const token = document.getElementById("token"); const page = document.getElementById("page"); let url = "https://api.dmca.com/listCases"; if(page != "") { url += "?page=" + page; } fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyListCasesApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Get Case API modal --> <div class="modal fade" id="getCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Get Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="getCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="getCaseApiCodeSnippet"> const token = document.getElementById("token"); const caseId = document.getElementById("caseId"); let url = "https://api.dmca.com/getCaseById?id=" + caseId; fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyGetCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Update Case API modal --> <div class="modal fade" id="updateCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Update Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="updateCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="updateCaseApiCodeSnippet"> const token = document.getElementById("token"); const data = { case_id: document.getElementById("case_id"), status: document.getElementById("status"), subject: document.getElementById("subject"), description: document.getElementById("description"), copiedFromUrl: document.getElementById("copiedFromUrl"), infringingUrl: document.getElementById("infringingUrl"), infringingSiteIp: document.getElementById("infringingSiteIp"), priority: document.getElementById("priority") }; fetch("https://api.dmca.com/updateCase", { method: "POST", headers: { "Content-Type": "application/json", "Token": token, }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data.d); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyUpdateCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Create DIY Case API modal --> <div class="modal fade" id="createDIYCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Create DIY Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="createDIYCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="createDIYCaseApiCodeSnippet"> const token = document.getElementById("token"); const data = { subject: document.getElementById("subject"), description: document.getElementById("description"), copiedFromUrl: document.getElementById("copiedFromUrl"), infringingUrl: document.getElementById("infringingUrl"), infringingSiteIp: document.getElementById("infringingSiteIp"), type: document.getElementById("type") }; fetch("https://api.dmca.com/createDIYCase", { method: "POST", headers: { "Content-Type": "application/json", "Token": token, }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data.d); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyCreateDIYCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- List DIY Cases API modal --> <div class="modal fade" id="listDIYCasesApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - List DIY Cases API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="listDIYCasesApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="listDIYCasesApiCodeSnippet"> const token = document.getElementById("token"); const page = document.getElementById("page"); let url = "https://api.dmca.com/listDIYCases"; if(page != "") { url += "?page=" + page; } fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyListDIYCasesApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Get DIY Case API modal --> <div class="modal fade" id="getDIYCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Get DIY Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="getDIYCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="getDIYCaseApiCodeSnippet"> const token = document.getElementById("token"); const caseId = document.getElementById("caseId"); let url = "https://api.dmca.com/getCaseById?id=" + caseId; fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyGetDIYCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Create Compliance Case API modal --> <div class="modal fade" id="createComplianceCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Create Compliance Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="createComplianceCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="createComplianceCaseApiCodeSnippet"> const data = { submitterEmail: document.getElementById("submitterEmail"), submitterFirstName: document.getElementById("submitterFirstName"), submitterLastName: document.getElementById("submitterLastName"), submitterCompanyName: document.getElementById("submitterCompanyName"), description: document.getElementById("description"), copiedFromUrl: document.getElementById("copiedFromUrl"), infringingUrl: document.getElementById("infringingUrl"), infringingSiteIp: document.getElementById("infringingSiteIp"), siteId: document.getElementById("siteId") }; fetch("https://api.dmca.com/createComplianceCase", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data), }) .then((response) => response.json()) .then((data) => { console.log(data.d); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyCreateComplianceCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- List Compliance Cases API modal --> <div class="modal fade" id="listComplianceCasesApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - List Compliance Cases API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="listComplianceCasesApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="listComplianceCasesApiCodeSnippet"> const token = document.getElementById("token"); const page = document.getElementById("page"); let url = "https://api.dmca.com/listComplianceCases"; if(page != "") { url += "?page=" + page; } fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyListComplianceCasesApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- Get Compliance Case API modal --> <div class="modal fade" id="getComplianceCaseApiCodeModal"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content bg-dark text-white"> <!-- Modal Header --> <div class="modal-header border-0 pb-0"> <h4 class="modal-title">Sample Code Snippet - Get Compliance Case API</h4> <button type="button" class="close text-danger" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p class="text-success" id="getComplianceCaseApiCodeSnippetAlert" style="display: none;"> Code Snippet Copied </p> <pre class="text-warning" id="getComplianceCaseApiCodeSnippet"> const token = document.getElementById("token"); const caseId = document.getElementById("caseId"); let url = "https://api.dmca.com/getCaseById?id=" + caseId; fetch(url, { method: "GET", headers: { "Content-Type": "application/json", "Token": token, }, }) .then((response) => response.json()) .then((data) => { console.log(data); }) .catch((error) => { console.error("Error: ", error); }); </pre> </div> <!-- Modal footer --> <div class="modal-footer border-0 pt-0"> <button type="button" class="btn btn-light btn-sm text-left" id="copyGetComplianceCaseApiCodeSnippet"><i class="fas fa-copy"></i> Copy Code Snippet</button> <button type="button" class="btn btn-light btn-sm float-right" data-dismiss="modal"><i class="fas fa-times"></i> Close</button> </div> </div> </div> </div> <!-- End of Code Snippets Modals --> <!-- DMCA.com meta --> <script> if("".length > 0){ window.APIToken = ""; } else { window.APIToken = null; } </script> <!-- Footer --> <div class="footer-top-section"> <div class="shell"> <p><span id="no-of-items-now">495,593,249 Items</span> Protected & <span>90 Million Badges</span> Delivered Daily!</p> </div> </div> <footer> <div class="shell"> <div class="footer-container"> <div class="footer-col footer-col-1"> <h3>About DMCA.com</h3> <p>DMCA.com is the one stop shop for all your DMCA & internet copyright needs. It provides customers a variety of tools to help detect and defend against online theft of content.</p> <p class="about-us"><a href="/About-Us?r=msft">Learn more about DMCA.com</a></p> <p class="social-lnks"> <a href="https://www.facebook.com/DMCAtakedown/"> <svg xmlns="http://www.w3.org/2000/svg" class="facebook-square" viewBox="0 0 448 512"><path fill="#fff" d="M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"/></svg> </a> <a href="https://twitter.com/dmcatakedown"> <svg xmlns="http://www.w3.org/2000/svg" class="twitter-square" viewBox="0 0 448 512"><path fill="#fff" d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"/></svg> </a> </p> </div> <div class="footer-col footer-col-1"> <h3>Services</h3> <ul> <li><a href="/Takedowns.aspx?r=msft">Takedowns</a></li> <li><a href="/ProtectionPro.aspx?r=msft">Protection Pro</a></li> <li><a href="/badges.aspx?r=msft">Badges</a></li> <li><a href="/WordPress/default.aspx?r=msft">Wordpress Plugin</a></li> <li><a href="/Toolkit/Signup2.aspx?r=msft">Signup/Upgrade</a></li> <li><a href="/Monitoring.aspx?r=msft">Monitoring</a></li> <li><a href="/api/?r=msft">DMCA API</a></li> </ul> </div> <div class="footer-col footer-col-1"> <h3>Resources</h3> <ul> <li><a href="/Solutions?r=msft">Knowledgebase</a></li> <li><a href="/Questions.aspx?r=msft">Ask a Question</a></li> <li><a href="/Contact-Us.aspx?r=msft">Contact</a></li> <li><a href="/About-Us?r=msft">About</a></li> <li><a href="/Lawyers.aspx?r=msft">Law Firm Assistance</a></li> <li><a href="/Research/?r=msft">Research</a></li> <li><a href="/articles/?r=msft">Articles</a></li> </ul> </div> </div> <div class="footer-container"> <div class="footer-col footer-col-1"> <p id="footer-badge"> <a href="/badges.aspx?r=msft" id="footer-bl">DMCA</a> <a href="/badges.aspx?r=msft" id="footer-br">PROTECTED</a> </p> </div> <div class="footer-col footer-col-2"> <p>© 2000 - 2024 Digital Millennium Copyright Act Services Ltd. All Rights Reserved. | DMCA.com <span class="pp-ts"><a href="/Privacy.aspx">Privacy Policy</a> | <a href="/TermsOfService?r=msft">Terms of Service</a></span></p> </div> </div> </div> </footer> <!-- End of footer --> <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <script src="js/main.js"></script> <script defer type="module" src="/js/cookieconsent.js"></script> <script> $(document).ready(function(){ const baseItems = 462980000; const date1 = new Date('05/27/2023'); const date2 = new Date(); const diffTime = Math.abs(date2 - date1); const diffSec = Math.ceil(diffTime / 1000); const newItemsNow = Math.ceil(diffSec * (10/14)); var totalNow = baseItems + newItemsNow; $("#no-of-items-now").html(new Intl.NumberFormat('decimal').format(totalNow) + " Items"); setInterval(function() { addNewItemsCount(); }, 5000); function addNewItemsCount() { totalNow = Math.ceil(totalNow + (50/14)); $("#no-of-items-now").html(new Intl.NumberFormat('decimal').format(totalNow) + " Items"); } }); </script> </body> </html>