How to define a variable in a for..in loop
Example:
#!/bin/bash
api ="api keys"
for i in {1..305}; do
wget "https://api.shodan.io/shodan/host/search?key=$api&query=&facets={facets}&page=$i"
done
But this gives an error of:
./script.sh: line 2: api: command not found