How to get the dos data of one structure?

How to get the dos data of one structure?

Please use the pymatgen code which has a client for Materials Project called the MPRester. This client has a function called get_dos_by_material_id

Thanks very much for your help. Can you tell me if the energy in DOS is minus Fermi energy?

They are in absolute energies, but the DOS objects also store the Fermi energy, so you can re-reference to that if you want. The plotting methods in pymatgen for DOS have an option to plot either with reference to the Fermi or just in absolute energy.