Get Post
curl --request GET \
--url https://api.scraper.creatorlookup.com/v1/instagram/post \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraper.creatorlookup.com/v1/instagram/post"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraper.creatorlookup.com/v1/instagram/post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraper.creatorlookup.com/v1/instagram/post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraper.creatorlookup.com/v1/instagram/post"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraper.creatorlookup.com/v1/instagram/post")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraper.creatorlookup.com/v1/instagram/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"shortcode": "<string>",
"caption": {},
"timestamp": 123,
"like_count": 123,
"comment_count": 123,
"media_type": "<string>",
"media_url": "<string>",
"thumbnail_url": {},
"is_video": true,
"video_view_count": {},
"location": {},
"tagged_users": [
"<string>"
],
"hashtags": [
"<string>"
]
},
"credits_used": 123,
"credits_remaining": 123
}Instagram
Get Post
Retrieve a single Instagram post by shortcode
GET
/
v1
/
instagram
/
post
Get Post
curl --request GET \
--url https://api.scraper.creatorlookup.com/v1/instagram/post \
--header 'x-api-key: <api-key>'import requests
url = "https://api.scraper.creatorlookup.com/v1/instagram/post"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.scraper.creatorlookup.com/v1/instagram/post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scraper.creatorlookup.com/v1/instagram/post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scraper.creatorlookup.com/v1/instagram/post"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scraper.creatorlookup.com/v1/instagram/post")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scraper.creatorlookup.com/v1/instagram/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"shortcode": "<string>",
"caption": {},
"timestamp": 123,
"like_count": 123,
"comment_count": 123,
"media_type": "<string>",
"media_url": "<string>",
"thumbnail_url": {},
"is_video": true,
"video_view_count": {},
"location": {},
"tagged_users": [
"<string>"
],
"hashtags": [
"<string>"
]
},
"credits_used": 123,
"credits_remaining": 123
}Request
Headers
| Name | Required | Description |
|---|---|---|
x-api-key | Yes | Your API key |
Query parameters
string
required
The post shortcode. This is the unique identifier in Instagram post URLs:
https://www.instagram.com/p/{shortcode}/Response
object
Show InstagramPost
Show InstagramPost
string
Unique post identifier
string | null
Post caption text
number
Unix timestamp
number
Number of likes
number
Number of comments
string
One of:
image, video, carouselstring
URL of the primary media
string | null
Thumbnail URL (for videos)
boolean
Whether the post is a video
number | null
View count (videos only)
string | null
Tagged location name
string[]
Usernames tagged in the post
string[]
Hashtags extracted from the caption
number
Credits deducted (1)
number
Remaining credit balance
Examples
curl -H "x-api-key: sk-your-api-key" \
"https://api.scraper.creatorlookup.com/v1/instagram/post?shortcode=CxAbCdEfGh"
const res = await fetch(
"https://api.scraper.creatorlookup.com/v1/instagram/post?shortcode=CxAbCdEfGh",
{ headers: { "x-api-key": "sk-your-api-key" } }
);
const { data } = await res.json();
console.log(data.caption);
console.log(data.like_count);
console.log(data.media_type); // "image", "video", or "carousel"
import requests
res = requests.get(
"https://api.scraper.creatorlookup.com/v1/instagram/post",
params={"shortcode": "CxAbCdEfGh"},
headers={"x-api-key": "sk-your-api-key"},
)
data = res.json()["data"]
print(data["caption"])
print(data["like_count"])
print(data["media_type"]) # "image", "video", or "carousel"
200 — Success
{
"data": {
"shortcode": "CxAbCdEfGh",
"caption": "Beautiful sunset #nature #photography",
"timestamp": 1700000000,
"like_count": 50000,
"comment_count": 800,
"media_type": "carousel",
"media_url": "https://scontent.cdninstagram.com/...",
"thumbnail_url": null,
"is_video": false,
"video_view_count": null,
"location": "Malibu, California",
"tagged_users": [],
"hashtags": ["nature", "photography"]
},
"credits_used": 1,
"credits_remaining": 9999
}
502 — Scrape failed
{
"error": {
"code": "SCRAPE_FAILED",
"message": "Post not found or has been removed"
}
}
⌘I