Programmatically find Dropbox folder paths

By default, the Dropbox folder is located in your user folder. If you moved your Dropbox folder, or if you connected a work and personal, it may be located elsewhere or have a name other than "Dropbox." You can programmatically find the folder path through a JSON file.

Click your operating system for instructions:

Linux

The JSON file is named info.json and can be found at:

    ~/.dropbox/info.json

In this file, there's a JSON object that looks like this:

    "personal": {
        "path": /home/<username>/Dropbox
        "host": 3333527428,
        "is_team": false
        "subscription_type": "Basic"
     }
  • personal: The type of account.
  • path: The path to this Dropbox folder.
  • host: An identifier that uniquely specifies a particular user account and computer pair.

Mac

The JSON file is named info.json and can be found at:

    ~/.dropbox/info.json

In this file, you'll find a JSON object that looks like this:

{
    {"personal":
            {"path": "/Users/<username>/Dropbox (Personal)",
            "host": 3721379913, 
            "is_team": false, 
            "subscription_type": "Basic"},
 
     {"business": 
            {"path": "/Users/<username>/Dropbox (<business name>)", 
            "host": 3286328207, 
            "is_team": true, 
            "subscription_type": "Business"}
}
  • business/personal: The type of account.
  • host: An identifier that uniquely specifies a particular user account and computer pair.
  • path: The path to this Dropbox folder.

Note: If you connected your work and personal accounts on this computer, your JSON file will show two accounts. The JSON file will only have one account listed if you have one account or your accounts aren't connected on this computer.

Windows

The JSON file is named info.json and can be found at one of these two paths:

    %APPDATA%\Dropbox\info.json
    %LOCALAPPDATA%\Dropbox\info.json

In this file, you'll find a JSON object that looks like this:

{
    {"personal":
            {"path": "/Users/<username>/Dropbox (Personal)",
            "host": 3721379913, 
            "is_team": false, 
            "subscription_type": "Basic"},
     {"business": 
            {"path": "/Users/<username>/Dropbox (<business name>)", 
            "host": 3286328207, 
            "is_team": true, 
            "subscription_type": "Business"}
}
  • business/personal: The type of account.
  • host: An identifier that uniquely specifies a particular user account and computer pair.
  • path: The path to this Dropbox folder.

Note: If you connected your work and personal accounts on this computer, your JSON file will show two accounts. The JSON file will only have one account listed if you have one account or your accounts aren't connected on this computer.

Did this article answer your question?

We’re sorry to hear that. Let us know how we can improve:

Thanks for your feedback!

Community answers
    Community answers

      Other ways to get help

      Community

      Twitter support

      Guided help

      Other ways to get help

      Community

      Twitter support

      Guided help

      Other ways to get help

      Community

      Twitter support

      Contact support