Example of java script code

Find here an example of Java script code you can generate in order to use our API service.
Read more information on How To Use API page and purchase a suitable subscription.
Check the single email address
                var settings = {
                  "async": true,
                  "crossDomain": true,
                  "url": "https://www.emailmagnifier.com/api/v1.0/analizeemail",
                  "method": "POST",
                  "headers": {
                    "content-type": "application/json",
                  },
                  "data": "{'Email': 'example@server.com',
                            'AnalyzeAllMXRecords': true,
                            'TestPosibility': true,
                            'AuthorizationKey': 'a1a1a1a1-b2b2-c3c3-d4d4-e5e5e5e5e5e5'}"
                }

                $.ajax(settings).done(function (response) {
                  console.log(response);
                });
            
Check many email addresses
                var settings = {
                  "async": true,
                  "crossDomain": true,
                  "url": "https://www.emailmagnifier.com/api/v1.0/analizeemails",
                  "method": "POST",
                  "headers": {
                    "content-type": "application/json",
                  },
                  "data": "{'Emails': ['example@server.com','example1@server.com','example2@server.com'],
                            'ResultURL' : 'http://www.returnurl.com',
                            'AnalyzeAllMXRecords': false,
                            'TestPosibility': true,
                            'AuthorizationKey': 'a1a1a1a1-b2b2-c3c3-d4d4-e5e5e5e5e5e5'}"
                }

                $.ajax(settings).done(function (response) {
                  console.log(response);
                });