There's no data API for the .blend file format.
However, it sounds like you're trying to make a tool similar to Blender-Aid (code is here). Perhaps that's better place to start.
Note that blendfile.py
from Blender-Aid can be used as a standalone blend file reader.