Open Graph (OG) metadata reader

Open Graph (OG) metadata reader

Open Graph (OG) metadata reader

Fetch the Open Graph meta tags from any public URL and return them in a tidy JSON payload.

Open Graph (OG) API

Call https://api.mihajlo.mk/v1/og with your token and the target page to read Open Graph metadata exactly as our PHP.mk service does.

Parameters

  • token — copy the token (API Key) from your https://mihajlo.mk account after signing in with Google/Gmail.
  • url — the absolute https:// or http:// address of the page whose OG tags you want to inspect.
https://api.mihajlo.mk/v1/og?token=YOUR_TOKEN&url=https://www.it.mk/prikaznata-na-dhef-bezos-i-osnovaneto-na-amazon/

The service always replies with a JSON object that mirrors the OG tags:

{
  "error": false,
  "status_text": "OK",
  "status_code": 200,
  "data": {
    "type": "article",
    "site_name": "IT.mk",
    "title": "Приказната на Џеф Безос и основањето на Amazon ⋆ IT.mk",
    "description": "Главната улога во вестите ...",
    "image": "https://www.it.mk/... .jpg",
    "url": "https://www.it.mk/..."
  }
}

The JSON always exposes tags such as type, site_name, title, description, image, and url. We fall back to

 

or link rel="image_src" when OG tags are missing.