igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function MediaOembed

    • Fetches oEmbed data for a public Instagram media URL. This is a public API call that does not require authentication.

      The library decides nothing on the answer, so the schema requires nothing: a field the answer lacks is absent, and a field it adds is kept as it came (a answer the Simulator has met is a sample, not the whole set of what the server sends).

      Parameters

      • url: string

      Returns Promise<
          {
              author_id?: string;
              author_name?: string;
              author_url?: string;
              height?: number
              | null;
              html?: string;
              media_id?: string;
              provider_name?: string;
              provider_url?: string;
              thumbnail_height?: number | null;
              thumbnail_url?: string;
              thumbnail_width?: number | null;
              title?: string;
              type?: string;
              version?: string;
              width?: number | null;
              readonly [key: string]: unknown;
          },
      >