Need format for request parameters

Trying to use the search request using this: https://api.nyc.gov/geo/geoclient/search.xml?input=110%20William%20Street%2010038&Ocp-Apim-Subscription-Key=8885d29b3b6c4fca8c285f259b357b61 (This is the primary subscription key given to me when I signed up for the new API) But I am getting this error: { "statusCode": 401, "message": "Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API." } Please give me the sample url to use to be able to call the new api using the single-field-search functionality. Thank you!

Comments

  •  
    it should be in an auth header, but if you want to use a the authkey as a param it should be ?subscription-key=xxxxxxxxxxx
    Posted by Hidden Tue, 27 Jul 2021 19:32:49 GMT


You're not signed in. Please sign-in to report an issue or post a comment.