DEV Community

Cover image for Instagram URL Schemes
ahandsel
ahandsel

Posted on

Instagram URL Schemes

Here are the known URL schemes for Instagram that can be used to link directly to specific parts of the Instagram app. It is useful for Apple Shortcuts.

URL Scheme Description
instagram:// Open the Instagram app
instagram://settings Open the Instagram settings
instagram://direct-inbox Open direct messages
instagram://camera Open the camera or create a new post
instagram://explore Open the explore tab
instagram://user?username=[username] Open a specific user's profile
instagram://location?id=[location_id] Open a specific location
instagram://tag?name=[hashtag] Open a specific hashtag

Examples

Open the Instagram App Settings via Apple Shortcuts

  1. Use the "Text" Action to store instagram://settings in a text variable
  2. Use the "Get URLs from Input" to convert the text variable to a URL
  3. Use the "Open URLs" Action to open the URL

Apple Shortcuts: Example - Open Instagram Settings

Open a Specific User's Instagram Profile via Apple Shortcuts

  1. Use the "Ask for Input" Action to ask for a username
  2. Use the "Text" Action to store instagram://user?username= in a text variable
  3. Use the "Combine Text" Action to combine the username to the text variable:
    • Combine instagram://user?username= with the username's Provided Input with "Custom" set to `` (nothing)
  4. Use the "Get URLs from Input" to convert the "Combine Text" value to a URL
  5. Use the "Open URLs" Action to open the URL

Apple Shortcuts: Example - Open A Instagram Profile

Search for a Specific Hashtag on Instagram via Apple Shortcuts

  1. Use the "Ask for Input" Action to ask for a hashtag
  2. Use the "Text" Action to store instagram://tag?name= in a text variable
  3. Use the "Combine Text" Action to combine the hashtag to the text variable:
    • Combine instagram://tag?name= with the hashtag's Provided Input with "Custom" set to `` (nothing)
  4. Use the "Get URLs from Input" to convert the "Combine Text" value to a URL
  5. Use the "Open URLs" Action to open the URL

Apple Shortcuts: Example - Search For A Hashtag

References

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.