Skip to main content
POST
/
api
/
instagram
/
search
/
posts
/instagram/search/posts
curl --request POST \
  --url https://api.anysite.io/api/instagram/search/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "query": "Intel",
  "count": 123
}'
[
  {
    "@type": "InstagramPost",
    "id": "<string>",
    "code": "<string>",
    "url": "<string>",
    "image": "<string>",
    "text": "<string>",
    "created_at": 123,
    "like_count": 0,
    "comment_count": 0,
    "reshare_count": 0,
    "view_count": 123,
    "user": {
      "@type": "InstagramUserPreview",
      "id": "<string>",
      "name": "<string>",
      "alias": "<string>",
      "url": "<string>",
      "image": "<string>",
      "is_verified": false,
      "is_private": false
    },
    "type": "<string>",
    "media": [],
    "carousel_media_count": 0,
    "is_paid_partnership": false
  }
]

Headers

access-token
string
required

Body

application/json
query
string
required

Search query

Examples:

"Intel"

count
integer
required

Max result count

Required range: x > 0
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
code
string
required
url
string
required
image
string
required
@type
string
default:InstagramPost
text
string | null
created_at
integer | null
like_count
integer
default:0
comment_count
integer
default:0
reshare_count
integer
default:0
view_count
integer | null
user
object | null
type
string | null
media
InstagramMedia · object[]
is_paid_partnership
boolean
default:false
I