I can't seem to figure out how to use USDA REST API no matter how hard I try. I've taken about 6 different online tutorials on how to use REST APIs all of which do not work with this particular API (I'm sure it's something small I'm missing but I've wasted countless hours doing/watching tutorials with no success).

Here's the link to their API: 
<https://ndb.nal.usda.gov/ndb/doc/apilist/API-FOOD-REPORT.md>

Here's what I'm typing in my JavaScript:

```
xhr = new XMLHttpRequest();
xhr.open("GET", "http://api.nal.usda.gov/ndb/reports/", true);
console.log(xhr.status);

```

The API says to pass your API KEY in parameters, but that makes no sense to me as every single tutorial I have read does not explain how to pass a KEY as a parameter... If someone would mind taking a moment to write the code necessary to access this API I would be greatly indebted.

**UPDATE:** I've also tried the JQuery method as follows:

```
$.get(
    "http://api.nal.usda.gov/ndb/reports",
    {
        "api_key": "API KEY",
        "ndbno": "01009"
    },
    function(data) {
        console.log(data);
    }
);

```

With no luck.

**UPDATE 2:** After leaving the JQuery example in for about 5 minutes, I get an error in the chrome console that says:

XMLHttpRequest cannot load <http://api.nal.usda.gov/ndb/reports?api_key=(my> API KEY)&ndbno=01009. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<http://localhost:3000>' is therefore not allowed access. The response had HTTP status code 403.

**FINAL UPDATE:** Problem was with my ISP apparently. Need to deal with that :(