Instagram API
  1. tags
Instagram API
  • geographies
    • Get recent media from a custom geo-id.
      GET
  • locations
    • Search for a location by geographic coordinate.
      GET
    • Get information about a location.
      GET
    • Get a list of recent media objects from a given location.
      GET
  • media
    • Get a list of currently popular media.
      GET
    • Search for media in a given area.
      GET
    • Get information about a media object.
      GET
    • Get information about a media object.
      GET
  • comments
    • Get a list of recent comments on a media object.
      GET
    • Create a comment on a media object.
      POST
    • Remove a comment.
      DELETE
  • likes
    • Remove a like on this media by the current user.
      DELETE
    • Get a list of users who have liked this media.
      GET
    • Set a like on this media by the current user.
      POST
  • tags
    • Search for tags by name.
      GET
    • Get information about a tag object.
      GET
    • Get a list of recently tagged media.
      GET
  • users
    • Search for a user by name.
      GET
    • See the authenticated user's feed.
      GET
    • See the list of media liked by the authenticated user.
      GET
    • Get basic information about a user.
      GET
    • Get the most recent media published by a user.
      GET
  • relationships
    • List the users who have requested this user's permission to follow.
    • Get the list of users this user is followed by.
    • Get the list of users this user follows.
    • Get information about a relationship to another user.
    • Modify the relationship between the current user and the target user.
  1. tags

Get a list of recently tagged media.

GET
/tags/{tag-name}/media/recent
tags
Get a list of recently tagged media. Use the max_tag_id and min_tag_id parameters in the pagination
response to paginate through these objects.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.instagram.com/tags//media/recent'
响应示例响应示例
{
    "data": [
        {
            "attribution": "string",
            "caption": {
                "created_time": "string",
                "from": {
                    "full_name": "string",
                    "id": "string",
                    "profile_picture": "string",
                    "username": "string"
                },
                "id": "string",
                "text": "string"
            },
            "comments": {
                "count": 0,
                "data": [
                    {
                        "created_time": "string",
                        "from": {
                            "full_name": "string",
                            "id": "string",
                            "profile_picture": "string",
                            "username": "string"
                        },
                        "id": "string",
                        "text": "string"
                    }
                ]
            },
            "created_time": "string",
            "filter": "string",
            "id": "string",
            "images": {
                "low_resolution": {
                    "height": 0,
                    "url": "string",
                    "width": 0
                },
                "standard_resolution": {
                    "height": 0,
                    "url": "string",
                    "width": 0
                },
                "thumbnail": {
                    "height": 0,
                    "url": "string",
                    "width": 0
                }
            },
            "likes": {
                "count": 0,
                "data": [
                    {
                        "full_name": "string",
                        "id": "string",
                        "profile_picture": "string",
                        "username": "string"
                    }
                ]
            },
            "link": "string",
            "location": {
                "id": "string",
                "latitude": 0,
                "longitude": 0,
                "name": "string"
            },
            "tags": [
                "string"
            ],
            "type": "image",
            "user": {
                "full_name": "string",
                "id": "string",
                "profile_picture": "string",
                "username": "string"
            },
            "user_has_liked": true,
            "users_in_photo": [
                {
                    "position": {
                        "x": 0,
                        "y": 0
                    },
                    "user": {
                        "full_name": "string",
                        "id": "string",
                        "profile_picture": "string",
                        "username": "string"
                    }
                }
            ],
            "videos": {
                "low_resolution": {
                    "height": 0,
                    "url": "string",
                    "width": 0
                },
                "standard_resolution": {
                    "height": 0,
                    "url": "string",
                    "width": 0
                }
            }
        }
    ],
    "meta": {
        "code": 0
    },
    "pagination": {
        "deprecation_warning": "string",
        "min_tag_id": "string",
        "next_max_id": "string",
        "next_max_tag_id": "string",
        "next_min_id": "string",
        "next_url": "string"
    }
}

请求参数

Path 参数
tag-name
string 
必需
The tag name.
Query 参数
count
integer 
可选
Count of tagged media to return.
min_tag_id
string 
可选
Return media before this min_tag_id.
max_tag_id
string 
可选
Return media after this max_tag_id.

返回响应

🟢200成功
application/json
List of media entries with this tag.
Body
data
array[object (MediaEntry) {16}] 
可选
List of media entries with this tag
attribution
string 
可选
??? Unknown ???
caption
object (CaptionData) 
可选
comments
object (CommentsCollection) 
可选
created_time
string 
可选
Media creation UNIX timestamp
filter
string 
可选
Filter of this media entry
id
string 
可选
ID of a media entry
images
object (ImagesData) 
可选
likes
object (LikesCollection) 
可选
link
string 
可选
Fixed URL of this media entry
location
object (LocationInfo) 
可选
tags
array[string]
可选
List of tags assigned to this media
type
enum<string> 
可选
Type of this media entry
枚举值:
imagevideo
user
object (UserShortInfo) 
可选
user_has_liked
boolean 
可选
Indicates whether authenticated user has liked this media or not
users_in_photo
array[object (UserInPhoto) {2}] 
可选
Users located on this media entry
videos
object (VideosData) 
可选
meta
object (MetaData) 
可选
code
integer <int32>
可选
HTTP result code
pagination
object (TagPaginationInfo) 
可选
deprecation_warning
string 
可选
The deprication warning, if information is available
min_tag_id
string 
可选
The min ID of a tag for the next page
next_max_id
string 
可选
Depricated. Use min_tag_id instead
next_max_tag_id
string 
可选
The max ID of a tag for the next page
next_min_id
string 
可选
Depricated. Use max_tag_id instead
next_url
string 
可选
URL to retrieve next page of entries

【Instagram】API开发者 微信交流群

用微信扫右侧二维码,加入【Instagram】API开发者 交流群,互助沟通

扫码加入交流群
修改于 2025-04-24 01:41:10
上一页
Get information about a tag object.
下一页
Search for a user by name.
Built with