POST /web/scrape with formats.parse: true and parseParams: {"type": "prebuilt", "parser": "instagram-profile"}. Read the result in parsed.data, with parsed.type: "instagram-profile". See the Quickstart for authentication and SDK setup.
Don’t send custom rules with this parser. For CSS selectors and rules, use the Custom parser.
Request
Use a profile URL,instagram.com/{username}/. Query parameters are ignored.
Output
Whenparsed.success is true, the parsed output has this shape:
Profile fields
null; missing lists are []. latest_posts holds the 12 newest posts in the post shape, with like, comment, and view counts, paid partnerships, and sponsors. similar_accounts are the related profiles Instagram suggests. business_address is null unless a business account lists one.
Private profiles return their profile fields with post_count: null and latest_posts: []. Follower and following lists, business email, and phone numbers need an Instagram login and aren’t returned. For a single post’s comments, use Instagram post.
Empty results and errors
A nonexistent or removed profile producesNOT_FOUND. Read parsed.success before using the data. A failed parse has data: null and can coexist with successful outputs. parsed.type remains "instagram-profile" even when parsing fails. See timeouts and errors for handling failures.