I want to find ApexClass code coverage before deployment. Is there any way to get the code coverage using tooling API.
This will help you get started in the right direction.
The Tooling API gives you three resources for monitoring code coverage:
Represents code coverage test results for an Apex class or trigger.
Represents aggregate code coverage test results for an Apex class or trigger.
Represents code coverage test results for an entire organization.
You will likely want
ApexCodeCoverageAggregate filtered by the ApexClassorTriggerId. It will give you the high level
NumLinesUncovered plus the detailed