Naar de inhoud
GET /api/v1/identity/media-id-from-shortcode

Media ID from shortcode

Wandelt einen Post-Shortcode in die Media-ID um. Query: shortcode.

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/instagram-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-shortcode" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-shortcode", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/instagram-api/api/v1/identity/media-id-from-shortcode");
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-shortcode",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "media_id": "3886742681296641734",
        "shortcode": "DXwe-A0CR7G"
    },
    "meta": {
        "timestamp": "2026-05-04T14:00:09.678Z",
        "request_id": "0a540f8d-6322-430e-8fb2-cfc9a0b72f90"
    },
    "status": "ok",
    "message": "Media ID retrieved successfully",
    "success": true
}