public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

[Google Search API] Return AMP links returned in mobile search results

Open NateSkiles opened this issue 10 months ago • 2 comments

A customer reached out and requested we return the AMP (Accelerated Mobile Pages) links, a Google-backed project designed to improve the performance of web pages on mobile devices (ref), in the Google Search Results JSON for mobile searches.

Google:

Image

Link (Most be loaded as mobile):

https://www.google.com/search?q=amp+page+list&oq=a&gs_lcrp=EgZjaHJvbWUqBggAEEUYOzIGCAAQRRg7MgYIARBFGDkyBggCEEUYPDIGCAMQRRg8MgYIBBBFGDwyBggFEEUYPDIGCAYQRRg8MgYIBxBFGEHSAQgyNzE3ajBqMagCALACAQ&sourceid=chrome&ie=UTF-8&sei=8VqhZ62fEsHF0PEPmZ2B0Qk

AMP_Search.zip

SerpApi:

https://serpapi.com/playground?q=amp+page+list&location=Austin%2C+Texas%2C+United+States&gl=us&hl=en&device=mobile&no_cache=true&google_domain=google.com&newPara=stick+highlight+lr+as_qdr+safe+google_domain+si+form+filter+chips+as_epq+client+votes+site+ie+oe+pws+ibp+source+as_sitesearch+ijn+rlz+interval+size+color+maxPrice+as_dt+direct_link

Intercom

NateSkiles avatar Feb 04 '25 00:02 NateSkiles

The customer provided some extra detail on the differences between data-amp and data-amp-cur here in Intercom.

Basically data-amp is the AMP URL. data-amp-cur is the non-AMP URL and should generally be the same as the href.

It's worth reading the full message for the additional context they provided.

alexbarron avatar Feb 04 '25 11:02 alexbarron

Another customer reached out about this. I'll update the label from the freezer label.

Intercom

hilmanski avatar Apr 14 '25 05:04 hilmanski

We now parse amp_link:

Image

Ovi avatar May 22 '25 14:05 Ovi