Recent public Instagram posts for a hashtag id
instagram.x.hashtag-recent-mediaThe most recent public posts carrying a hashtag
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/instagram.x.hashtag-recent-mediaPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
ig_hashtag_id | string | Required | id returned by instagram.x.hashtag-search | 17843800000000000 |
| Query parameters | ||||
limit | integer | Optional | 25 | |
fields | string | Optional | id,caption,media_type,permalink,timestamp | |
user_id | string | Required | Instagram Professional account id making the lookup | 17841400000000000 |
- Path parameters
ig_hashtag_idstringRequiredid returned by instagram.x.hashtag-search
Example:
17843800000000000- Query parameters
limitintegerOptionalExample:
25fieldsstringOptionalExample:
id,caption,media_type,permalink,timestampuser_idstringRequiredInstagram Professional account id making the lookup
Example:
17841400000000000
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.x.hashtag-recent-media' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.x.hashtag-recent-media",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/instagram.x.hashtag-recent-media", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.