Retrieving specific fields

I have an API key and I want to get data for a specific sensor whose index I know. If I paste this into my browser, I get results for all fields: https://api.purpleair.com/v1/sensors/319066?api_key=… But, I don’t want all the fields. I tried limiting the result to just PM2.5 by appending “?fields=pm2.5” to the line. This generates an error, specifically “The provided api_key was not valid.”

Can anyone tell me what I’m doing wrong?

What you append should begin with an ampersand (&) , not a question mark (?)…