How to retrieve the info of all the unaccepted pull requests?

I see that there are unaccepted pull requests. Would anybody show let me how to retrieve the repository info of the pull requests via an API? Thanks.