4.3 URL Reputation

Request

Value

Method

GET

URL

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

Summary

Retrieve information about given observable (URL) from CIF server.

Request

URL Parameters

 

Description

Example

:observable

The observable that the user wants to scan (URL encoded)

http%3A%2F%2Fhdfc.pp.ru%2Fpermit%2Fgate.php

Header Parameters

 

Description

Allowed Values

Required

apikey

Gives rights to use the endpoint (API Authentication Mechanisms)

apikey

YES

Response

HTTP Status Codes

Please refer to Status Codes for more information.

Body

Example of a successful request:

{
"address": "http://hdfc.pp.ru/permit/gate.php",
"lookup_results": {
"start_time": "2019-02-28T12:03:49.322Z",
"detected_by": 1,
"sources": [
{
"provider": "openphish.com",
"assessment": "phishing",
"detect_time": "2019-02-21T11:55:45.853232Z",
"update_time": "2019-02-21T11:55:46.597482",
"status": 1
},
{
"provider": "reputation.alienvault.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "danger.rulez.sk",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "feodotracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "malc0de.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "malwaredomainlist.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "phishtank.com",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "spamhaus.org",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
},
{
"provider": "zeustracker.abuse.ch",
"assessment": "",
"detect_time": "",
"update_time": "2019-02-28T12:03:49.504Z",
"status": 0
}
]
}
}

Example of an invalid parameter:

{
"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": "GET",
"hostname": [
"api",
"metadefender",
"com"
],
"path": [
"v4",
"url",
"http%3A%2F%2Fhdfc.pp.ru%2Fpermit%2Fgate.php"
],
"headers": {
"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.end();

Sample code (cURL)

curl -X GET \
https://api.metadefender.com/v4/url/http%3A%2F%2Fhdfc.pp.ru%2Fpermit%2Fgate.php \
-H "apikey: ${APIKEY}"