Update how `top_stories` on Google Mobile search are displayed on the dedicated HTML preview
closed
J
JS
Can you make your html endpoints look similar to your platform view.
I believe you render html differently in the platform showing all the stories while html endpoint doesn't
Illia Zub
closed
JS, let me know if the
.xray
endpoint is suitable for your case of public presentation.Like this: https://serpapi.com/searches/10b5d7cc80c68745/605d98925f2203116accbbc6.xray
J
JS
Hi llya, I think you misunderstood me
We don't extract anything from html, we use it to represent a screenshot.
We want to present a view in a public URL that has all the results similar to xray
can support this in html? I see your point on some other clients using this to extract the results
xray is not public and we can't use it
is there something like we can have that has all the results? maybe a screenshot of x-ray or another html version that has all results in the view?
Illia Zub
JS:
xray
format has public URL too. Replace .html
with .xray
in URL from raw_html_file
.For example
https://serpapi.com/searches/10b5d7cc80c68745/605d98925f2203116accbbc6.html
→
https://serpapi.com/searches/10b5d7cc80c68745/605d98925f2203116accbbc6.xray
Illia Zub
Hi JS. What do you think about using
xray
endpoint for your case?Illia Zub
JS, in the preview we display slightly modified HTML to highlight DOM nodes and JSON nodes on hover and to scroll to the corresponding node on click. It's our special
.xray
response format (see the screenshot). It can be used for all of your searches like .json
or .html
format.In the
.html
response format we display an HTML as we fetched from the target website. If you want to extract data from the HTML manually, it's better to use the .html
format.We do not recommend extracting data from
.xray
pages - it may lead to wrong results.If you want to get the data from the HTML that is missing in our JSON response, let us know so we will extract the missing data.
J
JS
hi, when will this go live?
J
JS
any ETA?
Elizabeth Oster
planned
Elizabeth Oster
under review