/api/v1/identity/media-id-from-url
Media ID from URL
Extrahiert die Media-ID aus einer Instagram-Post-URL. Query: url.
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-url" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-url", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-url");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-url",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"url": "https://www.instagram.com/p/DXwe-A0CR7G/",
"media_id": "3886742681296641734",
"shortcode": "DXwe-A0CR7G"
},
"meta": {
"timestamp": "2026-05-04T14:00:09.748Z",
"request_id": "e2720d89-ae00-4742-94ab-3b9ba1465f46"
},
"status": "ok",
"message": "Media ID retrieved successfully",
"success": true
}