The docs can do a better job than I

http://docs.gimp.org/en/gimp-scripting.html