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

Shortcode from media ID

Wandelt eine Media-ID in den Post-Shortcode um. Query: media_id.

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

Voorbeeldrespons

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

{
    "data": {
        "media_id": "3886742681296641734",
        "post_url": "https://www.instagram.com/p/DXwe-A0CR7G/",
        "reel_url": "https://www.instagram.com/reel/DXwe-A0CR7G/",
        "shortcode": "DXwe-A0CR7G"
    },
    "meta": {
        "timestamp": "2026-05-04T14:00:09.609Z",
        "request_id": "a2007f9c-93ea-4fbf-984b-d136ca5fb8aa"
    },
    "status": "ok",
    "message": "Media shortcode retrieved successfully",
    "success": true
}