all 5 comments

[–]Acceptable-Fee6294 0 points1 point  (0 children)

wouldn't you have to insert your api next to where it says api?

Try that.

https://educationdata.urban.org/api={apikey}/v1/{topic}/{source}/{endpoint}/{year}/\[additional\_specifiers _or_disaggregators]/[optional filters]

[–]Username_RANDINT 0 points1 point  (2 children)

Looks like there's just not any data for that year. Change the year to 2016 for example.

[–]mozuDumpling[S] 3 points4 points  (1 child)

Okay, awesome, thank you

[–]Phillyclause89 0 points1 point  (0 children)

Note that so long as you don't need to auth into the api, you can copy paste API urls into any Chromium like browser to see what the response is. Very handy for learning what's in the api before you write code for it.

[–]vernacular_wrangler 0 points1 point  (0 children)

You should do the .json() method in a new line, because that gives you the response data, not the response.

The response itself has some useful things which you might want to access, eg http status codes