Nest Camera Snapshot Url


#1

Hi,

I am trying to get the Nest REST API to generating a snapshot from my Nest camera. I can retrieve my camera info fine via the /devices/ url. I am sending a GET to this url to try to retrieve the “snapshot_url” value. The camera’s “is_streaming” value is true.

https://developer-api.nest.com/STRING1/<device_id_string>/STRING2?auth=

where I have replaced <device_id_string> with my device id and with the tokenstring I am using to get the device information. However, I receive a “Not found” error. Is the URL correct?

Also, I noticed that in the documentation it says that snapshot_url requires read/write v3 permissions but when I go to set the permissions for my app only read/write v2 is available. Is this a typo?

Cheers,
Greg


#2

Make sure you have camera + images read/write and not just camera read/write.

where I have replaced with my device id and with the tokenstring I am using to get the device information. However, I receive a "Not found" error. Is the URL correct?

Are you using the token as the device id? The token is just for authentication, make sure you’re using the device id and not the token.


#3

Thanks for your response. I am using the token for the token, and the device_id for the device id. How do I get read/write+image? When I try to edit my permissions for my app, the choices are only read v2, and read/write v2.

Greg


#4

Oh I see, I need to fill out more stufff to get image access. I submitted that now.


#5

You don’t have to be approved, it should start working immediately.


#6

Hmm, ok. So far it is staying greyed out.


#7

Remove the other camera permission. Like Highlander, there can only be one.


#8

Ha!

That unlocked the permissions, thanks!


#9

Hmm, same error - I ask for this url with GET

https://developer-api.nest.com/STRING1/N0ZeniB...uSpcjiQd1g/STRING2?auth=c.nOMioqINVj...P0

and get this response

{“error”:“Not Found”,“type”:“https://developer.nest.com/documentation/cloud/error-messages#not-found",“message”:"Not Found”,“instance”:“3abf33ee-b79a-4d38-9554-4d628d6aa737”}

The is_streaming is true, and I get the device_id directly from the JSON returned from the devices query. Can you confirm the form of the url is correct?

Cheers,
Greg


#10

Hey, just checking if youve taken a look at this …


#11

Did you replace STRING1?


#12

No I just leave it as STRING1. I recall reading that it should not be changed.

Greg