 #!/bin/bash
 
API_URL_BASE="https://gerrit.wikimedia.org/r/changes"
QUERY_STRING="project:mediawiki/core+before:2013-03-30+HTTPS"

API_URL="${API_URL_BASE}/?q=${QUERY_STRING}"

curl -X GET "$API_URL" -H "Accept: application/json" -o response.json