> ## 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.

# Get user info

> Get detailed information about an Instagram user. Supports querying by username or user 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">per request</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">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</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(`I want to make an API call to https://api.keyapi.ai/v1/instagram/fetch_user_info.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/instagram/fetch_user_info

Description: Get detailed information about an Instagram user. Supports querying by username or user ID.

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- username (Optional): Username (choose one: username or user_id). Example: instagram
- user_id (Optional): User ID (choose one: user_id or username). Example: 18527

Example Response:
{
"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": 18127096636551315,
      "link_type": "external",
      "lynx_url": "https://l.instagram.com/?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dv8n-AOe200s%26fbclid%3DPAZXh0bgNhZW0CMTEAc3J0YwZhcHBfaWQPNTY3MDY3MzQzMzUyNDI3AAGnkIt
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/instagram.openapi.json GET /v1/instagram/fetch_user_info
openapi: 3.0.1
info:
  title: Instagram API english documentation
  description: >-
    The english reference documentation of the Instagram API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  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: Get user info
      description: >-
        Get detailed information about an Instagram user. Supports querying by
        username or user ID.
      parameters:
        - name: username
          in: query
          description: 'Username (choose one: username or user_id)'
          required: false
          example: instagram
          schema:
            type: string
            example: instagram
        - name: user_id
          in: query
          description: 'User ID (choose one: user_id or 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: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          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: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````