How to get course content in xblock

Hi,
How I can get course content in an xblock using an api or acceccing to database for LMS.
I need help please