API DocsinstagramDataGet explore feed
Get explore feed
What this API is for
- Get Instagram Explore/Discover page recommended posts
- Returns personalized recommended post list
- Support pagination to fetch more recommendations
GET
/openapi/api/v1/instagram/v3/get_explorePrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- max_id: Pagination cursor, omit for first request, get from previous response data.next_max_id
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| max_id | query / string | No |
|
Request body example
# 第一页 / First page (不传参数 / no parameters) # 第二页 / Second page # max_id = "..." # 从第一页响应中获取 / Get from first page response
Request examples
curl -X GET "https://api.trmesh.com/openapi/api/v1/instagram/v3/get_explore" \ -H "Authorization: Bearer sdc_your_project_token" \ -H "Accept: application/json"
Response fields
- data.sectional_items: Recommended content section list
- layout_content.medias: Media list
- media.id: Post ID
- media.code: Post shortcode
- media.media_type: Media type (1=image, 2=video, 8=carousel)
- media.like_count: Likes count
- media.comment_count: Comments count
- media.caption.text: Post caption text
- media.user: Publisher info
- media.image_versions2: Image version list
- media.video_versions: Video version list (exists for videos)
- data.next_max_id: Next page cursor (use as max_id in next request)
- data.more_available: Whether has more content
| Field | Type | Notes | Example |
|---|---|---|---|
| data.sectional_items | unknown |
| |
| layout_content.medias | unknown |
| |
| media.id | unknown |
| |
| media.code | unknown |
| |
| media.media_type | unknown |
| |
| media.like_count | unknown |
| |
| media.comment_count | unknown |
| |
| media.caption.text | unknown |
| |
| media.user | unknown |
| |
| media.image_versions2 | unknown |
| |
| media.video_versions | unknown |
| |
| data.next_max_id | unknown |
| |
| data.more_available | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples