Programmatically find Dropbox folder paths

Show instructions for:

Linux

If you have a desktop application that you want to interact with files in the local Dropbox folder, you can programmatically determine the paths for any local Dropbox folders by reading a small JSON file written by the Dropbox desktop application. This is only available as of version 2.8 of the Dropbox desktop application, so your app should fall back to asking the user to specify the path manually when it isn't available. The 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:

{
    "business": {
        "host": 123456789,
        "path": "https://www.dropbox.com/Users/<USERNAME>/Dropbox (<BUSINESS_NAME>)"
    },
    "personal": {
        "host": 123456789,
        "path": "https://www.dropbox.com/Users/<USERNAME>/Dropbox (Personal)"
    }
}
  • 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: Depending on what kind of accounts are currently linked to the desktop application, the object may have one or both of the "business" and "personal" fields.

Macintosh

If you have a desktop application that you want to interact with files in the local Dropbox folder, you can programmatically determine the paths for any local Dropbox folders by reading a small JSON file written by the Dropbox desktop application. This is only available as of version 2.8 of the Dropbox desktop application, so your app should fall back to asking the user to specify the path manually when it isn't available. The 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:

{
    "business": {
        "host": 123456789,
        "path": "https://www.dropbox.com/Users/<USERNAME>/Dropbox (<BUSINESS_NAME>)"
    },
    "personal": {
        "host": 123456789,
        "path": "https://www.dropbox.com/Users/<USERNAME>/Dropbox (Personal)"
    }
}
  • 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: Depending on what kind of accounts are currently linked to the desktop application, the object may have one or both of the "business" and "personal" fields.

Vista/Win7/Win8/Win10

If you have a desktop application that you want to interact with files in the local Dropbox folder, you can programmatically determine the paths for any local Dropbox folders by reading a small JSON file written by the Dropbox desktop application. This is only available as of version 2.8 of the Dropbox desktop application, so your app should fall back to asking the user to specify the path manually when it isn't available. The 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:

{
    "business": {
        "host": 123456789,
        "path": "C:\Users\<USERNAME>\Dropbox (<BUSINESS_NAME>)"
    },
    "personal": {
        "host": 123456789,
        "path": "C:\Users\<USERNAME>\Dropbox (<PERSONAL>)"
    }
}
  • 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: Depending on what kind of accounts are currently linked to the desktop application, the object may have one or both of the "business" and "personal" fields.

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