An environment variable is a named value passed to the programs launched from a shell. It is used to configure their behavior (PATH, HOME, keys, URLs). You read it with $NAME, set it with export, and it only lives in the session unless it is saved in a configuration file.
Example
export API_URL=http://localhost:8000
echo $API_URL