How do I get Authorization code?

if you are accessing public data then you can generate a “Client Credentials” token instead.

Which only needs a single post request.

Your original post was asking about how to get the ?code= from step 2