Sign up for a free account at https://browshot.com/ (no e-mail required). You will get 100 free screenshots per months and up to 20 free credits.
Check out https://browshot.com/api/documentation to get the full API documentation.