> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取用户信息

> 获取Instagram用户的详细信息，支持通过用户名或用户ID查询

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">2 credits</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">每次请求</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 让 AI 帮你写调用代码</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。</p>
  </div>

  <div className="mt-4">
    <button type="button" className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50" onClick={() => navigator.clipboard.writeText("我想调用 KeyAPI 接口：GET https://api.keyapi.ai/v1/instagram/fetch_user_info\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/instagram/fetch_user_info\n\nDescription: Instagram 的「用户资料」接口用于根据指定标识查询完整信息，返回基础资料、统计指标以及示例中的扩展字段。可结合接口参数进行筛选或分页查询。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- username (Optional): 用户名. Example: instagram\n- user_id (Optional): 用户 ID. Example: 18527\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"data\": {\n      \"about\": {\n        \"accounts_with_shared_followers\": null,\n        \"country\": \"United States\",\n        \"date_joined\": \"February 2012\",\n        \"date_joined_as_timestamp\": 1328054400,\n        \"date_verified\": null,\n        \"date_verified_as_timestamp\": null,\n        \"former_usernames\": 0,\n        \"id\": 25025320,\n        \"is_verified\": true,\n        \"username\": null\n      },\n      \"account_badges\": [],\n      \"account_category\": \"\",\n      \"account_type\": 3,\n      \"active_standalone_fundraisers\": {\n        \"fundraisers\": [],\n        \"total_count\": 0\n      },\n      \"additional_business_addresses\": [],\n      \"adjusted_banners_order\": [],\n      \"ads_incentive_expiration_date\": null,\n      \"ads_page_id\": null,\n      \"ads_page_name\": null,\n      \"aigm_account_label_info\": {\n        \"is_auto_detected\": false,\n        \"is_enabled\": false,\n        \"is_manually_enabled\": false\n      },\n      \"allow_manage_memorialization\": false,\n      \"avatar_status\": {\n        \"has_avatar\": false\n      },\n      \"bio_links\": [\n        {\n          \"creation_source\": \"NONE\",\n          \"icon_url\": \"\",\n          \"image_url\": \"\",\n          \"is_pinned\": false,\n          \"is_verified\": false,\n          \"link_id\": 18127096636551316,\n          \"link_type\": \"external\",\n          \"lynx_url\": \"https://l.instagram.com/?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv8n-AOe200s%26fbclid%3DPAZXh0bgNhZW0CMTEAc3J0YwZhcHBfaWQPNTY3MDY3MzQzMzUyNDI3AAGnkItq4tvhA83LAEgLoZIILha6WVQsa4WTIVTuxy0g6VeAzjYgPdze9nStgyU_aem_VmgAeOpdcNAHz3x-qtkVOw&e=AT4Yq7SimHxPFAsqUc8hTJecksusUCO2c_EY2Z7vt71T7-v_VAuIZLkVjxw7pJSKgL74xsp-SH9U_i3_lL7q58R4TwV6bLxVhST96r9Zrw\",\n          \"media_accent_color_hex\": \"\",\n          \"media_type\": \"none\",\n          \"open_external_url_with_in_app_browser\": true,\n          \"title\": \"\",\n          \"url\": \"https://www.youtube.com/watch?v=v8n-AOe200s\"\n        }\n      ],\n      \"biography\": \"Discover what's new on Instagram 🔎✨\",\n      \"biography_email\": null,\n      \"biography_with_entities\": {\n        \"entities\": [],\n        \"raw_text\": \"Discover what's new on Instagram 🔎✨\"\n      },\n      \"birthday_today_visibility_for_viewer\": \"NOT_VISIBLE\",\n      \"broadcast_chat_preference_status\": {\n        \"json_response\": \"{\\\"status\\\":\\\"ok\\\",\\\"status_code\\\":\\\"200\\\",\\\"is_broadcast_chat_creator\\\":true,\\\"notification_setting_type\\\":2}\"\n      },\n      \"business_contact_method\": \"UNKNOWN\",\n      \"can_add_fb_group_link_on_profile\": false,\n      \"can_hide_category\": true,\n      \"can_hide_public_contacts\": true,\n      \"can_send_direct_message\": true,\n      \"can_use_affiliate_partnership_messaging_as_brand\": false,\n      \"can_use_affiliate_partnership_messaging_as_creator\": false,\n      \"can_use_branded_content_discovery_as_brand\": false,\n      \"can_use_branded_content_discovery_as_creator\": false,\n      \"can_use_paid_partnership_messaging_as_creator\": false,\n      \"category\": \"\",\n      \"category_id\": \"0\",\n      \"chaining_upsell_cards\": [],\n      \"contact_phone_number\": \"\",\n      \"creator_shopping_info\": {\n        \"linked_merchant_accounts\": []\n      },\n      \"current_catalog_id\": null,\n      \"direct_messaging\": \"\",\n      \"disable_profile_shop_cta\": false,\n      \"eligible_for_text_app_activation_badge\": false,\n      \"enable_add_school_in_edit_profile\": false,\n      \"existing_user_age_collection_enabled\": true,\n      \"external_lynx_url\": \"https://l.instagram.com/?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv8n-AOe200s%26fbclid%3DPAZXh0bgNhZW0CMTEAc3J0YwZhcHBfaWQPNTY3MDY3MzQzMzUyNDI3AAGn-aHJSQ3GUi-0XGqGDIhACRfgMXZxQ5wU_KOzgl75Uspg8oAQrMsNsOnzV7c_aem_n9dcO6CnXU1PgheLpBZdRA&e=AT69NMn4jWWE4zphF-xXAY1BhYYgYPeVHqp9dlm0uFR_6hQfloRFNnGfbt5RHqKiyYsNzKtcupPR9fVMW2ZwrhoF93AWBi9T9bNHpwv7Pw\",\n      \"external_url\": \"https://www.youtube.com/watch?v=v8n-AOe200s\",\n      \"fan_club_info\": {\n        \"autosave_to_exclusive_highlight\": null,\n        \"connected_member_count\": null,\n        \"fan_club_id\": null,\n        \"fan_club_name\": null,\n        \"fan_consideration_page_revamp_eligiblity\": null,\n        \"has_created_ssc\": null,\n        \"has_enough_subscribers_for_ssc\": null,\n        \"is_fan_club_gifting_eligible\": null,\n        \"is_fan_club_referral_eligible\": null,\n        \"is_free_trial_eligible\": null,\n        \"largest_public_bc_id\": null,\n        \"should_show_playlists_in_profile_tab\": null,\n        \"subscriber_count\": null\n      },\n      \"fbid_v2\": \"17841400039600391\",\n      \"feed_post_reshare_disabled\": false,\n      \"follow_friction_type\": 0,\n      \"follower_count\": 700536405,\n      \"following_count\": 211,\n      \"full_name\": \"Instagram\",\n      \"has_anonymous_profile_picture\": false,\n      \"has_collab_collections\": false,\n      \"has_ever_selected_topics\": false,\n      \"has_exclusive_feed_content\": false,\n      \"has_fan_club_subscriptions\": false,\n      \"has_gen_ai_personas_for_profile_banner\": false,\n      \"has_guides\": false,\n      \"has_highlight_reels\": true,\n      \"has_music_on_profile\": false,\n      \"has_nme_badge\": false,\n      \"has_private_collections\": true,\n      \"has_public_tab_threads\": true,\n      \"has_videos\": true,\n      \"has_views_fetching\": true,\n      \"has_visible_media_notes\": true,\n      \"hd_profile_pic_url_info\": {\n        \"height\": 1080,\n        \"url\": \"https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB0j-ccb7-5&oh=00_Afx498_UwHcuHky8NXA5cPNScNoSjXX9WNZBvsQ7Nnk05g&oe=69B55867&_nc_sid=164c1d\",\n        \"width\": 1080\n      },\n      \"hd_profile_pic_versions\": [\n        {\n          \"height\": 320,\n          \"url\": \"https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB3203200j-ccb7-5&oh=00_AfyjQyqmwS8YvMdq_LvEl-vihaaLa-rHwG-nanLb7EYPhQ&oe=69B55867&_nc_sid=164c1d\",\n          \"width\": 320\n        },\n        {\n          \"height\": 640,\n          \"url\": \"https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB6406400j-ccb7-5&oh=00_Afyo7UQv7blHiMor2KKunNXrU71s3VzX-9EKrZ2qnlhZyw&oe=69B55867&_nc_sid=164c1d\",\n          \"width\": 640\n        }\n      ],\n      \"highlight_reshare_disabled\": false,\n      \"highlights_tray_type\": \"DEFAULT\",\n      \"id\": \"25025320\",\n      \"include_direct_blacklist_status\": true,\n      \"instagram_pk\": \"25025320\",\n      \"interop_messaging_user_fbid\": 117943452927407,\n      \"is_active_on_text_post_app\": true,\n      \"is_auto_confirm_enabled_for_all_reciprocal_follow_requests\": false,\n      \"is_bestie\": false,\n      \"is_business\": false,\n      \"is_call_to_action_enabled\": false,\n      \"is_cannes\": false,\n      \"is_category_tappable\": false,\n      \"is_coppa_enforced\": false,\n      \"is_creator_agent_enabled\": false,\n      \"is_creator_marketplace_badge_visible\": false,\n      \"is_daily_limit_blocking\": false,\n      \"is_direct_roll_call_enabled\": true,\n      \"is_eligible_for_creator_product_links\": false,\n      \"is_eligible_for_meta_verified_enhanced_link_sheet\": false,\n      \"is_eligible_for_meta_verified_enhanced_link_sheet_consumption\": false,\n      \"is_eligible_for_meta_verified_ig_self_profile_not_verified_badge\": false,\n      \"is_eligible_for_meta_verified_label\": true,\n      \"is_eligible_for_meta_verified_links_in_post\": false,\n      \"is_eligible_for_meta_verified_links_in_reels\": false,\n      \"is_eligible_for_meta_verified_multiple_addresses_consumption\": false,\n      \"is_eligible_for_meta_verified_multiple_addresses_creation\": false,\n      \"is_eligible_for_meta_verified_related_accounts\": false,\n      \"is_eligible_for_post_boost_mv_upsell\": false,\n      \"is_eligible_for_schools_search_upsell\": false,\n      \"is_eligible_for_slide\": false,\n      \"is_facebook_onboarded_charity\": false,\n      \"is_favorite\": false,\n      \"is_favorite_for_clips\": false,\n      \"is_favorite_for_highlights\": false,\n      \"is_favorite_for_stories\": false,\n      \"is_guardian_r_account_cannes_pair\": false,\n      \"is_in_canada\": false,\n      \"is_interest_account\": true,\n      \"is_memorialized\": false,\n      \"is_meta_verified_related_accounts_display_enabled\": false,\n      \"is_new_to_instagram\": false,\n      \"is_onboarding_account\": false,\n      \"is_opal_enabled\": false,\n      \"is_open_to_collab\": false,\n      \"is_oregon_custom_gender_consented\": false,\n      \"is_parenting_account\": false,\n      \"is_potential_business\": false,\n      \"is_prime_onboarding_account\": false,\n      \"is_private\": false,\n      \"is_profile_audio_call_enabled\": false,\n      \"is_profile_broadcast_sharing_enabled\": true,\n      \"is_profile_picture_expansion_enabled\": true,\n      \"is_profile_search_enabled\": false,\n      \"is_profile_wa_calling_enabled\": false,\n      \"is_recon_ad_cta_on_profile_eligible_with_viewer\": true,\n      \"is_regulated_c18\": false,\n      \"is_regulated_news_in_viewer_location\": false,\n      \"is_remix_setting_enabled_for_posts\": true,\n      \"is_remix_setting_enabled_for_reels\": true,\n      \"is_ring_creator\": false,\n      \"is_secondary_account_creation\": false,\n      \"is_stories_teaser_muted\": false,\n      \"is_supervision_features_enabled\": false,\n      \"is_verified\": true,\n      \"is_whatsapp_linked\": false,\n      \"latest_besties_reel_media\": 0,\n      \"latest_reel_media\": 1773073537,\n      \"live_subscription_status\": \"default\",\n      \"location_data\": {\n        \"address_street\": \"\",\n        \"city_id\": \"0\",\n        \"city_name\": \"\",\n        \"instagram_location_id\": \"367152833370567\",\n        \"latitude\": 0,\n        \"longitude\": 0,\n        \"zip\": \"\"\n      },\n      \"media_count\": 8360,\n      \"merchant_checkout_style\": \"none\",\n      \"meta_verified_benefits_info\": {\n        \"active_meta_verified_benefits\": [],\n        \"is_eligible_for_ig_meta_verified_label\": false,\n        \"is_eligible_for_meta_verified_content_protection\": false\n      },\n      \"meta_verified_related_accounts_count\": 0,\n      \"nametag\": {\n        \"available_theme_colors\": [\n          -1,\n          7747834,\n          13828293,\n          16712041,\n          16742912,\n          0\n        ],\n        \"background_image_url\": \"\",\n        \"emoji\": \"😀\",\n        \"emoji_color\": 0,\n        \"gradient\": 2,\n        \"is_background_image_blurred\": true,\n        \"mode\": 0,\n        \"selected_theme_color\": -1,\n        \"selfie_sticker\": 0,\n        \"selfie_url\": \"\",\n        \"theme_color\": {\n          \"available_theme_colors\": [\n            {\n              \"display_label\": \"Default\",\n              \"int_value\": -1\n            },\n            {\n              \"display_label\": \"Purple\",\n              \"int_value\": 7747834\n            },\n            {\n              \"display_label\": \"Lavender\",\n              \"int_value\": 13828293\n            },\n            {\n              \"display_label\": \"Pink\",\n              \"int_value\": 16712041\n            },\n            {\n              \"display_label\": \"Orange\",\n              \"int_value\": 16742912\n            },\n            {\n              \"display_label\": \"Black\",\n              \"int_value\": 0\n            }\n          ],\n          \"selecte\n... truncated ...\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/instagram.zh.openapi.json GET /v1/instagram/fetch_user_info
openapi: 3.0.1
info:
  title: Instagram API 中文文档
  description: Instagram API 的中文参考文档，包含接口用途、参数说明、响应状态和示例结构。
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/instagram/fetch_user_info:
    get:
      tags: []
      summary: 获取用户信息
      description: 获取Instagram用户的详细信息，支持通过用户名或用户ID查询
      parameters:
        - name: username
          in: query
          description: 用户名（与user_id二选一）
          required: false
          example: instagram
          schema:
            type: string
            example: instagram
        - name: user_id
          in: query
          description: 用户ID（与username二选一）
          required: false
          example: '18527'
          schema:
            type: string
            example: '18527'
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  data:
                    about:
                      accounts_with_shared_followers: null
                      country: United States
                      date_joined: February 2012
                      date_joined_as_timestamp: 1328054400
                      date_verified: null
                      date_verified_as_timestamp: null
                      former_usernames: 0
                      id: 25025320
                      is_verified: true
                      username: null
                    account_badges: []
                    account_category: ''
                    account_type: 3
                    active_standalone_fundraisers:
                      fundraisers: []
                      total_count: 0
                    additional_business_addresses: []
                    adjusted_banners_order: []
                    ads_incentive_expiration_date: null
                    ads_page_id: null
                    ads_page_name: null
                    aigm_account_label_info:
                      is_auto_detected: false
                      is_enabled: false
                      is_manually_enabled: false
                    allow_manage_memorialization: false
                    avatar_status:
                      has_avatar: false
                    bio_links:
                      - creation_source: NONE
                        icon_url: ''
                        image_url: ''
                        is_pinned: false
                        is_verified: false
                        link_id: 18127096636551316
                        link_type: external
                        lynx_url: >-
                          https://l.instagram.com/?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv8n-AOe200s%26fbclid%3DPAZXh0bgNhZW0CMTEAc3J0YwZhcHBfaWQPNTY3MDY3MzQzMzUyNDI3AAGnkItq4tvhA83LAEgLoZIILha6WVQsa4WTIVTuxy0g6VeAzjYgPdze9nStgyU_aem_VmgAeOpdcNAHz3x-qtkVOw&e=AT4Yq7SimHxPFAsqUc8hTJecksusUCO2c_EY2Z7vt71T7-v_VAuIZLkVjxw7pJSKgL74xsp-SH9U_i3_lL7q58R4TwV6bLxVhST96r9Zrw
                        media_accent_color_hex: ''
                        media_type: none
                        open_external_url_with_in_app_browser: true
                        title: ''
                        url: https://www.youtube.com/watch?v=v8n-AOe200s
                    biography: Discover what's new on Instagram 🔎✨
                    biography_email: null
                    biography_with_entities:
                      entities: []
                      raw_text: Discover what's new on Instagram 🔎✨
                    birthday_today_visibility_for_viewer: NOT_VISIBLE
                    broadcast_chat_preference_status:
                      json_response: >-
                        {"status":"ok","status_code":"200","is_broadcast_chat_creator":true,"notification_setting_type":2}
                    business_contact_method: UNKNOWN
                    can_add_fb_group_link_on_profile: false
                    can_hide_category: true
                    can_hide_public_contacts: true
                    can_send_direct_message: true
                    can_use_affiliate_partnership_messaging_as_brand: false
                    can_use_affiliate_partnership_messaging_as_creator: false
                    can_use_branded_content_discovery_as_brand: false
                    can_use_branded_content_discovery_as_creator: false
                    can_use_paid_partnership_messaging_as_creator: false
                    category: ''
                    category_id: '0'
                    chaining_upsell_cards: []
                    contact_phone_number: ''
                    creator_shopping_info:
                      linked_merchant_accounts: []
                    current_catalog_id: null
                    direct_messaging: ''
                    disable_profile_shop_cta: false
                    eligible_for_text_app_activation_badge: false
                    enable_add_school_in_edit_profile: false
                    existing_user_age_collection_enabled: true
                    external_lynx_url: >-
                      https://l.instagram.com/?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv8n-AOe200s%26fbclid%3DPAZXh0bgNhZW0CMTEAc3J0YwZhcHBfaWQPNTY3MDY3MzQzMzUyNDI3AAGn-aHJSQ3GUi-0XGqGDIhACRfgMXZxQ5wU_KOzgl75Uspg8oAQrMsNsOnzV7c_aem_n9dcO6CnXU1PgheLpBZdRA&e=AT69NMn4jWWE4zphF-xXAY1BhYYgYPeVHqp9dlm0uFR_6hQfloRFNnGfbt5RHqKiyYsNzKtcupPR9fVMW2ZwrhoF93AWBi9T9bNHpwv7Pw
                    external_url: https://www.youtube.com/watch?v=v8n-AOe200s
                    fan_club_info:
                      autosave_to_exclusive_highlight: null
                      connected_member_count: null
                      fan_club_id: null
                      fan_club_name: null
                      fan_consideration_page_revamp_eligiblity: null
                      has_created_ssc: null
                      has_enough_subscribers_for_ssc: null
                      is_fan_club_gifting_eligible: null
                      is_fan_club_referral_eligible: null
                      is_free_trial_eligible: null
                      largest_public_bc_id: null
                      should_show_playlists_in_profile_tab: null
                      subscriber_count: null
                    fbid_v2: '17841400039600391'
                    feed_post_reshare_disabled: false
                    follow_friction_type: 0
                    follower_count: 700536405
                    following_count: 211
                    full_name: Instagram
                    has_anonymous_profile_picture: false
                    has_collab_collections: false
                    has_ever_selected_topics: false
                    has_exclusive_feed_content: false
                    has_fan_club_subscriptions: false
                    has_gen_ai_personas_for_profile_banner: false
                    has_guides: false
                    has_highlight_reels: true
                    has_music_on_profile: false
                    has_nme_badge: false
                    has_private_collections: true
                    has_public_tab_threads: true
                    has_videos: true
                    has_views_fetching: true
                    has_visible_media_notes: true
                    hd_profile_pic_url_info:
                      height: 1080
                      url: >-
                        https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB0j-ccb7-5&oh=00_Afx498_UwHcuHky8NXA5cPNScNoSjXX9WNZBvsQ7Nnk05g&oe=69B55867&_nc_sid=164c1d
                      width: 1080
                    hd_profile_pic_versions:
                      - height: 320
                        url: >-
                          https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB3203200j-ccb7-5&oh=00_AfyjQyqmwS8YvMdq_LvEl-vihaaLa-rHwG-nanLb7EYPhQ&oe=69B55867&_nc_sid=164c1d
                        width: 320
                      - height: 640
                        url: >-
                          https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB6406400j-ccb7-5&oh=00_Afyo7UQv7blHiMor2KKunNXrU71s3VzX-9EKrZ2qnlhZyw&oe=69B55867&_nc_sid=164c1d
                        width: 640
                    highlight_reshare_disabled: false
                    highlights_tray_type: DEFAULT
                    id: '25025320'
                    include_direct_blacklist_status: true
                    instagram_pk: '25025320'
                    interop_messaging_user_fbid: 117943452927407
                    is_active_on_text_post_app: true
                    is_auto_confirm_enabled_for_all_reciprocal_follow_requests: false
                    is_bestie: false
                    is_business: false
                    is_call_to_action_enabled: false
                    is_cannes: false
                    is_category_tappable: false
                    is_coppa_enforced: false
                    is_creator_agent_enabled: false
                    is_creator_marketplace_badge_visible: false
                    is_daily_limit_blocking: false
                    is_direct_roll_call_enabled: true
                    is_eligible_for_creator_product_links: false
                    is_eligible_for_meta_verified_enhanced_link_sheet: false
                    is_eligible_for_meta_verified_enhanced_link_sheet_consumption: false
                    is_eligible_for_meta_verified_ig_self_profile_not_verified_badge: false
                    is_eligible_for_meta_verified_label: true
                    is_eligible_for_meta_verified_links_in_post: false
                    is_eligible_for_meta_verified_links_in_reels: false
                    is_eligible_for_meta_verified_multiple_addresses_consumption: false
                    is_eligible_for_meta_verified_multiple_addresses_creation: false
                    is_eligible_for_meta_verified_related_accounts: false
                    is_eligible_for_post_boost_mv_upsell: false
                    is_eligible_for_schools_search_upsell: false
                    is_eligible_for_slide: false
                    is_facebook_onboarded_charity: false
                    is_favorite: false
                    is_favorite_for_clips: false
                    is_favorite_for_highlights: false
                    is_favorite_for_stories: false
                    is_guardian_r_account_cannes_pair: false
                    is_in_canada: false
                    is_interest_account: true
                    is_memorialized: false
                    is_meta_verified_related_accounts_display_enabled: false
                    is_new_to_instagram: false
                    is_onboarding_account: false
                    is_opal_enabled: false
                    is_open_to_collab: false
                    is_oregon_custom_gender_consented: false
                    is_parenting_account: false
                    is_potential_business: false
                    is_prime_onboarding_account: false
                    is_private: false
                    is_profile_audio_call_enabled: false
                    is_profile_broadcast_sharing_enabled: true
                    is_profile_picture_expansion_enabled: true
                    is_profile_search_enabled: false
                    is_profile_wa_calling_enabled: false
                    is_recon_ad_cta_on_profile_eligible_with_viewer: true
                    is_regulated_c18: false
                    is_regulated_news_in_viewer_location: false
                    is_remix_setting_enabled_for_posts: true
                    is_remix_setting_enabled_for_reels: true
                    is_ring_creator: false
                    is_secondary_account_creation: false
                    is_stories_teaser_muted: false
                    is_supervision_features_enabled: false
                    is_verified: true
                    is_whatsapp_linked: false
                    latest_besties_reel_media: 0
                    latest_reel_media: 1773073537
                    live_subscription_status: default
                    location_data:
                      address_street: ''
                      city_id: '0'
                      city_name: ''
                      instagram_location_id: '367152833370567'
                      latitude: 0
                      longitude: 0
                      zip: ''
                    media_count: 8360
                    merchant_checkout_style: none
                    meta_verified_benefits_info:
                      active_meta_verified_benefits: []
                      is_eligible_for_ig_meta_verified_label: false
                      is_eligible_for_meta_verified_content_protection: false
                    meta_verified_related_accounts_count: 0
                    nametag:
                      available_theme_colors:
                        - -1
                        - 7747834
                        - 13828293
                        - 16712041
                        - 16742912
                        - 0
                      background_image_url: ''
                      emoji: 😀
                      emoji_color: 0
                      gradient: 2
                      is_background_image_blurred: true
                      mode: 0
                      selected_theme_color: -1
                      selfie_sticker: 0
                      selfie_url: ''
                      theme_color:
                        available_theme_colors:
                          - display_label: Default
                            int_value: -1
                          - display_label: Purple
                            int_value: 7747834
                          - display_label: Lavender
                            int_value: 13828293
                          - display_label: Pink
                            int_value: 16712041
                          - display_label: Orange
                            int_value: 16742912
                          - display_label: Black
                            int_value: 0
                        selected_theme_color:
                          display_label: Default
                          int_value: -1
                    nonpro_can_maybe_see_profile_hypercard: false
                    not_meta_verified_friction_info:
                      is_eligible_for_label_friction: false
                      label_friction_content: Not Meta Verified
                    open_external_url_with_in_app_browser: true
                    page_id: null
                    page_name: Instagram
                    pinned_channels_info:
                      has_public_channels: true
                      pinned_channels_list:
                        - creator_broadcast_chat_thread_preview_response:
                            audience_type: 0
                            is_added_to_inbox: false
                            is_collaborator: null
                            is_follower: null
                            is_invited_collaborator: null
                            is_subscriber: null
                          creator_igid: null
                          creator_username: instagram
                          group_image_background_uri: ''
                          group_image_uri: >-
                            https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=1&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=3G7UyY7h03IQ7kNvwEThcxj&_nc_oc=AdnQO5LEgSC4VvDNwy4gDK2fDoejvHK3DkZc2gbz2WKi8j2DOXmerV59g-zo7gMmpq4&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&_nc_ss=1a&oh=00_AfzNXT0A-TGRsfLwGQ96otiqMCsnY1kwKN8CGTduns7Rpg&oe=69B55867
                          invite_link: https://www.instagram.com/channel/AbbbJ5udmRl1M0Uh/
                          is_creator_verified: true
                          is_member: false
                          number_of_members: 3515817
                          should_badge_channel: null
                          social_channel_invite_id: null
                          social_context_username: null
                          subtitle: Channel • 3.5M members
                          thread_igid: '340282366841710301281158605291592089435'
                          thread_subtype: 29
                          title: What’s Good on Instagram ✨
                    posts_subscription_status: default
                    primary_profile_link_type: 0
                    professional_conversion_suggested_account_type: 3
                    profile_context: ''
                    profile_context_facepile_users: []
                    profile_context_links_with_user_ids: []
                    profile_overlay_info:
                      bloks_payload: null
                      overlay_format: NONE
                    profile_pic_genai_tool_info: []
                    profile_pic_id: '3725434617063385984'
                    profile_pic_url: >-
                      https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QGxdhhgnP9bxRPe8y_fi9Zd1eSfi2xCrYZ1ePE9DrOYi-xsgjEtEMekBs4tnnOfgPU&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&oh=00_AfwL6nk438iC12TG0AfLGB2GZu95zKsczjIFWCj61BUgWw&oe=69B55867&_nc_sid=164c1d
                    profile_pic_url_hd: >-
                      https://scontent-lax7-1.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-lax7-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QH-THdYgasQbG2ONlwaF-gzQtq36BUkL9kld8XEV_1HJ4G20Bph7x_pur5EZIRw3xs&_nc_ohc=CifzaW3-vC8Q7kNvwFtdn6A&_nc_gid=YihuRnuVir5GdGBk1yJkwQ&edm=AO4kU9EBAAAA&ccb=7-5&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB6406400j-ccb7-5&oh=00_Afyo7UQv7blHiMor2KKunNXrU71s3VzX-9EKrZ2qnlhZyw&oe=69B55867&_nc_sid=164c1d
                    profile_reels_sorting_eligibility: CHECK_VIEWER_QE
                    profile_type: 0
                    pronouns: []
                    public_email: ''
                    public_phone_country_code: ''
                    public_phone_number: ''
                    qa_freeform_banner_available_prompts: []
                    recon_features:
                      enable_recon_cta: true
                    recs_from_friends:
                      enable_recs_from_friends: false
                      recs_from_friends_entry_point_type: banner
                    reels_subscription_status: default
                    relevant_news_regulation_locations: []
                    remove_message_entrypoint: false
                    request_contact_enabled: false
                    ring_creator_metadata: []
                    seller_shoppable_feed_type: none
                    should_show_tagged_tab: true
                    show_account_transparency_details: true
                    show_all_highlights_as_selected_in_management_screen: false
                    show_blue_badge_on_main_profile: true
                    show_post_insights_entry_point: true
                    show_ring_award: false
                    show_schools_badge: null
                    show_shoppable_feed: false
                    show_wa_link_on_profile: false
                    spam_follower_setting_enabled: true
                    stories_subscription_status: default
                    text_app_last_visited_time: null
                    text_post_app_badge_label: instagram
                    text_post_new_post_count: 3
                    third_party_downloads_enabled: 2
                    threads_profile_glyph_url: >-
                      barcelona://user?username=instagram&xmt=AQF0-jrt1A8Wftu9BStmegq3eAy0GxCwNXjZTMLjfO8qwi4
                    total_ar_effects: 0
                    transparency_product_enabled: false
                    trial_clips_enabled: false
                    trial_clips_rate_limiting:
                      at_limit_body: >-
                        You've shared the maximum number of trial reels allowed
                        within 24 hours. You can share this reel to everyone now
                        as a regular reel or wait up to 24 hours to share it as
                        a trial reel.
                      at_limit_title: You've reached the limit
                      count: 20
                      warning_body: >-
                        You've almost reached the limit. Once you share this
                        trial reel, you'll need to wait up to 24 hours to start
                        using trial reels again.
                      warning_title: You can share one more trial reel
                    upcoming_events: []
                    username: instagram
                    views_on_grid_status: SHOW_VIEWS_ON_GRID
                    wa_calling_option_for_legacy_num: 0
                    wa_calling_option_for_wa_linked: 0
                requestId: c10af97a-1863-4753-b189-ce47410af927
          headers: {}
        '400':
          description: 请求参数错误，请检查必填字段和参数格式
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: 鉴权失败，请检查 Authorization Header 中的 Bearer Token 或 API Key 是否有效
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: 账户余额或额度不足
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: 请求过于频繁，已触发限流
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: 服务器内部错误，请稍后重试
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/instagram/fetch_user_info?username=instagram&user_id=18527' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/instagram/fetch_user_info',
                params={"username": "instagram", "user_id": "18527"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"username": "instagram",
            "user_id": "18527"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/instagram/fetch_user_info?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````