User Profile

Get a user profile media (one page)

Get part (one page) of user medias.

get/g2/user/medias

Request

  • Base URL: https://api.hikerapi.com
  • URL: https://api.hikerapi.com/g2/user/medias
  • Auth: API key in header x-access-key

Query parameters

user_idstring required
next_page_idstring
flatboolean

Response

User's profile media grid. Media counters (play_count, like_count, comment_count, etc.) are returned as Instagram sends them. For the next page, pass the envelope's next_page_id back as the next_page_id query parameter. Ignore the raw next_max_id inside response — it is IG-internal metadata, not the cursor for this endpoint.

responseobject required

Raw Instagram API response dict. Structure varies by endpoint.

next_page_idstring nullable required

Cursor for the next page. Pass as page_id in the next request. null if no more pages.

Example response

{
  "response": {
    "items": [
      {
        "...": "...",
        "id": "123456_789",
        "media_type": 1,
        "pk": 123456
      }
    ],
    "paging_info": {
      "max_id": "cursor_string",
      "more_available": true
    },
    "status": "ok"
  },
  "next_page_id": "QVFCcnhIWE82OUswLXBtNzlpZ0ZaUnhWZEhr..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.