Show us the code you have so far.
First you'll need code to connect to QC and login to the project. In that process you will end up with a TDConnection object. From there you will need to access the ReqFactory object, and probably use a Filter object and the NewList method to get a list of the requirements you want.
The OTA API reference documents include many examples. Have you looked for an example for finding requirements?