There are a lot of good resources here on the forum.
RevitAPIDocs is a great resource for the Revit API itself. It includes documentation and examples in a few languages, but you’ll have to “convert” it to Python.
The Python Nodes Basics thread is also a good introduction to Python in Dynamo.
Finally, the RevitLookup addin is also a great resource to view and learn the API in real time.