Skip to content
Docs

List a profile's posts

Early access. Tell us what you're building and we'll set you up. Contact us

GETapi.lempile.com/api/v1/users/{identifier}/posts

A person's posts and reels, newest first, as the profile shows them. A private account's posts can only be read when the account follows it.

Scope: accounts.read.

Authentication

X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.

Path parameters

  • identifierstringrequired

    The person's username, @username, profile link or provider_id. A numeric id works once the account has seen that person (in a chat, a follower list, a profile read); otherwise 400 asks for the username.

Query parameters

  • account_idstringrequired

    The connected Instagram account: its Lempile id (a UUID), its Instagram user id or its username.

  • limitinteger

    1 to 100 (default 10).

    Default10≥ 1 · ≤ 100
  • cursorstring

    The previous page's cursor.

Responses

200

Posts.

›

application/json

  • objectany
    AlwaysPostList
  • itemsarray of Post
    ›Show fields
    • objectany
      AlwaysPost
    • providerany
      AlwaysINSTAGRAM
    • provider_idstring
    • has_audioboolean
    • has_likedboolean
    • like_countinteger
    • comment_countinteger
    • like_and_view_counts_disabledboolean
    • comments_disabledboolean
    • accessibility_captionstring | null
    • captionobject
      ›Show fields
      • editedboolean
      • has_translationboolean
      • created_atinteger

        When it was posted, in seconds since 1970.

      • textstring
    • preview_imageobject
      ›Show fields
      • urlstring
      • widthinteger
      • heightinteger
    • videoobject

      A video or reel.

      ›Show fields
      • urlstring
      • widthinteger
      • heightinteger
    • ownerobject
      ›Show fields
      • idstring
      • usernamestring
      • profile_pic_urlstring
      • is_verifiedboolean
      • is_privateboolean
    • locationobject
      ›Show fields
      • namestring
      • latnumber
      • lngnumber
  • cursorstring | null

    Pass it back as cursor for the next page; null when there's no more.

  • pagingobject
    ›Show fields
    • page_countinteger
400

errors/invalid_parameters: a field Lempile won't take; detail names it. Nothing was opened.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
401

A missing or invalid API key answers { "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.

›

application/json

  • errorstringrequired
  • messagestring
402

subscription_required (in error): the workspace has no active trial or subscription.

›

application/json

  • errorstringrequired
  • messagestring
403

errors/insufficient_permissions (the key lacks the scope), errors/account_restricted (Instagram blocked the action, restricted the account or asks for a check: someone has to look at it on Instagram) or errors/action_required (the account waits for something done on Instagram itself; account_status and reason say what).

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
404

errors/resource_not_found: no such account in this workspace, or no such chat, message, person or post.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
429

errors/too_many_requests: the account's pace (code: too_fast, daily_limit or hourly_limit; wait until retry_at), or Instagram's own "Try again later" (retry_after: 86400: wait a day before writing from the account again). Nothing was done.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
501

errors/feature_not_implemented: a field or option Lempile doesn't do for Instagram (detail says which), or an account of another network. Nothing was done.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
503

errors/service_unavailable: the account isn't ready yet, or its browser can't be reached right now. Nothing was done.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
504

errors/request_timeout: Instagram didn't answer within 100 seconds. A read changed nothing: try again.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time

Was this page helpful?