Open schaferyan opened 2 months ago
As an update it appears that using the full tbs
value form the resolved URL and appending the new tbs
value seems to work:
If possible we should try to do this from our side to make it simpler for the user. If not we should update our documentation.
A user reached out to ask how
tbs
can be used with our Google Reverse Image API.Google seems to support
tbs
for Reverse Image Search, the same way other Google search engines do.If you open the
search_metadata.google_reverse_image_url
, then select Tools > Time > Past Week,qdr:w
is appended to thetbs
value in the URL, and filtered results are returned:Reverse Google Image Search w/ Past Week filter
However, if you add
qdr:w
as thetbs
value when using our Google Reverse Images API, empty results are returned:Playground
I also tried adding the full value of the
tbs
from the Google Reverse Image Search URL:Playground 2
But that also seems to return empty.
My guess is that this has something to do with the direct relationship of
tbs
to the Reverse Search endpoint.I noticed that when opening the url from
search_metadata.google_reverse_image_url
https://www.google.com/searchbyimage?image_url=https://i.imgur.com/HBrB8p0.png&sbisrc=cr_1_5_2 seems to resolve tohttps://www.google.com/search?tbs=sbi:AMhZZiuwaausYDRNlYv7ikD3kLXQw_1qqygKUbvPYV1ezepeTR6pH_1YbdDDprErbdXwKPQz96ssueMFIa6Gidx9Cj8B8uu0hQRelRpSine4A0XyGXQXAZhhQNNhR4YOpZpPVWi2LgddNtMiot182cv3MWMENhxF2FQMiNd-KB3MMy9rLDR2mUAfaCPJaTc6u0cDvy7LolSmW_1ky3ohoHfP_1UNrvLdvakGK-92euFuzwMfsf-s8Lw6uoeB_1G-A6F6nQlJfsVKsoBIFJ6crb8bL0nxrQeLALfFmf2oo9MztGo-MoMaD8rWjedDpen47Xo_1imI3KEJcKRuY7X3crYwEIfcQYOKpE5FvY9Q
which is mostly a very long
tbs
value.My best guess is that somehow the way we are handling additional
tbs
values passed to our API is somehow interfering with thetbs
value generated for Reverse Image Search.Intercom