Skip to content

[autofix] instagram/explore: empty result (explore_grid response shape drift) #2091

Description

@Ro-28

Summary

OpenCLI autofix repaired this adapter locally, and the retry passed.

Adapter

  • Site: instagram
  • Command: explore
  • OpenCLI version: 1.8.6

Original failure

  • Error code: (no error thrown — returned empty [])
instagram explore returned [] despite HTTP 200 from
/api/v1/discover/web/explore_grid/ — the adapter only read
sectional_items[].layout_content.medias[], which IG no longer populates.

Local fix summary

IG changed the explore_grid response: media are no longer under the flat
layout_content.medias[] path — they are nested across mixed layout shapes
(one_by_two_item.clips.items[].media, fill_items[], etc). Fix: recursively walk
sectional_items collecting every distinct node.media (dedupe by pk/id/code),
then map to rank/user/caption/likes/comments/type. Also fall back to play_count
for likes on clips/reels. Verified: returns 20 posts.

Issue filed by OpenCLI autofix after a verified local repair.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions