XAPI is what you want. You can use it to select only certain elements, for example highway=* will select all highways (roads and paths). Make sure you keep your bounding box small or you’ll get gigabytes of data. That might be what you want, I don’t know, but if you do please be sure to read the section on usage.