Skip to content

Add Reels pin helpers#2467

Merged
subzeroid merged 1 commit intomasterfrom
feat/reels-pin
May 10, 2026
Merged

Add Reels pin helpers#2467
subzeroid merged 1 commit intomasterfrom
feat/reels-pin

Conversation

@subzeroid
Copy link
Copy Markdown
Owner

Summary

  • add Client.clip_pin() and Client.clip_unpin() for pinning Reels to the Reels tab/profile Reels grid
  • send the Android-observed profile_grid=clips payload to users/{pin,unpin}_timeline_media/
  • document the new helpers and add regression coverage for the exact private API payload

Verification

  • .venv/bin/python -m pytest tests/regression/test_clip.py tests/regression/test_media.py
  • .venv/bin/python -m ruff check instagrapi/__init__.py instagrapi/mixins/clip.py tests/regression/test_clip.py
  • git diff --check HEAD~1..HEAD

Capture notes

Verified against Instagram Android 428 traffic with Charon/HAR. Relevant requests returned {"status":"ok"}:

POST /api/v1/users/pin_timeline_media/
{"post_id":"<media_pk>","profile_grid":"clips"}

POST /api/v1/users/unpin_timeline_media/
{"post_id":"<media_pk>","profile_grid":"clips"}

The same profile_grid=clips parameter was also confirmed in the Android APK decompilation for the Reels grid pin/unpin flows.

Fixes #2196

@subzeroid subzeroid self-assigned this May 10, 2026
@subzeroid subzeroid merged commit ae1fe4b into master May 10, 2026
11 checks passed
@subzeroid subzeroid deleted the feat/reels-pin branch May 10, 2026 16:19
@subzeroid subzeroid mentioned this pull request May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reels pin

1 participant