Is there any api for Q&A

I want a api for getting answer of questions?

Are you looking for Question Answering similar to SQuAD
If so you can find models and API here

If you are looking to do Q and A using prompt engineering
Then you can find them here OpenAI API