Skip to content

opencli instagram user/profile: missing post URL/permalink in output #516

Description

@eskardian

Problem

opencli instagram user <username> and opencli instagram profile <username> don't return the post/reel permalink (URL) — only caption, likes, comments, type, date, index. Confirmed via both -f yaml and -f json output, and the documented output columns in --help.

This makes it impossible to link back to a specific post after fetching a user's recent posts — e.g. for competitor research where you want to share/cite the exact video that got high engagement, not just the profile.

Why it's likely feasible

Since the OpenCLI backend already opens the post in a real browser session to scrape caption/likes/etc., the URL should be available at scrape time — it just isn't included in the output schema.

Request

Add a url (or permalink) field to the output of opencli instagram user and opencli instagram profile (recent posts), e.g.:

- caption: "..."
  likes: 207
  comments: 7
  type: carousel
  date: 07/08/2025
  url: https://www.instagram.com/p/XXXXXXXXXXX/

Workaround tried

Tried resolving specific reel URLs after the fact via Exa search (exa.web_search_exa), but it only works when the post happens to be indirectly indexed/cited elsewhere (aggregator sites, blogs) — unreliable, and much weaker for non-English content. A direct url field from the backend that already has the page open would be far more reliable.

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