How to find name of a nodes type to create with python
It's ShaderNodeValToRGB.
Turn on Python Tooltips under Edit &gt; Preferences &gt; Interface. Then go to the Shader Editor and hover over a node in the Add menu to see a tooltip with the name.