Instagram Profile API Documentation
Instagram Profile API retrieves public profile information for a specified Instagram username, including name, avatar, bio, followers, following, recent posts and more.
API Parameters
Search Query
-
- Name
-
username - Required
- Required
- Description
-
Parameter defines the username of the Instagram profile you want to search.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
instagram_profile.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Profile Data
https://www.searchapi.org/api/v1/search?engine=instagram_profile&username=cristiano
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "instagram_profile",
"username": "cristiano"
}
response = requests.get(url, params=params)
print(response.text)
{
"profile": {
"username": "cristiano",
"name": "Cristiano Ronaldo",
"bio": "SIUUUbscribe to my Youtube Channel!",
"avatar": "https://scontent-dfw5-2.cdninstagram.com/v/t51.2885-19/472007201_1142000150877579_994350541752907763_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QGKOlY8cD4DS2dyneOy5r7FpXRBIAFwhHnNmOfmYQVihCC2Wc6V9ERb12CeQbnlF0o&_nc_ohc=hYWdjeCVamwQ7kNvwFOoshb&_nc_gid=TiM1qEdsGfE2shYaYuEMhg&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AfdnQRUlNaEOlTXz-j7YWeC3iSGp9XuptNvC_3rhsJCCBQ&oe=69069F9E&_nc_sid=8b3546",
"avatar_hd": "https://scontent-dfw5-2.cdninstagram.com/v/t51.2885-19/472007201_1142000150877579_994350541752907763_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QGKOlY8cD4DS2dyneOy5r7FpXRBIAFwhHnNmOfmYQVihCC2Wc6V9ERb12CeQbnlF0o&_nc_ohc=hYWdjeCVamwQ7kNvwFOoshb&_nc_gid=TiM1qEdsGfE2shYaYuEMhg&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AfffVxjiBTJwpBBQGCBOXpmcEbJMrGQUnzf1tbk-nHI8Mg&oe=69069F9E&_nc_sid=8b3546",
"is_verified": true,
"is_business": true,
"posts": 3957,
"followers": 666962258,
"following": 614,
"external_link": "http://avacr7.com/en",
"bio_links": [
{
"title": "AVA",
"url": "http://avacr7.com/en"
}
]
}
}
Posts
https://www.searchapi.org/api/v1/search?engine=instagram_profile&username=sydney_sweeney
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.org/api/v1/search"
params = {
"engine": "instagram_profile",
"username": "sydney_sweeney"
}
response = requests.get(url, params=params)
print(response.text)
{
"posts": [
{
"position": 1,
"id": "DSX1VJGFHJi",
"permalink": "https://www.instagram.com/p/DSX1VJGFHJi/",
"type": "carousel",
"link": "https://scontent-mia5-1.cdninstagram.com/v/t51.2885-15/598939008_18551557942012454_5265855618815913400_n.jpg?stp=dst-jpg_e35_s1080x1080_sh0.08_tt6&_nc_ht=scontent-mia5-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QEZ3hJpypOUTSkKk_TKNbKZrlS1qhtFiKePD0Pd53kSz-OHo-znFhsCsqmubVyWZXY&_nc_ohc=jBrWAI3CD8oQ7kNvwGmrceg&_nc_gid=Y7XG1dIyxBE45N6gTNulgw&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_Afm19FTL56GiiGYEteiFM97BIM30SCdHE5y2zuI798QzIA&oe=6949926A&_nc_sid=8b3546",
"width": 1080,
"height": 1080,
"thumbnail": "https://scontent-mia5-1.cdninstagram.com/v/t51.2885-15/598939008_18551557942012454_5265855618815913400_n.jpg?stp=dst-jpg_e35_s640x640_sh0.08_tt6&_nc_ht=scontent-mia5-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QEZ3hJpypOUTSkKk_TKNbKZrlS1qhtFiKePD0Pd53kSz-OHo-znFhsCsqmubVyWZXY&_nc_ohc=jBrWAI3CD8oQ7kNvwGmrceg&_nc_gid=Y7XG1dIyxBE45N6gTNulgw&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AfmoJjf8lAWmomrY9H6ckNWcr4Rti9hv2opa_t4B5xi7-g&oe=6949926A&_nc_sid=8b3546",
"caption": "two more days!!! @housemaidmovie ❤️ (ps trying to decide between my long or short hair rn pls help @kerastase_official)",
"likes": 1665781,
"comments": 6865,
"iso_date": "2025-12-29T16:37:44.079Z",
"tagged_users": [
{
"username": "mingey",
"name": "Amanda Seyfried💛",
"is_verified": true
},
...
],
"carousel_items": [
{
"position": 1,
"id": "DSX1U55lJ-e",
"type": "image",
"link": "https://scontent-mia5-1.cdninstagram.com/v/t51.2885-15/598939008_18551557942012454_5265855618815913400_n.jpg?stp=dst-jpg_e35_s1080x1080_sh0.08_tt6&_nc_ht=scontent-mia5-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QEZ3hJpypOUTSkKk_TKNbKZrlS1qhtFiKePD0Pd53kSz-OHo-znFhsCsqmubVyWZXY&_nc_ohc=jBrWAI3CD8oQ7kNvwGmrceg&_nc_gid=Y7XG1dIyxBE45N6gTNulgw&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_Afm19FTL56GiiGYEteiFM97BIM30SCdHE5y2zuI798QzIA&oe=6949926A&_nc_sid=8b3546",
"width": 1080,
"height": 1080
},
...
]
}
]
}