LogoLogo
OverviewRelease NotesDataPipelineFAQs
NodeJS
NodeJS
  • Make Requests with ScraperAPI in NodeJS
    • Use ScraperAPI Endpoint in NodeJS
    • Use ScraperAPI Proxy Port in NodeJS
    • Use ScraperAPI SDK in NodeJS
    • Make Async Requests with ScraperAPI in NodeJS
      • How to Use ScraperAPI Async Web Scraping in NodeJS
      • Use Async ScraperAPI Callbacks in NodeJS
      • Configure ScraperAPI Parameters in NodeJS
      • Request Async Batch Scraping with ScraperAPI in NodeJS
      • Decode Base64 Async Responses in NodeJS
    • ScraperAPI Structured Data Collection in NodeJS
      • Amazon Product Page API: Structured Data in NodeJS
      • Amazon Search API: Structured Data in NodeJS
      • Amazon Offers API: Structured Data in NodeJS
      • Amazon Reviews API: Structured Data in NodeJS
      • Ebay Product Page API: Structured Data in NodeJS
      • Ebay Search API: Structured Data in NodeJS
      • Google SERP API: Structured Data in NodeJS
      • Google News API: Structured Data in NodeJS
      • Google Jobs API: Structured Data in NodeJS
      • Google Shopping API: Structured Data in NodeJS
      • Google Maps Search API: Structured Data in NodeJS
      • Redfin Agent Details API: Structured Data in NodeJS
      • Redfin 'For Rent' Listings API: Structured Data in NodeJS
      • Redfin 'For Sale' Listings API: Structured Data in NodeJS
      • Redfin Listing Search API: Structured Data in NodeJS
      • Walmart Search API: Structured Data in NodeJS
      • Walmart Category API: Structured Data in NodeJS
      • Walmart Product API: Structured Data in NodeJS
      • Walmart Reviews API: Structured Data in NodeJS
    • Async Structured Data Collection Method
      • Amazon Product Page API: Async Structured Data in NodeJS
      • Amazon Search API: Async Structured Data in NodeJS
      • Amazon Offers API: Async Structured Data in NodeJS
      • Amazon Reviews API: Async Structured Data in NodeJS
      • Ebay Product Page API: Async Structured Data in NodeJS
      • Ebay Search API: Async Structured Data in NodeJS
      • Google SERP API: Async Structured Data in NodeJS
      • Google News API: Async Structured Data in NodeJS
      • Google Jobs API: Async Structured Data in NodeJS
      • Google Shopping API: Async Structured Data in NodeJS
      • Google Maps Search API: Async Structured Data in NodeJS
      • Redfin Agent Details API: Async Structured Data in NodeJS
      • Redfin 'For Rent' Listings API: Async Structured Data in NodeJS
      • Redfin 'For Sale' Listings API: Async Structured Data in NodeJS
      • Redfin Listing Search API: Async Structured Data in NodeJS
      • Walmart Search API: Async Structured Data in NodeJS
      • Walmart Category API: Async Structured Data in NodeJS
      • Walmart Product API: Async Structured Data in NodeJS
      • Walmart Reviews API: Async Structured Data in NodeJS
    • Making POST/PUT Requests with ScraperAPI in NodeJS
    • Customizing ScraperAPI Requests in NodeJS
      • Customize Amazon Requests by ZIP Code via ScraperAPI in NodeJS
      • Customize Cached Results via ScraperAPI in NodeJS
      • Customize Control Costs with ScraperAPI Parameter in NodeJS
      • Send Custom Headers with ScraperAPI in NodeJS
      • Customize Device Type with ScraperAPI in NodeJS
      • Customize Geotargeted Content Scrape via ScraperAPI in NodeJS
      • Customize Premium Geotargeted Scrape via ScraperAPI in NodeJS
      • Customize Header Parameter with ScraperAPI in NodeJS
      • Customize Premium Residential/Mobile Proxies in NodeJS
      • Customize JavaScript-Rendered Pages via ScraperAPI in NodeJS
        • Use Render Instruction Set to Scrape Dynamic Pages in NodeJS
        • Customize Taking a Website Screenshots via ScraperAPI in NodeJS
      • Customize Scrape Session-Based Proxies via ScraperAPI in NodeJS
  • Handle and Process Responses via ScraperAPI in NodeJS
    • Use API Status Codes to Retry Failed Requests in NodeJS
    • Customize Output Formats via ScraperAPI Parameters in NodeJS
      • Request JSON Response via Autoparse Parameter in NodeJS
      • Request LLM Output Formats with ScraperAPI in NodeJS
    • Request Response Encoding and Content-Type via ScraperAPI in NodeJS
  • Dashboard & Billing
    • API Key
    • Credit Usage
    • Delete Account
    • Invoice History
    • Billing Email
    • Billing Address
    • VAT Number
    • Payment Method
    • Cancel Subscription
  • Credits and Requests
  • Monitor Your ScraperAPI Account Information in NodeJS
  • Documentation Overview
Powered by GitBook

Quick links

  • Homepage
  • Dashboard
  • Pricing
  • Contact Sales

Resources

  • Developer Guides
  • Blog
  • Contact Support
  • Learning Hub
On this page

Was this helpful?

  1. Handle and Process Responses via ScraperAPI in NodeJS
  2. Customize Output Formats via ScraperAPI Parameters in NodeJS

Request LLM Output Formats with ScraperAPI in NodeJS

Learn how to use ScraperAPI’s output parameter in NodeJS to generate clean, structured text and markdown responses ideal for training large language models.

To properly train LLMs, a lot of high quality unbiased data is needed. There is a lot of public data that is relevant for LLMs, but at times, that data can be too noisy and too large. Luckily, we have a solution. One that gathers large-scale data and cleans it by removing irrelevant or duplicate content. The result - structured format responses, that can be used to train LLMs effectively. Simply add the parameter output_format=text or output_format=markdown to the request structure. Here are some examples:

  • API REQUEST

import axios from 'axios';
const url = "https://api.scraperapi.com/";
const params = {
    api_key: "API_KEY",
    output_format: "OUTPUT_FORMAT",
    url: "https://www.google.com/search?q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&hl=en"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error("Error:", error.message);
});
  • ASYNC REQUEST

import axios from 'axios';
const url = "https://async.scraperapi.com/jobs";
const headers = {
    "Content-Type": "application/json"
};
const data = {
    apiKey: "API_KEY",
    apiParams: {
        output_format: "OUTPUT_FORMAT"
},
url: "https://www.google.com/search?q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&hl=en"
};
axios.post(url, data, { headers })
.then(response => {
console.log(response.data); // Print the response
})
.catch(error => {
console.error("Error:", error.message);
});
  • PROXY MODE - COMING SOON!

Sample Response

Markdown:

# Accessibility Links

Skip to main content[Accessibility help](https://support.google.com/websearch/answer/181196?hl=en)

Accessibility feedback

[](https://www.google.com/webhp?hl=en&ictx=0&sa=X&ved=0ahUKEwjxgcn7ov2KAxVake4BHQb0DYwQpYkNCAo)

Press / to jump to the search box

Carglass GmbH Halle (Saale) (Stadtbezirk Nord)

[Sign in](https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/search%3Fq%3DCarglass%2BGmbH%2BHalle%2B%28Saale%29%2B%28Stadtbezirk%2BNord%29%26hl%3Den&ec=GAZAAQ)

# Filters and Topics

All

[Images](/search?sca%5Fesv=bca4d6818df5eb0f&hl=en&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&udm=2&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwjxgcn7ov2KAxVake4BHQb0DYwQtKgLegQIExAB)

[Jobs](/search?sca%5Fesv=bca4d6818df5eb0f&hl=en&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&udm=8&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwjxgcn7ov2KAxVake4BHQb0DYwQs6gLegQIDxAB)

[Maps](https://maps.google.com/maps?sca%5Fesv=bca4d6818df5eb0f&hl=en&output=search&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&source=lnms&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&entry=mc&ved=1t:200715&ictx=111)

[Shopping](/search?sca%5Fesv=bca4d6818df5eb0f&hl=en&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&udm=28&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&ved=1t:220175&ictx=111)

[Forums](/search?sca%5Fesv=bca4d6818df5eb0f&hl=en&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&udm=18&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwjxgcn7ov2KAxVake4BHQb0DYwQs6gLegQIDBAB)

[Videos](/search?sca%5Fesv=bca4d6818df5eb0f&hl=en&q=Carglass+GmbH+Halle+%28Saale%29+%28Stadtbezirk+Nord%29&udm=7&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w%5FkfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns%5F0jgvLA1%5FkZTbFN-119W9tHwJnaFRmMV8%5FhusR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwjxgcn7ov2KAxVake4BHQb0DYwQtKgLegQICxAB)

More

About 269 results (0.29 seconds) 

Results for Halle (Saale)-Stadtbezirk Nord

 ∙ [Choose area](#)

# Search Results

# Main Results
.................

Text:

Please click here [/httpservice/retry/enablejs?sei=rZeKZ9COCOTAkPIP0p26oQk] if you are not redirected within a few seconds.

ACCESSIBILITY LINKS

Skip to main contentAccessibility help [https://support.google.com/websearch/answer/181196?hl=en]

Accessibility feedback
https://www.google.com/webhp?hl=en&sa=X&ved=0ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQPAgI
https://www.google.com/webhp?hl=en&ictx=0&sa=X&ved=0ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQpYkNCAo
Press / to jump to the search box
Carglass GmbH Halle (Saale) (Stadtbezirk Nord)

https://www.google.com/intl/en/about/products?tab=wh
Sign in [https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/search%3Fq%3DCarglass%2BGmbH%2BHalle%2B(Saale)%2B(Stadtbezirk%2BNord)%26hl%3Den&ec=GAZAAQ]

FILTERS AND TOPICS

All
Images
[/search?sca_esv=204cf606c36776c7&hl=en&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&udm=2&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQtKgLegQIEBAB]
Jobs
[/search?sca_esv=204cf606c36776c7&hl=en&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&udm=8&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQs6gLegQIDxAB]
Maps
[https://maps.google.com/maps?sca_esv=204cf606c36776c7&hl=en&output=search&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&source=lnms&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&entry=mc&ved=1t:200715&ictx=111]
Shopping
[/search?sca_esv=204cf606c36776c7&hl=en&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&udm=28&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&ved=1t:220175&ictx=111]
Forums
[/search?sca_esv=204cf606c36776c7&hl=en&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&udm=18&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQs6gLegQIDBAB]
Videos
[/search?sca_esv=204cf606c36776c7&hl=en&q=Carglass+GmbH+Halle+(Saale)+(Stadtbezirk+Nord)&udm=7&fbs=AEQNm0Aa4sjWe7Rqy32pFwRj0UkWd8nbOJfsBGGB5IQQO6L3J3BiN9fdhXvF2hIZnLYPFIpnRllAApQe54Ndkz8NZ2uq4JyeAShsPLKuiQt4w_kfDQb0vUvpRZ-tfSALXX7LTuUZ0j3vFCOGbXWbwDt55wNBVTSGsIdQjns_0jgvLA1_kZTbFN-119W9tHwJnaFRmMV8_husR1diKA9zwo5dnLUwQE5gzw&sa=X&ved=2ahUKEwiQmZaHqP2KAxVkIEQIHdKOLpQQtKgLegQIChAB]
More

About 269 results (0.29 seconds) 

Results for

Halle (Saale)-Stadtbezirk Nord
 ∙ Choose area

SEARCH RESULTS

MAIN RESULTS

PreviousRequest JSON Response via Autoparse Parameter in NodeJSNextRequest Response Encoding and Content-Type via ScraperAPI in NodeJS

Last updated 3 months ago

Was this helpful?