RTICWDT / open-data-maker

make it easy to turn a lot of potentially large csv files into easily accessible open data
Other
64 stars 32 forks source link

dev-category root is not found #95

Closed gopala000 closed 4 years ago

gopala000 commented 4 years ago

I need to fetch latitutde & longitude. When I use root in the fields list, I get the error below. How do I workaround this?

    "errors": [
        {
            "error": "field_not_found",
            "input": "root",
            "message": "The input field 'root' (in the fields parameter) is not a field in this dataset."
        }
    ]
JAFrederick commented 4 years ago

Hello, Latitude and Longitude information is stored within the location object of each institution.

Here is an example query retrieving only the location object:

https://api.data.gov/ed/collegescorecard/v1/schools?
api_key=API_KEY
&fields=location

It might be helpful to take a look at the institution_data_dictionary sheet on the data dictionary. This will help bridge the gap between the data files and the API field names. The column VARIABLE NAME refers to the items in the data files and the developer-friendly-name is the API name.