Zum Inhalt springen
GET /api/v1/locations/media

Media by location

Posts an einer Location. Query: location_id, q, count.

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/instagram-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 10,
        "media": [
            {
                "code": "DOwclCFjO3B",
                "link": "https://www.instagram.com/p/DOwclCFjO3B/",
                "shortcode": "DOwclCFjO3B",
                "location_id": "6889842"
            },
            {
                "code": "DLA8XU6sMqK",
                "link": "https://www.instagram.com/p/DLA8XU6sMqK/",
                "shortcode": "DLA8XU6sMqK",
                "location_id": "6889842"
            },
            {
                "code": "DRe1O0NAuZ5",
                "link": "https://www.instagram.com/p/DRe1O0NAuZ5/",
                "shortcode": "DRe1O0NAuZ5",
                "location_id": "6889842"
            },
            {
                "code": "CWGh8rJILhb",
                "link": "https://www.instagram.com/p/CWGh8rJILhb/",
                "shortcode": "CWGh8rJILhb",
                "location_id": "6889842"
            },
            {
                "code": "DL2W9a1xM8h",
                "link": "https://www.instagram.com/p/DL2W9a1xM8h/",
                "shortcode": "DL2W9a1xM8h",
                "location_id": "6889842"
            },
            {
                "code": "CM1XCSFhjHq",
                "link": "https://www.instagram.com/p/CM1XCSFhjHq/",
                "shortcode": "CM1XCSFhjHq",
                "location_id": "6889842"
            },
            {
                "code": "DWpCZ1GjJB3",
                "link": "https://www.instagram.com/p/DWpCZ1GjJB3/",
                "shortcode": "DWpCZ1GjJB3",
                "location_id": "6889842"
            },
            {
                "code": "Cn7A2FsOYXJ",
                "link": "https://www.instagram.com/p/Cn7A2FsOYXJ/",
                "shortcode": "Cn7A2FsOYXJ",
                "location_id": "6889842"
            },
            {
                "code": "BvZhGYPFbrX",
                "link": "https://www.instagram.com/p/BvZhGYPFbrX/",
                "shortcode": "BvZhGYPFbrX",
                "location_id": "6889842"
            },
            {
                "code": "B2g4HnBCtWB",
                "link": "https://www.instagram.com/p/B2g4HnBCtWB/",
                "shortcode": "B2g4HnBCtWB",
                "location_id": "6889842"
            }
        ],
        "source": "brave_instagram_search",
        "location_id": "6889842"
    },
    "meta": {
        "timestamp": "2026-05-04T14:00:30.421Z",
        "request_id": "aa505eb9-9f3c-472a-80fc-882d6c83f5e7"
    },
    "status": "ok",
    "message": "Location media retrieved successfully",
    "success": true
}