# Profile Query (profilequery.com) > Public Instagram data (profiles, posts, reels, stories, hashtags, locations) through one clean, fast, well-documented API. Pay per request, no approvals. Key facts: - REST API. Base URL: https://api.profilequery.com/v1. Every endpoint is a GET request. - Auth: an API key sent as `Authorization: Bearer ig_live_...`. Keys are created in the dashboard at https://profilequery.com/dashboard/keys. No OAuth, no Meta app review, no business verification. - Public data only. Private accounts and anything that requires logging in are never accessible. - Billing: prepaid credits, pay per request, no subscription. Most endpoints cost 1 credit. Credits start at $8.00 per 1,000 and fall to $6.00 per 1,000 at volume. New accounts get 50 free credits, no card required. - You are only billed when we successfully query Instagram. Bad input, invalid keys, and provider outages are free. - MCP server for AI agents: https://api.profilequery.com/mcp (Streamable HTTP, same API key). Works with Claude Code, Claude Desktop, Cursor, and any MCP client. - OpenAPI 3 spec: https://profilequery.com/openapi.json ## Quickstart ```bash curl "https://api.profilequery.com/v1/profile?handle=nike" \ --header "Authorization: Bearer ig_live_YOUR_KEY" ``` `handle` accepts a username, a numeric user id, or a full instagram.com profile URL. Post endpoints accept a post URL, shortcode, or media id in the same way. ## Response shape Every success is HTTP 200 with `{ "data": ..., "meta": { "endpoint", "credits_charged", "credits_remaining", "ms" } }`. List endpoints (posts, followers, comments, search, ...) return `data.items` plus `data.next_cursor`; pass it back as the `cursor` query parameter to get the next page. A `null` cursor means the last page. Billing also comes back in the `x-credits-remaining` response header. Errors are `{ "error": { "code", "message", "docs" } }`: - 400 missing_parameter: a required parameter is absent or malformed (not billed) - 401 invalid_api_key: missing, malformed, or revoked key (not billed) - 402 insufficient_credits: out of credits; top up to continue (not billed) - 404 not_found: well-formed request but no public data — private, deleted, or nonexistent (billed) error.reason says why: private_account, account_not_found (deleted or never existed), media_not_found, hashtag_not_found, location_not_found, or no_public_data - 502 upstream_error: data provider hiccup; safe to retry (not billed) - 504 upstream_timeout: upstream took too long; safe to retry (not billed) ## Pricing - Starter: $20 one-time for 2,500 credits ($8.00 per 1,000). For prototypes and side projects. - Growth: $70 one-time for 10,000 credits ($7.00 per 1,000). For production apps with steady volume. - Scale: $300 one-time for 50,000 credits ($6.00 per 1,000). Best per-credit rate. For data-heavy workloads. - 50 free credits on signup, no card required. No subscription, no minimums. ## MCP server URL: https://api.profilequery.com/mcp (Streamable HTTP). Send the same `Authorization: Bearer ig_live_...` header. Every endpoint below is exposed as a tool with the same name and parameters, billed identically to REST. Claude Code: `claude mcp add --transport http instagram https://api.profilequery.com/mcp --header "Authorization: Bearer ig_live_YOUR_KEY"`. ## Endpoint reference ### GET /v1/profile — Get profile Docs: https://profilequery.com/docs/profile Group: Profiles. Cost: 1 credit. Returns the public profile: bio, full name, follower/following counts, post count, profile picture, verified/business flags, and external links. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. Response fields: - `id`: Numeric account id (stable even if the username changes). - `username`: The account's @handle. - `full_name`: Display name shown on the profile. - `biography`: The profile's bio text. - `is_verified`: Whether the account has a verified badge. - `is_private`: Whether the account is private. - `is_business`: Whether this is a business/professional account. - `category`: Business category label when set (e.g. "Sportswear"); null otherwise. - `followers`: Number of accounts following this account. - `following`: Number of accounts this account follows. - `posts`: Total number of posts on the profile. - `external_url`: The clickable link in the bio, if any. - `profile_pic_url`: URL of the account's profile picture. - `public_email`: Public contact email, if the account exposes one; null otherwise. - `public_phone_number`: Public contact phone number, if exposed; null otherwise. ### GET /v1/profile/about — Account age & country Docs: https://profilequery.com/docs/profile/about Group: Profiles. Cost: 2 credits. Exposes Instagram's "About this account" transparency panel together with the full public profile in one call: the month and year the account was created (plus its age in years), the country the account was registered in (which can differ from where the person currently lives), whether it has ever changed its username — with the former usernames listed — and its verified badge. Instagram only reveals creation dates at month granularity, so no exact day is available. Works on private accounts too. Built for fraud & trust checks, influencer vetting, and account-marketplace due diligence. Cost: 2 credits, flat, regardless of account size. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. Response fields: - `username`: The account's current @handle. - `account_created`: When the account was created, as Instagram reports it (month + year, e.g. "November 2010"). Instagram never exposes the exact day. - `account_created_year`: Creation year, parsed as a number. - `account_created_month`: Creation month (1–12); null when Instagram only reports a year. - `account_age_years`: Account age in years (one decimal), computed from the creation month/year. - `country_of_registration`: The country the account was registered in, per Instagram's transparency data. This is where the account was created — NOT necessarily where the person lives now; null when Instagram doesn't disclose it. - `has_changed_username`: True if the account has ever changed its username — a strong signal for impersonation and resold-account checks. - `former_usernames`: Usernames the account previously used; empty when it has never changed. - `is_verified`: Whether the account has a verified badge. - `profile`: The full public profile, included at no extra cost (we fetch it to resolve the account). - `profile.id`: Numeric account id (stable even if the username changes). - `profile.full_name`: Display name shown on the profile. - `profile.biography`: The profile's bio text. - `profile.is_private`: Whether the account is private. The About panel still works on private accounts. - `profile.is_business`: Whether this is a business/professional account. - `profile.category`: Business category label when set; null otherwise. - `profile.followers`: Number of accounts following this account. - `profile.following`: Number of accounts this account follows. - `profile.posts`: Total number of posts on the profile. - `profile.external_url`: The clickable link in the bio, if any. - `profile.profile_pic_url`: URL of the account's profile picture. ### GET /v1/insights/profile/engagement — Engagement rate Docs: https://profilequery.com/docs/insights/profile/engagement Group: Insights. Cost: 2–6 credits. Computes an engagement rate for an account from its most recent posts: average likes + comments per post, divided by follower count. Analyzes the last 12 posts by default; pass `posts` (up to 50) to widen the window. Returns the rate as both a ratio and a percentage, plus the averages it was derived from. Cost is dynamic: 1 credit for the profile lookup plus 1 per ~12 posts fetched (so 12 posts = 2 credits, 50 posts = 6). Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `posts` (number, optional): How many recent posts to analyze (1–50). Defaults to 12. Example: `12`. Response fields: - `username`: The account's handle. - `followers`: Follower count at the time of calculation. - `posts_analyzed`: How many recent posts were actually used (your `posts` value, or fewer if the account has fewer). - `avg_likes`: Average likes across the analyzed posts. - `avg_comments`: Average comments across the analyzed posts. - `avg_engagement`: Average interactions per post (avg_likes + avg_comments). - `engagement_rate`: avg_engagement ÷ followers, as a decimal ratio. e.g. 0.00143 means a typical post draws interactions from about 0.143% of the follower base. - `engagement_rate_pct`: The same figure expressed as a percentage (engagement_rate × 100). e.g. 0.14 = 0.14%. ### GET /v1/insights/profile/best-time — Best time to post Docs: https://profilequery.com/docs/insights/profile/best-time Group: Insights. Cost: 4–6 credits. Analyzes when an account's recent posts earned the most engagement and returns the best hours and weekdays to post. Pass `posts` (1–50, default 30) to set the analysis window and `timezone` (UTC offset hours, e.g. `-5` for US East) to localize results. Cost: 4–6 credits depending on the analysis window. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `posts` (number, optional): Recent posts to analyze (1–50). Defaults to 30. Example: `30`. - `timezone` (number, optional): UTC offset in hours to localize the hour/day buckets (e.g. -5). Defaults to 0 (UTC). Example: `-5`. Response fields: - `username`: The account's @handle. - `posts_analyzed`: How many recent posts were analyzed. - `timezone_offset`: UTC offset (hours) used to localize the hour/day buckets. - `best_hours`: Top hours to post, ranked by average engagement. - `best_days`: Top weekdays to post, ranked by average engagement. - `recommendation`: Plain-English summary of the single best time to post. - `by_hour`: Engagement broken down by hour of day. - `by_day`: Engagement broken down by weekday. - `hour`: Hour of day (0–23) in the requested timezone. - `day`: Weekday name. - `posts`: Number of analyzed posts that fell in this bucket. - `avg_engagement`: Average interactions (likes + comments) for posts in this bucket. ### GET /v1/insights/profile/stats — Account stats Docs: https://profilequery.com/docs/insights/profile/stats Group: Insights. Cost: 4–6 credits. Derives an account's posting cadence (average gap between posts, posts/week) and content-format mix (photo / video / carousel share and average engagement per format, so you can see which format performs best). Pass `posts` (1–50, default 30) for the window. Cost: 4–6 credits depending on the window. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `posts` (number, optional): Recent posts to analyze (1–50). Defaults to 30. Example: `30`. Response fields: - `username`: The account's @handle. - `followers`: Follower count at calculation time. - `posts_analyzed`: How many recent posts were analyzed. - `avg_days_between_posts`: Average number of days between consecutive posts. - `posts_per_week`: Average number of posts published per week. - `format_mix`: Breakdown of content formats used, with share and engagement. - `type`: Content format: photo, video, or carousel. - `posts`: Number of analyzed posts in this format. - `share_pct`: Percentage of analyzed posts in this format. - `avg_engagement`: Average interactions (likes + comments) for posts in this format. - `best_format`: The format with the highest average engagement. ### GET /v1/insights/profile/audit — Fake-follower audit Docs: https://profilequery.com/docs/insights/profile/audit Group: Insights. Cost: 4–22 credits. Samples an account's followers and heuristically scores each for bot/throwaway signals (no profile picture, no display name, digit-heavy username, private + nameless), then estimates the real-follower percentage and assigns a quality grade. Includes a one-paragraph AI verdict for sponsorship decisions. Pass `sample` (1–500, default 100). Cost: 4–22 credits depending on the sample size. Instagram caps the follower list on many accounts at ~50, so `sampled` may be smaller than `sample`. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `sample` (number, optional): Followers to sample (1–500). Defaults to 100. More = more accurate, more credits. Example: `100`. Response fields: - `username`: The account's @handle. - `followers_total`: The account's total follower count. - `sampled`: How many followers were sampled and scored. - `suspected_fake_pct`: Estimated percentage of sampled followers that look fake. - `estimated_real_pct`: Estimated percentage of sampled followers that look authentic. - `estimated_real_followers`: Total followers projected to be real (followers_total × estimated_real_pct). - `quality_grade`: Letter grade (A–F) for overall audience quality. - `signal_breakdown`: Count of how many sampled followers tripped each suspicious-signal heuristic. - `signal_breakdown.no profile picture`: Sampled followers with no profile picture. - `signal_breakdown.digit-heavy username`: Sampled followers whose username is mostly digits. - `signal_breakdown.no display name`: Sampled followers with no display name. - `summary`: One-paragraph AI verdict on the audience for sponsorship decisions. ### GET /v1/insights/profile/qualify — Lead fit scoring Docs: https://profilequery.com/docs/insights/profile/qualify Group: Insights. Cost: 3–7 credits. Scores how well an account matches your ideal-customer description. Pass `criteria` describing the lead you want (e.g. "US-based fitness coaches with 10k–100k followers selling online programs") and we score the profile + recent posts 0–100 with reasons and signals. Cost: 3–7 credits depending on how many posts are considered. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `criteria` (string, required): Plain-English description of your ideal lead. Example: `US fitness coaches selling online programs`. - `posts` (number, optional): Recent posts to consider (1–50). Defaults to 12. Example: `12`. Response fields: - `username`: The account's @handle. - `criteria`: The ideal-lead description you supplied, echoed back. - `fit_score`: How well the account matches your criteria (0–100). - `verdict`: Short label for the fit (e.g. strong / moderate / weak). - `reasons`: Key reasons behind the score. - `signals`: Positive and negative signals the score is based on. - `positive`: Signals that support a good fit. - `negative`: Signals that count against the fit. - `recommended_action`: Suggested next step (e.g. pursue or skip). ### GET /v1/insights/profile/summary — Profile summary Docs: https://profilequery.com/docs/insights/profile/summary Group: Insights. Cost: 3–7 credits. Returns a concise AI sales-intelligence brief: a one-liner, who they are, niche, audience, tone, recent focus, and tags, ideal for CRM enrichment or pre-call research. Cost: 3–7 credits depending on how many posts are considered. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `posts` (number, optional): Recent posts to consider (1–50). Defaults to 12. Example: `12`. Response fields: - `username`: The account's @handle. - `one_liner`: One-sentence description of the account. - `who_they_are`: Short paragraph on who the account is. - `niche`: The account's primary niche. - `audience`: Who the account's audience is. - `tone`: The account's brand/voice tone. - `recent_focus`: What the account's recent posts have focused on. - `tags`: Short keyword tags for CRM segmentation. ### GET /v1/insights/profile/niche — Niche classifier Docs: https://profilequery.com/docs/insights/profile/niche Group: Insights. Cost: 3–7 credits. Classifies an account into a niche / sub-niche with categories, brand voice, target audience, and content pillars. Useful for tagging and segmentation at scale. Cost: 3–7 credits depending on how many posts are considered. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `posts` (number, optional): Recent posts to consider (1–50). Defaults to 12. Example: `12`. Response fields: - `username`: The account's @handle. - `niche`: Primary niche classification. - `sub_niche`: More specific sub-niche. - `categories`: Broad content categories the account fits. - `brand_voice`: The account's brand voice. - `target_audience`: Who the content targets. - `content_pillars`: Recurring content themes the account posts about. ### GET /v1/insights/profile/similar — Similar accounts Docs: https://profilequery.com/docs/insights/profile/similar Group: Insights. Cost: 3 credits. Finds businesses/creators similar to a seed account: we search Instagram by the account's category/name, then AI-rank candidates by niche, business type, and audience fit. Cost: 3 credits. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. Response fields: - `seed`: The account you searched from. - `search_query`: The query we used to find candidate accounts. - `similar`: Ranked accounts similar to the seed. - `username`: An account's @handle. - `category`: The seed account's business category. - `full_name`: The account's display name. - `similarity`: Similarity score to the seed (0–100). - `why`: Why this account is considered similar. ### GET /v1/profile/posts — Get posts Docs: https://profilequery.com/docs/profile/posts Group: Profiles. Cost: 2 credits. Paginated list of an account's recent posts (photos, videos, carousels). Use `cursor` to page through. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of posts. - `items[].id`: Numeric post/media id. - `items[].shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `items[].type`: Media type: photo, video, or carousel. - `items[].product_type`: More specific format (e.g. feed, clips, igtv). - `items[].url`: Canonical instagram.com URL for the post. - `items[].caption`: The post's caption text. - `items[].taken_at`: When the post was published (ISO 8601, UTC). - `items[].like_count`: Number of likes. - `items[].comment_count`: Number of comments. - `items[].view_count`: View count for video/reel content; null for photos. - `items[].image_url`: URL of the post's image (cover frame for video). - `items[].video_url`: URL of the video file; null for photos. - `items[].video_duration`: Video length in seconds; null for photos. - `items[].location`: Place tagged on the post, if any; null otherwise. - `items[].author`: The account that published the post. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/profile/reels — Get reels Docs: https://profilequery.com/docs/profile/reels Group: Profiles. Cost: 2 credits. Paginated list of an account's reels with view counts and metadata. Use `cursor` to page through. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of reels. - `items[].id`: Numeric post/media id. - `items[].shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `items[].type`: Media type: photo, video, or carousel. - `items[].product_type`: More specific format (e.g. feed, clips, igtv). - `items[].url`: Canonical instagram.com URL for the post. - `items[].caption`: The post's caption text. - `items[].taken_at`: When the post was published (ISO 8601, UTC). - `items[].like_count`: Number of likes. - `items[].comment_count`: Number of comments. - `items[].view_count`: View count for video/reel content; null for photos. - `items[].image_url`: URL of the post's image (cover frame for video). - `items[].video_url`: URL of the video file; null for photos. - `items[].video_duration`: Video length in seconds; null for photos. - `items[].location`: Place tagged on the post, if any; null otherwise. - `items[].author`: The account that published the post. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/profile/stories — Get stories Docs: https://profilequery.com/docs/profile/stories Group: Profiles. Cost: 2 credits. Returns the account's currently live stories (expire after 24h). No pagination. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. Response fields: - `items`: The account's currently active stories. - `id`: Numeric story id. - `shortcode`: The story's shortcode. - `type`: Media type: photo or video. - `taken_at`: When the story was posted (ISO 8601, UTC). - `image_url`: URL of the story image (cover frame for video). - `video_url`: URL of the story video; null for photos. - `video_duration`: Story video length in seconds; null for photos. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/profile/highlights — Get highlights Docs: https://profilequery.com/docs/profile/highlights Group: Profiles. Cost: 2 credits. Returns the saved story highlights pinned to a profile. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. Response fields: - `items`: The profile's saved story highlights. - `id`: Highlight id. - `title`: The highlight's title. - `media_count`: Number of stories saved in the highlight. - `created_at`: When the highlight was created (ISO 8601, UTC). - `cover_image_url`: URL of the highlight's cover image. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/profile/followers — Get followers Docs: https://profilequery.com/docs/profile/followers Group: Profiles. Cost: 2 credits. Paginated list of followers (~25 per page). Use `cursor` to continue. Instagram caps the list on many accounts at ~50 (then `next_cursor` is null), so a full list is not always available. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of follower accounts. - `items[].id`: Numeric account id (stable even if the username changes). - `items[].username`: The account's @handle. - `items[].full_name`: Display name shown on the profile (may be empty). - `items[].is_verified`: Whether the account has a verified badge. - `items[].is_private`: Whether the account is private. - `items[].profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/profile/following — Get following Docs: https://profilequery.com/docs/profile/following Group: Profiles. Cost: 2 credits. Paginated list of accounts the user follows (~25 per page). Use `cursor` to continue. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of accounts this account follows. - `items[].id`: Numeric account id (stable even if the username changes). - `items[].username`: The account's @handle. - `items[].full_name`: Display name shown on the profile (may be empty). - `items[].is_verified`: Whether the account has a verified badge. - `items[].is_private`: Whether the account is private. - `items[].profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/post — Get post Docs: https://profilequery.com/docs/post Group: Posts. Cost: 1 credit. Returns caption, media URLs, like/comment counts, author, timestamp, and carousel children for a post or reel. Parameters: - `post` (string, required): An Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically. Example: `https://www.instagram.com/p/C1a2b3c4d5e/`. Response fields: - `id`: Numeric post/media id. - `shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `type`: Media type: photo, video, or carousel. - `product_type`: More specific format (e.g. feed, clips, igtv). - `url`: Canonical instagram.com URL for the post. - `caption`: The post's caption text. - `taken_at`: When the post was published (ISO 8601, UTC). - `like_count`: Number of likes. - `comment_count`: Number of comments. - `view_count`: View count for video/reel content; null for photos. - `image_url`: URL of the post's image (cover frame for video). - `video_url`: URL of the video file; null for photos. - `video_duration`: Video length in seconds; null for photos. - `location`: Place tagged on the post, if any; null otherwise. - `author`: The account that published the post. - `author.id`: Numeric account id (stable even if the username changes). - `author.username`: The account's @handle. - `author.full_name`: Display name shown on the profile (may be empty). - `author.is_verified`: Whether the account has a verified badge. - `author.is_private`: Whether the account is private. - `author.profile_pic_url`: URL of the account's profile picture. ### GET /v1/post/comments — Get comments Docs: https://profilequery.com/docs/post/comments Group: Posts. Cost: 2 credits. Paginated comments with author, text, like count, and timestamp. Use `cursor` to continue. Parameters: - `post` (string, required): An Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically. Example: `https://www.instagram.com/p/C1a2b3c4d5e/`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of comments. - `items[].id`: Numeric comment id. - `items[].text`: The comment text. - `items[].like_count`: Number of likes on the comment. - `items[].created_at`: When the comment was posted (ISO 8601, UTC). - `items[].author`: The account that wrote the comment. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/post/likers — Get likers Docs: https://profilequery.com/docs/post/likers Group: Posts. Cost: 2 credits. Returns accounts that liked the post. Availability depends on the post's privacy and size. Parameters: - `post` (string, required): An Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically. Example: `https://www.instagram.com/p/C1a2b3c4d5e/`. Response fields: - `items`: Accounts that liked the post. - `items[].id`: Numeric account id (stable even if the username changes). - `items[].username`: The account's @handle. - `items[].full_name`: Display name shown on the profile (may be empty). - `items[].is_verified`: Whether the account has a verified badge. - `items[].is_private`: Whether the account is private. - `items[].profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/insights/post/image — Analyze image (vision) Docs: https://profilequery.com/docs/insights/post/image Group: Insights. Cost: 3 credits. Runs an account-safe vision model over a post's image(s) and returns structured tags: subjects, scene, objects, dominant colors, any text in the image, mood, an aesthetic score, brand-safety flags, and suggested alt text. Carousels analyze up to the first few images. Cost: 3 credits. Parameters: - `post` (string, required): An Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically. Example: `https://www.instagram.com/p/C1a2b3c4d5e/`. Response fields: - `post`: The post URL that was analyzed. - `caption`: The post's caption. - `analysis`: The vision model's structured findings. - `subjects`: Main subjects detected in the image. - `scene`: Description of the overall scene. - `objects`: Notable objects detected in the image. - `dominant_colors`: The image's dominant colors. - `text_in_image`: Any text read from the image. - `mood`: Overall mood/feel of the image. - `aesthetic_score`: Aesthetic quality score (0–10). - `brand_safe`: Whether the image is safe for brand use. - `brand_safety_notes`: Notes explaining the brand-safety judgment. - `suggested_alt_text`: Suggested alt text describing the image. ### GET /v1/insights/post/comments — Comment sentiment Docs: https://profilequery.com/docs/insights/post/comments Group: Insights. Cost: 4–12 credits. Pages a post's comments and runs AI sentiment + theme analysis: positive/neutral/negative split, recurring themes with examples, an estimated spam percentage, representative positive/negative comments, and a summary. Pass `comments` (1–200, default 60). Cost: 4–12 credits depending on how many comments are analyzed. Parameters: - `post` (string, required): An Instagram post/reel. Accepts a media id, a shortcode (`C1a2b3c4d5e`), or a full post/reel URL. We resolve it automatically. Example: `https://www.instagram.com/p/C1a2b3c4d5e/`. - `comments` (number, optional): Comments to analyze (1–200). Defaults to 60. Example: `60`. Response fields: - `post`: The post URL whose comments were analyzed. - `comments_analyzed`: How many comments were analyzed. - `sentiment`: Positive / neutral / negative split, as percentages. - `positive_pct`: Percentage of comments that are positive. - `neutral_pct`: Percentage of comments that are neutral. - `negative_pct`: Percentage of comments that are negative. - `overall`: Overall sentiment label. - `themes`: Recurring themes found across the comments. - `theme`: A recurring theme. - `mentions`: How many comments mentioned this theme. - `example`: An example comment illustrating the theme. - `spam_pct`: Estimated percentage of comments that are spam. - `top_positive`: Representative positive comments. - `top_negative`: Representative negative comments. - `summary`: One-line summary of the comment reception. ### GET /v1/hashtag/top — Top hashtag posts Docs: https://profilequery.com/docs/hashtag/top Group: Hashtags. Cost: 1 credit. Returns the 'Top' posts for a hashtag (Instagram's ranked selection). Parameters: - `tag` (string, required): Hashtag without the `#`. Example: `sunset`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The hashtag's top-ranked posts. - `items[].id`: Numeric post/media id. - `items[].shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `items[].type`: Media type: photo, video, or carousel. - `items[].product_type`: More specific format (e.g. feed, clips, igtv). - `items[].url`: Canonical instagram.com URL for the post. - `items[].caption`: The post's caption text. - `items[].taken_at`: When the post was published (ISO 8601, UTC). - `items[].like_count`: Number of likes. - `items[].comment_count`: Number of comments. - `items[].view_count`: View count for video/reel content; null for photos. - `items[].image_url`: URL of the post's image (cover frame for video). - `items[].video_url`: URL of the video file; null for photos. - `items[].video_duration`: Video length in seconds; null for photos. - `items[].location`: Place tagged on the post, if any; null otherwise. - `items[].author`: The account that published the post. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/hashtag/recent — Recent hashtag posts Docs: https://profilequery.com/docs/hashtag/recent Group: Hashtags. Cost: 1 credit. Returns the most recent posts for a hashtag, newest first. Parameters: - `tag` (string, required): Hashtag without the `#`. Example: `sunset`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The hashtag's most recent posts, newest first. - `items[].id`: Numeric post/media id. - `items[].shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `items[].type`: Media type: photo, video, or carousel. - `items[].product_type`: More specific format (e.g. feed, clips, igtv). - `items[].url`: Canonical instagram.com URL for the post. - `items[].caption`: The post's caption text. - `items[].taken_at`: When the post was published (ISO 8601, UTC). - `items[].like_count`: Number of likes. - `items[].comment_count`: Number of comments. - `items[].view_count`: View count for video/reel content; null for photos. - `items[].image_url`: URL of the post's image (cover frame for video). - `items[].video_url`: URL of the video file; null for photos. - `items[].video_duration`: Video length in seconds; null for photos. - `items[].location`: Place tagged on the post, if any; null otherwise. - `items[].author`: The account that published the post. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/insights/hashtag — Analyze hashtag Docs: https://profilequery.com/docs/insights/hashtag Group: Insights. Cost: 2 credits. Samples a hashtag's top and recent posts to estimate how competitive it is (average engagement a top post needs, a 0–100 difficulty score) and how fast it moves (posts per hour). Use it to choose hashtags you can realistically rank for. Cost: 2 credits. Parameters: - `tag` (string, required): Hashtag without the `#`. Example: `sunset`. Response fields: - `tag`: The hashtag analyzed (without the #). - `top_sample`: How many top posts were sampled. - `recent_sample`: How many recent posts were sampled. - `top_avg_engagement`: Average interactions (likes + comments) of a top post. - `top_avg_likes`: Average likes of a top post. - `top_avg_comments`: Average comments of a top post. - `posts_per_hour`: Estimated number of new posts per hour for the hashtag. - `difficulty_score`: How hard it is to rank for the hashtag (0–100). - `difficulty_label`: Plain-English difficulty (e.g. low / medium / high). ### GET /v1/location — Get location Docs: https://profilequery.com/docs/location Group: Locations. Cost: 1 credit. Returns metadata for an Instagram location (name, address, coordinates, post count). Parameters: - `id` (string, required): Instagram location id or location URL. Example: `212988663`. Response fields: - `id`: Numeric location id. - `name`: The place's name. - `category`: The place's category (e.g. City, Restaurant). - `address`: Street address, when known. - `city`: City, when known. - `zip`: Postal code, when known. - `lat`: Latitude. - `lng`: Longitude. - `phone`: Public phone number, when listed. - `website`: Website URL, when listed. - `external_id`: Facebook Places id for the location. ### GET /v1/location/posts — Location posts Docs: https://profilequery.com/docs/location/posts Group: Locations. Cost: 1 credit. Paginated posts tagged at a given location. Use `cursor` to continue. Parameters: - `id` (string, required): Instagram location id or location URL. Example: `212988663`. - `cursor` (string, optional): Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. Response fields: - `items`: The page of posts tagged at this location. - `items[].id`: Numeric post/media id. - `items[].shortcode`: The post's shortcode, the part after /p/ in its instagram.com URL. - `items[].type`: Media type: photo, video, or carousel. - `items[].product_type`: More specific format (e.g. feed, clips, igtv). - `items[].url`: Canonical instagram.com URL for the post. - `items[].caption`: The post's caption text. - `items[].taken_at`: When the post was published (ISO 8601, UTC). - `items[].like_count`: Number of likes. - `items[].comment_count`: Number of comments. - `items[].view_count`: View count for video/reel content; null for photos. - `items[].image_url`: URL of the post's image (cover frame for video). - `items[].video_url`: URL of the video file; null for photos. - `items[].video_duration`: Video length in seconds; null for photos. - `items[].location`: Place tagged on the post, if any; null otherwise. - `items[].author`: The account that published the post. - `items[].location.id`: Numeric location id. - `items[].location.name`: The place's name. - `items[].location.category`: The place's category (e.g. City, Restaurant). - `items[].location.address`: Street address, when known. - `items[].location.city`: City, when known. - `items[].location.zip`: Postal code, when known. - `items[].location.lat`: Latitude. - `items[].location.lng`: Longitude. - `items[].location.phone`: Public phone number, when listed. - `items[].location.website`: Website URL, when listed. - `items[].location.external_id`: Facebook Places id for the location. - `items[].author.id`: Numeric account id (stable even if the username changes). - `items[].author.username`: The account's @handle. - `items[].author.full_name`: Display name shown on the profile (may be empty). - `items[].author.is_verified`: Whether the account has a verified badge. - `items[].author.is_private`: Whether the account is private. - `items[].author.profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Pass back as `cursor` to fetch the next page; null when there are no more results. ### GET /v1/search/users — Search users Docs: https://profilequery.com/docs/search/users Group: Search. Cost: 1 credit. Returns accounts matching a search query, ranked by Instagram relevance. Parameters: - `q` (string, required): Search text. Example: `coffee`. Response fields: - `items`: Matching accounts, ranked by Instagram relevance. - `items[].id`: Numeric account id (stable even if the username changes). - `items[].username`: The account's @handle. - `items[].full_name`: Display name shown on the profile (may be empty). - `items[].is_verified`: Whether the account has a verified badge. - `items[].is_private`: Whether the account is private. - `items[].profile_pic_url`: URL of the account's profile picture. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/search/hashtags — Search hashtags Docs: https://profilequery.com/docs/search/hashtags Group: Search. Cost: 1 credit. Returns hashtags matching a query with their post counts. Parameters: - `q` (string, required): Search text. Example: `travel`. Response fields: - `items`: Matching hashtags. - `items[].id`: Hashtag id. - `items[].name`: The hashtag text (without the #). - `items[].media_count`: Number of posts using the hashtag. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/search/locations — Search locations Docs: https://profilequery.com/docs/search/locations Group: Search. Cost: 1 credit. Returns locations/places matching a query. Parameters: - `q` (string, required): Search text. Example: `new york`. Response fields: - `items`: Matching places. - `items[].id`: Numeric location id. - `items[].name`: The place's name. - `items[].category`: The place's category (e.g. City, Restaurant). - `items[].address`: Street address, when known. - `items[].city`: City, when known. - `items[].zip`: Postal code, when known. - `items[].lat`: Latitude. - `items[].lng`: Longitude. - `items[].phone`: Public phone number, when listed. - `items[].website`: Website URL, when listed. - `items[].external_id`: Facebook Places id for the location. - `next_cursor`: Always null. This endpoint returns a single page and isn't paginated. ### GET /v1/insights/profile/caption — Generate captions Docs: https://profilequery.com/docs/insights/profile/caption Group: Insights. Cost: 3–7 credits. Learns an account's voice from its recent captions, then writes new captions on a `topic` you give, in that exact voice, plus suggested hashtags. Pass `count` (1–5, default 3). Cost: 3–7 credits depending on the sample window. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `topic` (string, required): What the new caption(s) should be about. Example: `summer running collection launch`. - `count` (number, optional): How many caption options to generate (1–5). Defaults to 3. Example: `3`. - `posts` (number, optional): Recent posts to learn the voice from (1–50). Defaults to 12. Example: `12`. Response fields: - `username`: The account's @handle. - `topic`: The subject you asked captions for, echoed back. - `captions`: Generated caption options written in the account's voice. - `hashtags`: Suggested hashtags to pair with the captions. - `voice_notes`: Notes on the caption voice we matched. ### GET /v1/insights/profile/dm-opener — DM opener Docs: https://profilequery.com/docs/insights/profile/dm-opener Group: Insights. Cost: 3–7 credits. Writes a short, genuine, non-spammy DM opener personalized to an account, referencing something specific from its profile and recent posts. Pass `offer` (what you're pitching) and optional `tone`. Pairs with `insights/profile/qualify`: qualify a lead, then write the opener. Cost: 3–7 credits depending on the sample window. Parameters: - `handle` (string, required): An Instagram account. Accepts a username (`nike`), a numeric user id (`13460080`), or a full profile URL (`https://instagram.com/nike`). We resolve it automatically. Example: `nike`. - `offer` (string, optional): What you're reaching out about (your product/offer). Example: `our influencer marketing platform`. - `tone` (string, optional): Desired tone. Defaults to friendly and professional. Example: `casual`. - `posts` (number, optional): Recent posts to personalize from (1–50). Defaults to 6. Example: `6`. Response fields: - `username`: The account's @handle. - `opener`: The recommended DM opener. - `alternatives`: Alternative opener options. - `personalization_notes`: What the opener personalized on. ## Guides by data type ### Instagram Profile API https://profilequery.com/instagram-profile-api Look up any public Instagram profile by username, user ID, or profile URL. One GET request returns bio, full name, follower and following counts, post count, profile picture, and verification status — no login, no OAuth, no scraping infrastructure to run yourself. Endpoints: /v1/profile, /v1/profile/about **How do I look up an Instagram profile by username?** Send a GET request to /v1/profile?handle= with your API key in the Authorization header. handle also accepts a numeric user ID or a full instagram.com profile URL — we resolve whichever you send. **Does this work without an Instagram login or Meta app review?** Yes. There's no OAuth flow, no Meta app review, and no Instagram login required. Create an API key from your dashboard and start making requests immediately. **Can I look up private Instagram accounts?** The Profile API returns public data only. Private accounts are not accessible through this or any other endpoint — that boundary is never crossed. **How much does a profile lookup cost?** Profile lookups cost 1 credit, and credits start at $8.00 per 1,000 (as low as $6.00 per 1,000 at volume). New accounts get 50 free credits. **What's the difference between /profile and /profile/about?** /profile returns the standard public profile (bio, followers, posts, and so on). /profile/about adds Instagram's transparency data — account creation date, age, country of registration, and former usernames — useful for fraud checks and creator vetting. ### Instagram Scraper API https://profilequery.com/instagram-scraper-api Stop maintaining your own Instagram scraper. Get profiles, posts, and reels through a hosted REST API — we run the proxies, rate-limit handling, and anti-bot measures on our side, you get clean, typed JSON on yours. Endpoints: /v1/profile, /v1/profile/posts, /v1/profile/reels **Is this legal? Does it violate Instagram's terms?** The API only returns data that's already public on Instagram — nothing behind a login. You're responsible for how you use the data for your own use case and jurisdiction, but the API itself never accesses private content or bypasses account-level restrictions. **Do I need to manage proxies or rotate IPs myself?** No. That infrastructure runs entirely on our side. You send one authenticated GET request and get JSON back. **What can I scrape?** Profiles, posts, reels, stories, highlights, followers/following lists, comments, likers, hashtags, and locations. See the full endpoint list in the docs. **Does it break when Instagram changes their site?** We maintain the scraping layer ourselves and ship fixes as Instagram's internals change, so your integration against our stable REST surface doesn't need to change. **How is pricing structured?** Pay-as-you-go credits, no subscription. Most endpoints cost 1–2 credits per request, starting at $8.00 per 1,000 credits. 50 free credits on signup. ### Instagram API without login or OAuth https://profilequery.com/instagram-api-without-login The official Instagram Graph API requires a Meta Business app, app review, and a connected Facebook Page before you can touch real data. This API doesn't. Sign up, grab a key, and start making requests — no Instagram account, no OAuth redirect, no review queue. Endpoints: /v1/profile, /v1/search/users **Why does the official Instagram Graph API need a login?** Meta's Graph API is built for businesses managing their own connected accounts — it requires OAuth, a Facebook Page, and often app review before you can query anything beyond your own account. It isn't designed for looking up other public accounts. **Is an API key enough to authenticate?** Yes. Create a key in your dashboard and send it as an Authorization: Bearer header. There's no OAuth handshake, refresh token, or expiring session to manage. **Can this access data that requires an Instagram login to view?** No — only data that's publicly visible without logging in. Private accounts and login-gated content are out of scope. **Do I need a Meta Developer account?** No. You never touch Meta's developer platform, app review process, or Business Manager — sign up directly with us instead. **What can I build without OAuth?** Anything that reads public data: profile lookups, follower/following lists, posts, reels, stories, hashtag and location search, comments, and likers. ### Instagram User Info API by Username https://profilequery.com/instagram-user-info-api Send a username — or a numeric user ID, or a full profile URL — and get back structured account info: numeric ID, display name, bio, follower and following counts, verification status, and account type. Endpoints: /v1/profile **What formats does the username lookup accept?** The handle parameter accepts a plain username (nike), a numeric user ID (13460080), or a full profile URL (https://instagram.com/nike) — we detect and resolve whichever you send. **Does the response include the numeric user ID?** Yes — every response includes id, the account's permanent numeric identifier, which stays stable even if the account changes its username. **Can I batch-lookup many usernames at once?** Each request looks up one account. For bulk lookups, call the endpoint concurrently — there's no per-key concurrency limit beyond your plan's rate limit. **What happens if the username doesn't exist?** You get a 404 with a typed error body, and you aren't charged — billing only happens on requests that reach Instagram and return data. **Is there a rate limit?** Yes, scaled to your plan; see the docs for current limits. Most on-demand username lookups never come close to it. ### Instagram Followers API https://profilequery.com/instagram-followers-api Get an account's follower count with a single profile lookup, or page through its full list of followers — username, full name, verification, and privacy status for each — with cursor-based pagination. Endpoints: /v1/profile/followers, /v1/profile **How do I just get a follower count, not the full list?** Call GET /v1/profile?handle= — the response includes a followers field with the total count, at 1 credit, no pagination needed. **How do I get the actual list of followers?** Call GET /v1/profile/followers?handle=, then keep passing the returned next_cursor back as the cursor param until it comes back null. **How many followers come back per page?** About 25 per page, matching Instagram's own pagination granularity. Instagram caps the visible list on many accounts at ~50, in which case next_cursor comes back null after the first page. **Can I get followers of a private account?** No — follower lists are only available for public accounts. **What does listing followers cost?** 2 credits per page (~25 followers), regardless of the account's total follower count. ### Instagram Reels API https://profilequery.com/instagram-reels-api Pull an account's reels with view counts, video URLs, captions, and duration. One paginated endpoint, no login required — built for creator analytics, content archiving, and trend tracking. Endpoints: /v1/profile/reels **Does the Reels API return view counts?** Yes — view_count is included on every reel, alongside like and comment counts. **Can I get the actual video file?** Yes, each reel includes a video_url you can fetch directly. **How far back can I page through reels?** As far back as Instagram's own pagination allows — keep following next_cursor until it's null. **What does fetching reels cost?** 2 credits per page of reels returned. **Does this work for private accounts?** No — only reels on public accounts are accessible. ### Instagram Stories API https://profilequery.com/instagram-stories-api Fetch an account's currently live stories — the ones that expire in 24 hours — with direct image and video URLs, before they disappear. Endpoints: /v1/profile/stories, /v1/profile/highlights **Can I get stories that have already expired?** No — Instagram stories are only visible for 24 hours, and this endpoint mirrors that: it returns whatever's currently live, nothing older. **How do I get older or pinned stories?** Use /v1/profile/highlights — it returns an account's saved highlight reels, which persist past the 24-hour window. **Does this require polling to catch stories in time?** Yes, if you need every story an account posts, poll on an interval shorter than 24 hours. There's no push or webhook mechanism for stories. **Do private accounts' stories show up?** No, only public accounts. **What does a stories lookup cost?** 2 credits per request, returning every currently active story in one call. ### Instagram Posts API https://profilequery.com/instagram-posts-api Pull an account's recent feed — photos, videos, and carousels — with captions, engagement counts, and media URLs. Paginated so you can walk back as far as Instagram allows. Endpoints: /v1/profile/posts, /v1/post **What post types are returned?** Photos, videos, and carousel (multi-image) posts, all in one consistent JSON shape. **Can I fetch a single post by URL instead of listing a feed?** Yes — GET /v1/post accepts a post id, shortcode, or full instagram.com/p/... URL and returns that one post's full detail; comments and likers are separate endpoints. **How do I get engagement numbers per post?** Every post includes like_count and comment_count directly — no separate call needed. **How far back does pagination go?** As far as Instagram's own feed pagination allows — keep passing next_cursor until it returns null. **What does listing posts cost?** 2 credits per page of posts. ### Instagram Search API https://profilequery.com/instagram-search-api Search Instagram by keyword and get ranked results back as structured JSON — accounts, hashtags, or locations, each through its own dedicated endpoint. Endpoints: /v1/search/users, /v1/search/hashtags, /v1/search/locations **Can I search for accounts by keyword instead of an exact username?** Yes — GET /v1/search/users?q= returns accounts ranked by Instagram's relevance for that term, not just an exact match. **Does hashtag search tell me how popular a hashtag is?** Yes, each result includes media_count — the total number of posts using that hashtag. **Can I search for a specific place or city?** Yes — /v1/search/locations returns places matching your query with coordinates and an id you can pass to /v1/location/posts. **How many results come back per search?** A single ranked page per call — enough for typeahead/autocomplete-style use cases. There's no cursor pagination on search. **What does a search call cost?** 1 credit per call, across all three search endpoints. ### Instagram Hashtag API https://profilequery.com/instagram-hashtag-api Get the top-ranked and newest posts for any public hashtag, search hashtags by keyword with their post counts, and estimate how hard a hashtag is to rank for. Built for brand monitoring, campaign tracking, and content research — one GET request per page of results. Endpoints: /v1/hashtag/top, /v1/hashtag/recent, /v1/search/hashtags, /v1/insights/hashtag **How do I get posts for an Instagram hashtag?** Send GET /v1/hashtag/top?tag= for the ranked selection or GET /v1/hashtag/recent?tag= for the newest posts. Leave out the # symbol. Both return a page of posts plus a cursor for the next page. **Can I monitor a hashtag continuously?** Yes. Poll /v1/hashtag/recent on a schedule (a cron job every few minutes is typical), store the post ids you've seen, and stop paging when you reach a post you already have. Each call is one credit regardless of how many posts come back. **How do I find the right hashtags to use?** Use /v1/search/hashtags?q= to discover hashtags and their post counts, then run /v1/insights/hashtag?tag= on the candidates to see the difficulty score and the engagement level a top post needs. Pick the ones you can realistically rank for. **Does this work without an Instagram login or the Graph API?** Yes. Hashtag data is public, so there's no OAuth, no Meta app review, and no business verification. Create an API key and start requesting. **What does hashtag data cost?** Top, recent, and search calls cost 1 credit each; the hashtag analysis costs 2. Credits start at $8.00 per 1,000, and new accounts get 50 free credits. ### Instagram Analytics API https://profilequery.com/instagram-analytics-api Turn any public account into numbers you can act on: engagement rate from real recent posts, posting frequency, which formats perform best, and the hours and days that earn the most engagement. Computed on our side, returned as one JSON object — no exporting posts and doing the maths yourself. Endpoints: /v1/insights/profile/engagement, /v1/insights/profile/stats, /v1/insights/profile/best-time, /v1/profile **How do I get an Instagram account's engagement rate?** Send GET /v1/insights/profile/engagement?handle=. We fetch the account's recent posts, average likes + comments per post, divide by follower count, and return the rate along with the averages it was derived from. Pass posts= (up to 50) to widen the window. **Does this work for accounts I don't own?** Yes. Everything here is computed from public data, so you can analyse any public account — creators you're vetting, competitors, or your own. The official Instagram Insights API only covers accounts you manage; this doesn't have that limitation. **What stats are included?** Three endpoints cover it: engagement rate (/insights/profile/engagement), posting cadence and format breakdown (/insights/profile/stats), and best time to post (/insights/profile/best-time). Combine them with /profile for follower and post counts. **How is 'best time to post' calculated?** We look at when the account's recent posts were published and how much engagement each earned, then bucket by hour and weekday. Pass timezone= (for example -5 for US East) to get results in local time. **What does an analytics call cost?** Engagement rate is 2 credits at the default 12-post window (up to 6 for 50 posts). Stats and best-time cost 4–6 credits depending on the window. Credits start at $8.00 per 1,000 and new accounts get 50 free. ### Instagram Comments API https://profilequery.com/instagram-comments-api Pass a post URL, shortcode, or id and get its comments back as clean JSON — who wrote each one, what they said, how many likes it has, and when it was posted. Paginate as far back as you need, pull the accounts that liked the post, or let our AI summarise the sentiment and themes for you. Endpoints: /v1/post/comments, /v1/insights/post/comments, /v1/post/likers **How do I get the comments on an Instagram post?** Send GET /v1/post/comments?post=. You get a page of comments with author, text, like count, and timestamp, plus a cursor. Pass cursor= to fetch the next page. **Can I get comments on reels?** Yes. Reels are posts as far as the API is concerned — pass the reel URL or shortcode to the same endpoint. **Can I analyse what people are saying instead of reading every comment?** Yes. GET /v1/insights/post/comments?post=<...> pages the comments for you and returns a sentiment split, the recurring themes with example comments, an estimated spam percentage, and a one-paragraph summary. Pass comments= (up to 200) to control how many are analysed. **Do I need Instagram OAuth or Meta app review?** No. Comments on public posts are public data. There's no OAuth flow, no app review, and no business verification — just an API key. **What does it cost?** A page of comments is 2 credits. The likers list is 2–3. AI comment sentiment is 4–12 credits depending on how many comments are analysed. Credits start at $8.00 per 1,000, and new accounts get 50 free. ### Instagram Fake Follower Checker API https://profilequery.com/instagram-fake-follower-checker-api Before you pay a creator, check who's actually following them. One request samples the account's followers, scores each for bot and throwaway signals, and returns an estimated real-follower percentage with a quality grade and a plain-English verdict you can drop straight into a vetting report. Endpoints: /v1/insights/profile/audit, /v1/profile/followers, /v1/profile/about **How do I check an Instagram account for fake followers?** Send GET /v1/insights/profile/audit?handle=. We sample the account's followers, score each one heuristically, and return the estimated real percentage, a quality grade, the signal counts, and an AI-written verdict. Pass sample= to change how many followers are checked. **How accurate is it?** It's a heuristic estimate from a sample, not a ground-truth count — the same approach the major influencer-marketing tools use. Bigger samples are more accurate. Note that Instagram caps the follower list on many accounts at around 50, so the sampled count can be smaller than what you asked for; the response tells you how many were actually checked. **Can I audit accounts I don't manage?** Yes. The audit only uses public follower lists, so any public account can be checked — that's the whole point for influencer vetting. **Does this need Instagram OAuth or app approval?** No. There's no OAuth, no Meta app review, and no business verification. Create an API key and call the endpoint. **What does an audit cost?** 4–22 credits depending on the sample size (the default 100-follower sample sits at the low end). Credits start at $8.00 per 1,000, and new accounts get 50 free credits to try it. ### Instagram Location API https://profilequery.com/instagram-location-api Find a place by name, get its Instagram location id and coordinates, then pull the posts people have tagged there — newest first, with a cursor to keep going. Useful for store and venue monitoring, local marketing, event coverage, and UGC collection. Endpoints: /v1/location/posts, /v1/location, /v1/search/locations **How do I get Instagram posts for a location?** First resolve the place with GET /v1/search/locations?q= to get its id, then call GET /v1/location/posts?id=. You can also pass a full Instagram location URL as the id. **Can I get posts near a latitude / longitude?** Not directly — Instagram organises posts by tagged place, not by radius. Search for the venues in your area with /search/locations, then pull posts for each location id. **How do I monitor a store or venue for new posts?** Poll /v1/location/posts?id= on a schedule, store the post ids you've seen, and stop paging when you reach one you already have. Each page is one credit. **Does this require an Instagram login or Meta app review?** No. Location data and posts tagged at public places are public. There's no OAuth, no app review, and no business verification. **What does location data cost?** 1 credit per call for location details, location posts, and place search. Credits start at $8.00 per 1,000, and new accounts get 50 free. ### Instagram data in BigQuery https://profilequery.com/instagram-to-bigquery Pipe public Instagram data (profiles, follower counts, posts, reels, likes, comments) into BigQuery on a schedule, then answer questions in SQL. No Meta app, no connected accounts, no scraper to maintain: one API key and a short Python script. Endpoints: /v1/profile, /v1/profile/posts, /v1/profile/reels **Is there a native Instagram connector for BigQuery?** Google's BigQuery Data Transfer Service doesn't include Instagram, and Meta's Graph API only exposes accounts you've connected. The usual approach is a small scheduled job that calls an API and appends JSON rows. The Python script on this page is that job. **Can I load data for accounts I don't own?** Yes. Every endpoint returns public data for any public account: profiles, posts, reels, comments, hashtags, and locations. Private accounts are never accessible. **How much does a daily snapshot cost?** A profile lookup is 1 credit and a page of posts is 2 credits, so tracking 50 accounts daily is about 150 credits/day. Credits start at $8.00 per 1,000, and new accounts get 50 free. **Does this work with Snowflake, Postgres, or Google Sheets?** Yes. The API returns flat JSON, so only the last two lines of the script change. Swap the BigQuery load for your warehouse's client (snowflake-connector, psycopg, gspread) and keep everything else. **Can I get Instagram Insights (reach, impressions) into BigQuery this way?** No. Reach, impressions, and saves are private to the account owner and only available through Meta's Graph API for connected accounts. This API covers public metrics (followers, likes, comments, views) for any account. ### Instagram GraphQL API https://profilequery.com/instagram-graphql-api Instagram's web app loads profiles, posts, and comments through an internal GraphQL endpoint. It isn't a public API: query IDs rotate, requests need session tokens, and it rate-limits hard. Here's how it works, and a stable REST API that returns the same public data. Endpoints: /v1/profile, /v1/profile/posts, /v1/post/comments **Is the Instagram GraphQL API public?** No. It's the private endpoint Instagram's own web app uses. It's undocumented, query IDs change without notice, and most queries require a logged-in session. Meta's only official public API is the Graph API (not GraphQL), which is limited to accounts you manage. **What happened to query_hash?** Older versions of the web app sent GET requests to /graphql/query with a query_hash. Newer builds send POST requests with a numeric doc_id. Both are persisted-query IDs that rotate with each web release, which is why hard-coded values eventually stop working. **Is the Instagram Graph API the same as GraphQL?** No. The Graph API is Meta's official REST-style API for business and creator accounts you've connected through a Facebook app. GraphQL here refers to Instagram's internal web endpoint. They have different data, different auth, and different rules. **Do I need an Instagram account or session cookie?** No. You authenticate with your API key only. There's no sessionid, csrftoken, or Instagram login on your side, and no account of yours is at risk. **How much does it cost?** Profile lookups are 1 credit; posts and comments pages are 2 credits. Credits start at $8.00 per 1,000 and new accounts get 50 free. ### Instagram Unofficial API https://profilequery.com/instagram-unofficial-api Meta's Graph API only covers accounts you manage. Unofficial APIs reach any public account, but self-hosted libraries mean logging in with real accounts, rotating proxies, and fixing breakage. A hosted unofficial API gives you the coverage without the upkeep. Endpoints: /v1/profile, /v1/profile/posts, /v1/profile/followers, /v1/search/users **Is there an official Instagram API for public data?** Not for arbitrary accounts. Meta's Instagram Graph API covers business and creator accounts you've connected, plus limited Business Discovery and hashtag search (capped at 30 unique hashtags per 7 days). Reading any public profile at scale requires an unofficial API. **What's the difference between the Instagram private API and an unofficial API?** The "private API" is the set of endpoints Instagram's own apps use. Unofficial APIs are tools built on top of them: self-hosted libraries like instagrapi, or hosted services like this one that handle the sessions and proxies for you. **Will using this get my Instagram account banned?** No. You never give us an Instagram login, and requests don't touch your account. You authenticate with an API key only. **Is this a good instagrapi alternative?** If you're using instagrapi to read public data (profiles, posts, followers, comments, hashtags), yes: the same data without account logins or proxy management. If you need write actions like posting or DMs, instagrapi does things this API deliberately doesn't. **How much does it cost?** Most lookups are 1–2 credits. Credits start at $8.00 per 1,000 with no subscription, and new accounts get 50 free. ## Articles - [How to get Instagram data in 2026: your real options](https://profilequery.com/articles/instagram-api-options-2026) (2026-05-12): The official Graph API, scraping it yourself, or a data API like Profile Query: what each one actually gets you, and the trade-offs. Support: support@mail.profilequery.com