Android App Links & iOS Universal Links Validator
Validate assetlinks.json and apple-app-site-association: HTTPS, no redirects, JSON shape, package / SHA-256 / app ID, and which paths open the app.
Result
Press “Run” to see the result.
Deep links silently fall back to the browser when the association files are wrong. Give a domain and the API fetches https://<domain>/.well-known/assetlinks.json (Android App Links) and /.well-known/apple-app-site-association plus the legacy root location (iOS Universal Links), then checks what the operating systems check: HTTPS, status 200, no redirects, Content-Type: application/json, size (AASA at most 128 KB) and valid JSON.
Android: each statement needs relation delegate_permission/common.handle_all_urls and a target with namespace: android_app, package_name and upper-case colon-separated SHA-256 certificate fingerprints. Pass package and sha256 (colons optional) to confirm your app and signing key are listed (with Play App Signing, use the app signing key from Play Console). iOS: applinks.details with appIDs (Team ID + bundle ID) and components (iOS 13+) or legacy paths, plus webcredentials and appclips. Pass app_id (or team_id + bundle_id) and paths to see whether each URL opens the app: the matcher follows Apple's rules (*, ?, exclude, query dictionaries, # fragments, caseSensitive, percentEncoded, substitutionVariables and NOT paths), first matching rule wins.
cdn=1 also fetches Apple's CDN copy (app-site-association.cdn-apple.com), which devices actually use, and tells you whether it is still stale. You can validate files before deploying by posting assetlinks and / or aasa contents instead of a domain. When package, fingerprints or app IDs are given, the response includes a correct suggested file to copy.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/app-links-check" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"ios","app_id":"ABCDE12345.vn.example.shop","paths":"/product/123,/admin/login","aasa":{"applinks":{"details":[{"appIDs":["ABCDE12345.vn.example.shop"],"components":[{"/":"/admin/*","exclude":true},{"/":"/product/*"}]}]}}}'const res = await fetch('https://apibox.io.vn/v1/app-links-check', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"platform": "ios",
"app_id": "ABCDE12345.vn.example.shop",
"paths": "/product/123,/admin/login",
"aasa": {
"applinks": {
"details": [
{
"appIDs": [
"ABCDE12345.vn.example.shop"
],
"components": [
{
"/": "/admin/*",
"exclude": true
},
{
"/": "/product/*"
}
]
}
]
}
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/app-links-check",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"platform": "ios", "app_id": "ABCDE12345.vn.example.shop", "paths": "/product/123,/admin/login", "aasa": {"applinks": {"details": [{"appIDs": ["ABCDE12345.vn.example.shop"], "components": [{"/": "/admin/*", "exclude": True}, {"/": "/product/*"}]}]}}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/app-links-check');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"platform":"ios","app_id":"ABCDE12345.vn.example.shop","paths":"/product/123,/admin/login","aasa":{"applinks":{"details":[{"appIDs":["ABCDE12345.vn.example.shop"],"components":[{"/":"/admin/*","exclude":true},{"/":"/product/*"}]}]}}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Why does iOS still use my old file?
iOS downloads apple-app-site-association from Apple's CDN, not from your server. The CDN refreshes on its own schedule (often within a day); cdn=1 shows the copy it serves.
Where are Android path rules?
In the intent filters of AndroidManifest.xml. assetlinks.json only proves that the domain trusts your app; each host in the intent filters needs its own file.
Does a redirect from example.com to www break it?
Yes. Both platforms require the file at the exact host with status 200 and no redirect, so serve it on every host you link to.