Dropbox API Get file metadata for a file, including media information, using curl


Example

curl -X POST https://api.dropboxapi.com/2/files/get_metadata \
    --header "Authorization: Bearer <ACCESS_TOKEN>" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/test.jpg\",\"include_media_info\": true}"

<ACCESS_TOKEN> should be replaced with the OAuth 2 access token.