用户资料
通过用户名获取 Instagram 用户资料。使用该接口在进行创作者研究、品牌监测或相关帖子分析之前审查已知账号。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
username |
必填 | string | 要检索个人资料详情的Instagram用户名。 | nasa |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/instagram/get_user_detail_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'username=nasa'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/instagram/get_user_detail_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"username": "nasa",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/instagram/get_user_detail_v1");
url.search = new URLSearchParams({
username: "nasa",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 3617 ms · 请求参数 {"username": "nasa"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "instagram.get_user_detail_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"data": {
"user": {
"id": "528817151",
"…": "+9",
"fbid": "17841401474538262",
"eimu_id": null,
"bio_links": [
{
"url": "https://www.nasa.gov",
"title": "NASA.gov Homepage",
"lynx_url": "https://l.instagram.com/?u=https%3A%2F%2Fwww.nasa.gov%2F&e=AUCQ5ipPlyx08-Qab1KxThajqS4N13_pgM2KBl9iQS_Dk-fDlX_Hm9RUbaT4F9caBM7hGWtJV44Jy7P9jh2NfgGA-dafq8oZ0RJqBRf6Q1vGLU6KQCUdnjbbL3ydLoB3uqsiXAKH-IRJX…",
"link_type": "external"
},
{
"url": "https://www.nasa.gov/maxpower",
"title": "MAX POWER",
"lynx_url": "https://l.instagram.com/?u=https%3A%2F%2Fwww.nasa.gov%2Fmaxpower&e=AUB20zN2B0mm7BACGBlRD5iDrSamubTuBEW4rR_JUl0OuymAih14yC_-pyVOUBBUS2rXJpMD_SeFi-LlCdgBPhKeVnYvG4eqXh1qZ4X7DzEi13DXr7pZ43pGzi5aYJ9EMqXbJ…",
"link_type": "external"
},
"… +3"
],
"biography": "Making the seemingly impossible, possible. ✨",
"full_name": "NASA",
"has_clips": true,
"has_guides": false,
"is_private": false,
"edge_follow": {
"count": 90
},
"guardian_id": null,
"has_channel": false,
"is_verified": true,
"external_url": "https://www.nasa.gov",
"ai_agent_type": null,
"category_enum": null,
"category_name": "",
"country_block": false,
"business_email": null,
"follows_viewer": false,
"group_metadata": null,
"has_ar_effects": false,
"profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-webp_s150x150&_nc_cat=1&ig_cache_key=GBLhuwEsG5c225AAAAAAAADj9-wPbkULAAAB1501500j-ccb7-5&ccb=…",
"edge_followed_by": {
"count": 104397870
},
"is_regulated_c18": false,
"blocked_by_viewer": false,
"fb_profile_biolink": null,
"followed_by_viewer": false,
"has_blocked_viewer": false,
"is_embeds_disabled": false,
"is_joined_recently": false,
"is_supervised_user": false,
"profile_pic_url_hd": "https://scontent.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-webp&_nc_cat=1&ig_cache_key=GBLhuwEsG5c225AAAAAAAADj9-wPbkULAAAB0j-ccb7-5&ccb=7-5&_nc_sid=669…",
"is_business_account": false,
"is_verified_by_mv4b": false,
"requested_by_viewer": false,
"has_requested_viewer": false,
"highlight_reel_count": 0,
"restricted_by_viewer": null,
"should_show_category": true,
"business_address_json": "{\"city_name\":null,\"city_id\":null,\"latitude\":null,\"longitude\":null,\"street_address\":null,\"zip_code\":null}",
"business_phone_number": null,
"is_guardian_of_viewer": false,
"overall_category_name": null,
"business_category_name": null,
"is_supervision_enabled": false,
"ai_agent_owner_username": null,
"biography_with_entities": {
"entities": [],
"raw_text": "Making the seemingly impossible, possible. ✨"
},
"business_contact_method": null,
"edge_mutual_followed_by": {
"count": 0,
"edges": []
},
"is_professional_account": true,
"is_supervised_by_viewer": false,
"external_url_linkshimmed": "https://l.instagram.com/?u=https%3A%2F%2Fwww.nasa.gov%2F&e=AUCweLDOXZ5o89dyRQKgmnWuHcLUGgqPnsV3ubb9svfwB21xZyMESE-PDqGahpMWjD6kL8eg4CLWtzHFt3eB5Sfc94aQ8EondBaEinTx6iWi3fhn8sh49itjqZji-LIHlSNKh8QG9aGtw…",
"show_text_post_app_badge": true,
"hide_like_and_view_counts": false,
"remove_message_entrypoint": false,
"pinned_channels_list_count": 0,
"should_show_public_contacts": true,
"has_onboarded_to_text_post_app": true,
"show_account_transparency_details": true
}
},
"status": "ok",
"attempts": "0"
},
"message": null,
"requestId": "7eb2283ceca84835b12c6cbc54deb34a",
"recordTime": "2026-11-08T07:59:58.4772917",
"requestParams": {
"body": null,
"query": {
"username": "nasa"
}
}
}
}