Get App Permissions
curl --request GET \
--url https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"result_count": 123,
"permission_groups": [
{
"group": "<string>",
"icon_url": "<string>",
"permissions": [
"<string>"
]
}
]
}Endpoints
Get App Permissions
Every Android permission an app declares, grouped the way Google Play groups them.
GET
/
v1
/
google-play
/
apps
/
{app_id}
/
permissions
Get App Permissions
curl --request GET \
--url https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/google-play/apps/{app_id}/permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"result_count": 123,
"permission_groups": [
{
"group": "<string>",
"icon_url": "<string>",
"permissions": [
"<string>"
]
}
]
}Every Android permission the app declares, grouped as Play groups them. Cheaper
than a full detail fetch because it reads a single Play RPC.
Credits: 3
Authorization
string
required
Your ScrapeBadger API key.
Path Parameters
string
required
Android package id, e.g.
com.whatsapp.Query Parameters
string
default:"en"
Play content language (
hl) — sets the language of the group and permission
labels.Response
string
integer
Permission groups returned.
PermissionGroup[]
Example
curl "https://scrapebadger.com/v1/google-play/apps/com.whatsapp/permissions?lang=en" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://scrapebadger.com/v1/google-play/apps/com.whatsapp/permissions?lang=en",
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { permission_groups } = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/google-play/apps/com.whatsapp/permissions",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"lang": "en"},
)
groups = res.json()["permission_groups"]
Response
{
"app_id": "com.whatsapp",
"result_count": 3,
"permission_groups": [
{
"group": "Camera",
"icon_url": "https://play-lh.googleusercontent.com/perm-camera",
"permissions": ["take pictures and videos"]
},
{
"group": "Location",
"icon_url": "https://play-lh.googleusercontent.com/perm-location",
"permissions": ["approximate location (network-based)", "precise location (GPS and network-based)"]
},
{
"group": "Other",
"icon_url": "https://play-lh.googleusercontent.com/perm-other",
"permissions": ["view network connections", "full network access", "run at startup"]
}
]
}
The same tree is already on the
app detail response as
permissions — use this route when you want permissions alone and do not
want to pay 5 credits for the whole record.⌘I

