Authentication And JSON Retrieval

Is there a way to authenticate with a URL the use that cookie, store it, then use it to request more data with different params with Grafana and return JSON?