--- title: "In-Line SEO" slug: "in-line-seo" tags: ["Reviews ", "Custom"] updated: 2024-04-02T07:33:02Z published: 2024-04-02T07:33:02Z canonical: "support.yotpo.com/in-line-seo" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.yotpo.com/llms.txt > Use this file to discover all available pages before exploring further. # In-Line SEO Products Reviews ###### Supported plans Free, Starter, Pro, Premium, Enterprise ###### eCommerce Platform Custom This article is for users of self-hosted platforms who would like to host Yotpo's reviews (and other data) as static content within their website. **Important:** As Google [now crawls JavaScript](https://webmasters.googleblog.com/2015/10/deprecating-our-ajax-crawling-scheme.html), **no In-Line SEO implementation is necessary** if you would like to have your reviews crawled and indexed only by Google. Please be sure to allow ample time for Google to crawl and index your site. If you wish to have your reviews crawled by Bing and Yahoo as well, you must implement In-Line SEO by following the instructions below: There are two steps to implementing In-Line SEO: 1. Retrieving the data in HTML format via Yotpo's API. 2. Embedding the pulled HTML payload directly in your pages. The purpose of this is to have the data on the server-side, thus improving search engine indexing of the content. ## Prerequisites To utilize In-Line SEO, you would need to have backend access to server-side functions (required for triggering the API call as specified below) ## Support for paginated reviews In order to support paginated reviews in your In-Line SEO implementation, you will need to support the review page parameter. When receiving the "yoReviewsPage" parameter (query string) it is necessary to indicate the page number of the reviews page in your Yotpo Batch Request: ## Retrieving the data via API To embed the static HTML retrieved from a Yotpo endpoint: Retrieve the HTML payload via API, using the following endpoint:Method: POST URL: http://staticw2.yotpo.com/batch Content-Type: JSON #### Mandatory parameters - ***app_key***- The relevant Yotpo account App Key - *method* - An array of widget types (methods) and the parameters for each method. The commonly used methods are: - **main_widget** - retrieve the reviews widget payload - **main_widget** (with "mode":"questions") - retrieve separate Q&A widget payload - bottomline - retrieve the star rating payload - testimonials - retrieve the dedicated testimonials widget payload - *pid* - The product ID for which to bring the widget. #### Optional parameters - *page - The page number of the reviews page as applied by the Reviews Widget e.g.* **?yoReviewsPage=**###reviews page number### Tip: For the full specification, visit our [API Documentation](http://apidocs.yotpo.com/v1.0/reference#retrieve-the-reviews-payload-in-html-1). #### Sample request body ```json { "methods": [{ "method": "main_widget", "params": { "pid": "#PRODUCT_ID#", "page": 1 } }, { "method": "main_widget", "params": { "mode": "questions", "pid": "#PRODUCT_ID#" } }, { "method": "bottomline", "params": { "pid": "#PRODUCT_ID#" } }, { "method": "testimonials", "params": { "format": "html" } } ], "app_key": "#####YOUR APPKEY HERE#####", "is_mobile":"false" } ``` #### Sample response ```javascript [ { "method": "main_widget", "result": "