How to use API with Python?can anyone help me on this.Thanks

Just search the forum or google, unless you’ve got a specific question.

Getting access - solving some simple issues:
https://forum.aws.chdev.org/t/simple-python-script-to-access-companies-house-api/1717
https://forum.aws.chdev.org/t/cannot-access-api-using-pythons-request-library/874
https://forum.aws.chdev.org/t/python-get-request/370

There are some wrappers out there:

https://pypi.org/project/companies-house/

There’s a good demo of what you can do: