# How do I get the latest posts from an Instagram profile?

**Ask the Browser agent for the profile and the number of posts. It reads the public post pages, pulls each caption, date and URL, and can save the repeated visit as a reflex that returns a table with no model. The NatGeo work below took two runs over about 19 minutes, and the final timestamp reflex read 14 posts in about 17 seconds with no model.**

---

## A real run: the newest posts from a public profile

*A run on our machine, 5 October 2026, on GLM-5.3.*

This was the request:

> Open Instagram in a real browser and find the 12 newest posts from National Geographic's Instagram profile (@natgeo). … For each of the 12 newest posts, report: the post's caption (or first line of it), how long ago it was posted (or its date), and the post URL. Return the 12 posts as a clean numbered list, newest first.

### What the Browser agent did

1. **Opened the public profile without logging in.** The profile loaded; a signup pop-up covered the grid, and it closed the pop-up rather than signing in.
2. **Excluded the pinned posts.** The first two tiles were pinned posts (3 weeks and 10 weeks old), not the newest. It expanded the grid to 22 posts and took positions 3 to 14 as the true newest twelve.
3. **Read each post page, not just the grid.** The grid has no captions. It used the bundled `extract-across-many-pages` reflex in batches of five so no rows were truncated, and collected caption, relative time, likes and comments.
4. **Caught the edited post.** One reel displayed "Edited • 19h" while sitting between posts that were 2 and 3 days old. The displayed time was the edit time, not the upload time.
5. **Wrote a second reflex for the true time.** `ig-post-timestamps` reads the exact `taken_at` timestamp from each post page's embedded JSON, anchored to the post's shortcode, and sorts newest first. It ran on 14 candidates: 14 of 14 with true times, 28 tool calls, about 17 seconds, no model.
6. **Returned the 12 newest, newest first,** with captions, dates and URLs. The 13th post just missed the cut at 4 days old, which confirmed the boundary.
7. **Never logged in and never entered a credential.** The public view carried the captions and times.

### The first attempt, three days earlier

On 2 October the same job started with a sign-up pop-up and no saved reflex. The agent read the profile and two posts by hand, then wrote **`ig-post-captions`**: a program that walks post pages and parses caption, date, relative time and like counts from the page text, with no model.

Its first run came back `ok: true` and every row was empty: the program matched nothing. It was caught only because the reflex returns its evidence, the rows and the error list, not just "done". The agent fixed the matching and ran it again: 9 of 10 posts complete, the tenth reported with its reason. It also patched the caption parser to handle Instagram's "Edited" headers.

That first attempt took 7.2 minutes.

### What you get

**A table of the newest posts.** Four of the twelve, as returned:

| # | the post | posted |
|---|---|---|
| 1 | a reel on flamingos farming with fiddler crabs | 2h ago · 5 Oct |
| 2 | chimpanzees fishing with a branch | 23h ago · 4 Oct |
| 9 | an earlier version of the chimp reel, displayed "Edited • 19h" | truly 3d ago · 2 Oct |
| 12 | how beetles find water in one of Africa's driest landscapes | 3d ago · 1 Oct |

- **Every row carries the post URL**, and the dates are UTC.
- **The two reflexes are saved:** `ig-post-captions` (caption, date, likes and comments, no model) and `ig-post-timestamps` (the exact upload time, no model).
- **The repeat is a one-shot run:** give the reflex a new list of post URLs and it returns the table in seconds, with the page text staying inside the program.
- **Public posts only.** No login, no credentials, no private profile.

### What it took

| | time | steps | tokens | images |
|---|---|---|---|---|
| the first attempt (2 October) | 7.2 minutes | 21 | 713,316 read (686,656 cached), 32,836 written | none |
| the 12-post run (5 October) | about 12 minutes | 32 | 920,510 read (839,360 cached), 32,409 written | none |
| the timestamp reflex (5 October) | about 17 seconds | 28 tool calls | no model | none |
| **the whole job** | two runs, about 19 minutes | — | — | none |

It ran on your plan's usage, like any job; [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage) has what each plan includes.

## How it's different

- **The repeated visit becomes a program.** A reflex walks the post pages, parses the text with exact markers and returns one compact table. No model, and none of the page's comment-section noise reaches the conversation.
- **It returns evidence, not "ok".** The first captions run looked successful and was empty. The reflex returned its rows and errors, so the failure was visible and fixable; that is why every reflex must bring proof.
- **It reads the true upload time.** Edited posts display the edit time. The timestamp reflex reads the embedded `taken_at`, so ordering survives edits: the "19h" reel was really 3 days old.
- **It understands pinned posts.** The first two tiles were not the newest; the agent expanded the grid and took the true newest twelve.
- **It works logged out.** The public profile and post pages carried the captions and times, so no account was used.

How the browser, the reflexes and the evidence rule work: [What can the Browser Use agent do, and how does it work?](https://mycelen.com/manual/reference/agents/browser) and [How do I make a reflex?](https://mycelen.com/manual/guides/make-a-reflex).

---

## Doing it yourself

1. Open the agent switcher at the top of the sidebar and pick **Specialists → Browser Use**.
2. Give the profile URL, the number of posts and the fields you want: caption, date or relative time, URL, likes.
3. Let it read the public post pages. If a post is pinned or edited, ask for the true upload time rather than the displayed time.
4. Ask it to save the repeat as a reflex. The next profile or list of posts is a one-shot run.
5. Public posts only; do not give it credentials or ask it to log in.

---

## Limits

- **Public posts only.** Private profiles and posts behind a login are not read; the agent does not enter credentials.
- **Pinned posts sit first.** They can look newest; ask for them to be excluded.
- **Edited posts show the edit time.** "Edited • 19h" can mean 3 days; use the timestamp reflex for true order.
- **A reflex must return proof.** The first captions run was empty but looked fine; check the row counts and errors.
- **Instagram changes its page.** If the markers move, the reflex needs a sharpen.

---

## Questions

**How do I get the latest posts from an Instagram profile?**
Ask the Browser agent for the public profile and the number of posts. It reads the post pages and returns captions, dates and URLs, and can save the repeat as a reflex.

**How does it use my plan?**
The first run uses plan usage; the saved reflex runs with no model, so a repeat uses no model tokens. [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage) has what each plan includes.

**Can it get exact post dates?**
Yes. The timestamp reflex reads the exact upload time embedded in each post page, so an edited post does not distort the order.

**Does it work on private profiles?**
No. It reads public profiles and public post pages, and it never logs in or asks for a password.

**Why did the first run come back empty?**
The caption parser matched nothing but still reported success. Because the reflex returned its rows and errors, the agent saw the empty result, fixed the matching and reran it.

---

## Related

- [How do I make a reflex?](https://mycelen.com/manual/guides/make-a-reflex)
- [What can the Browser Use agent do, and how does it work?](https://mycelen.com/manual/reference/agents/browser)
- [What are skills?](https://mycelen.com/manual/reference/learning/skills-and-routines)
- [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage)
