4.4 Scanning list of URLs

Request

Value

Method

POST

URL

https://api.metadefender.com/v4/url

Throttled

Yes

Summary

Retrieve information about a list of given observables (URLs) from CIF server.

Request

Request body

{
"url": [
"http://hdfc.pp.ru/permit/gate.php",
"http://institutobrf.dev.homolog-vorttex.com/wp-info/ibank-loginpage-action-id02384212031934023200/116e6/template/thankyou.php?session'.e08f47e122c772.'?userid'.9f89f4f88e42b86d76.'?formid'.59d96c7e4511aad583cd06e1e7e1de.'",
"http://217.61.57.110/banquepopulaire.fr/banquepopulaire.fr/d1fe2/info/index.html"
]
}

Header Parameters

 

Description

Allowed Values

Required

apikey

Gives rights to use the endpoint (API Authentication Mechanisms)

apikey

YES

Content-type

Specify the http content type

application/json

YES

Response

HTTP Status Codes

Please refer to Status Codes for more information.

Body

Example of a successful request:

{
"data": [
{
"address": "http://hdfc.pp.ru/permit/gate.php",
"lookup_results": {
"start_time": "2019-02-28T12:04:37.614Z",
"detected_by": 0,
"sources": [
{
"provider": "reputation.alienvault.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.663Z",
"status": 0
},
{
"provider": "danger.rulez.sk",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "feodotracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "malc0de.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "malwaredomainlist.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "phishtank.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "spamhaus.org",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
},
{
"provider": "zeustracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.664Z",
"status": 0
}
]
}
},
{
"address": "http://institutobrf.dev.homolog-vorttex.com/wp-info/ibank-loginpage-action-id02384212031934023200/116e6/template/thankyou.php?session'.e08f47e122c772.'?userid'.9f89f4f88e42b86d76.'?formid'.59d96c7e4511aad583cd06e1e7e1de.'",
"lookup_results": {
"start_time": "2019-02-28T12:04:37.664Z",
"detected_by": 0,
"sources": [
{
"provider": "reputation.alienvault.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "danger.rulez.sk",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "feodotracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "malc0de.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "malwaredomainlist.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "phishtank.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "spamhaus.org",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
},
{
"provider": "zeustracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.698Z",
"status": 0
}
]
}
},
{
"address": "http://217.61.57.110/banquepopulaire.fr/banquepopulaire.fr/d1fe2/info/index.html",
"lookup_results": {
"start_time": "2019-02-28T12:04:37.698Z",
"detected_by": 0,
"sources": [
{
"provider": "reputation.alienvault.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "danger.rulez.sk",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "feodotracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "malc0de.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "malwaredomainlist.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "phishtank.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "spamhaus.org",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
},
{
"provider": "zeustracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:04:37.729Z",
"status": 0
}
]
}
}
]
}

Example of a failed request:

{
"success": false,
"error": {
"code": 400180,
"messages": [
"Invalid format of input. Provide valid url."
]
}
}

Descriptions of response:

success

A boolean value representing whether the request was successfully resolved or not.

detected_by

The number of blacklisted sources.

sources

Source of the feed, usually the domain where the feed is from (e.g., example.com).

Errors

Please refer to Errors for more information.

Sample code (Node.js)

var http = require("https");
 
var options = {
"method": "POST",
"hostname": [
"api",
"metadefender",
"com"
],
"path": [
"v4",
"url",
""
],
"headers": {
"Content-Type": "application/json",
"apikey": process.env.APIKEY
}
};
 
var req = http.request(options, function (res) {
var chunks = [];
 
res.on("data", function (chunk) {
chunks.push(chunk);
});
 
res.on("end", function () {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
});
 
req.write(JSON.stringify({ url:
[ 'http://hdfc.pp.ru/permit/gate.php',
'http://institutobrf.dev.homolog-vorttex.com/wp-info/ibank-loginpage-action-id02384212031934023200/116e6/template/thankyou.php?session\'.e08f47e122c772.\'?userid\'.9f89f4f88e42b86d76.\'?formid\'.59d96c7e4511aad583cd06e1e7e1de.\'',
'http://217.61.57.110/banquepopulaire.fr/banquepopulaire.fr/d1fe2/info/index.html' ] }));
req.end();

Sample code (cURL)

curl -X POST \
https://api.metadefender.com/v4/url/ \
-H 'Content-Type: application/json' \
-H "apikey: ${APIKEY}" \
-d '{
"url": [
"http://hdfc.pp.ru/permit/gate.php",
"http://institutobrf.dev.homolog-vorttex.com/wp-info/ibank-loginpage-action-id02384212031934023200/116e6/template/thankyou.php?session'\''.e08f47e122c772.'\''?userid'\''.9f89f4f88e42b86d76.'\''?formid'\''.59d96c7e4511aad583cd06e1e7e1de.'\''",
"http://217.61.57.110/banquepopulaire.fr/banquepopulaire.fr/d1fe2/info/index.html"
]
}'