Mobile app version of vmapp.org
Login or Join
Shelton105

: How to prevent Googlebot from doing API requests? I have a currency converter site around 32k pages. Every pair for each page. And every page has 2 API requests. I started to see huge number

@Shelton105

Posted in: #Api #Google #GoogleIndex #WebCrawlers

I have a currency converter site around 32k pages. Every pair for each page.
And every page has 2 API requests.

I started to see huge number of API requests. From users I have only few page views because it is a new site.

I think that Google is crawling and making those requests. How can I let Google crawl and index the page without doing API requests?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

If the API is being hit on every page load there is no way to display the page without hitting the API.

As @Steve Ostenmier points out you can embed the conversion data in javascript which Google will still be able to parse but will only result in a single hit to the API if your API supports getting all of the conversion rates in a single request. Either way whatever you do it will require a change to the underlying code driving your site.

A good rule of thumb to follow is anything an end user can do without requiring a password can be done by Google and if it is done will likely be done orders of magnitude greater in a far shorter amount of time than a single or small group of end users can achieve themselves

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme