5.4 APK-Manifest lookup

Request

Value

Method

GET

URL

https://api.metadefender.com/v4/hash/:hash/apk-manifest

Summary

Lookup the APK manifest analysis of a hash by md5, sha1 or sha256.

When doing a hash lookup, if the body of the response contains the "additional_info" field (array) containing the "apk-manifest", it means that this particular hash has Android Manifest information associated and can be retrieved using this endpoint:

additional_info: ["apk-manifest"]

Request

HTTP URL parameters

 

Description

Example

:hash

The hash value for which you need PE info (MD5/SHA1/SHA256)

D25EBD002F0CCE403F023C0840B2096D2EA34DDC

HTTP 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:

{
"versionCode": 1,
"versionName": "1.0",
"package": "at.markushi.reveal",
"usesPermissions": [],
"permissions": [],
"permissionTrees": [],
"permissionGroups": [],
"instrumentation": null,
"usesSdk": {
"minSdkVersion": 14,
"targetSdkVersion": 20
},
"usesConfiguration": null,
"usesFeatures": [],
"supportsScreens": null,
"compatibleScreens": [],
"supportsGlTextures": [],
"application": {
"theme": "resourceId:0x7f080000",
"label": "resourceId:0x7f070001",
"icon": "resourceId:0x7f020000",
"debuggable": true,
"allowBackup": true,
"activities": [
{
"label": "resourceId:0x7f070001",
"name": "at.markushi.reveal.MyActivity",
"intentFilters": [
{
"actions": [
{
"name": "android.intent.action.MAIN"
}
],
"categories": [
{
"name": "android.intent.category.LAUNCHER"
}
],
"data": []
}
],
"metaData": []
}
],
"activityAliases": [],
"launcherActivities": [
{
"label": "resourceId:0x7f070001",
"name": "at.markushi.reveal.MyActivity",
"intentFilters": [
{
"actions": [
{
"name": "android.intent.action.MAIN"
}
],
"categories": [
{
"name": "android.intent.category.LAUNCHER"
}
],
"data": []
}
],
"metaData": []
}
],
"services": [],
"receivers": [],
"providers": [],
"usesLibraries": []
}
}

Example of a failed request:

{
"success": false,
"error": {
"code": 404001,
"messages": [
"Entity was not found"
]
}
}

Errors

Please refer to Errors for more information.

Sample code (Node.js)

var http = require("https");
 
var options = {
"method": "GET",
"hostname": [
"api-qa-uswest2",
"metadefender",
"com"
],
"path": [
"v4",
"hash",
"D25EBD002F0CCE403F023C0840B2096D2EA34DDC",
"apk-manifest"
],
"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-qa-uswest2.metadefender.com/v4/hash/D25EBD002F0CCE403F023C0840B2096D2EA34DDC/apk-manifest \
-H "apikey: ${APIKEY}"