I wrote a script that calls the ESV API using NodeJS and then copies the result to your system clipboard. It uses Raycast by default, but you could also adopt the script to work with another program or in another environment.
For a walk through of the code (including obtaining an ESV API key and the Raycast setup), see https://chrispennington.blog/blog/esv-bible-api-script-for-raycast/.