Skip to content

How to properly get Reel (Clip) from the given URL . I had eror Unexpected token 'P', \"Private media\" is not valid JSON #1827

@TranNgocMinhThong

Description

@TranNgocMinhThong

ig.state.generateDevice(igUsername)
await ig.account.login(igUsername, igPassword)

  const response = await fetch(`https://i.instagram.com/api/v1/oembed/?url=${url}`)
  const data = await response.json()
  const mediaId = data.media_id

{ url: 'https://www.instagram.com/reel/DJiLwvEhQDA/' }
{}
Instagram scrape error: Unexpected token 'P', "Private media" is not valid JSON

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionunconfirmedThis issue hasn't been read/confirmed/accepted by an admin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions