### ZenRows Universal Scraper API Getting Started
Source: https://context7_llms
Guides for getting started with the ZenRows Universal Scraper API, including making your first request and setting up integrations with Node.js and Python.
```APIDOC
ZenRows Universal Scraper API Getting Started:
Make Your First Request:
Description: A step-by-step guide to making your initial request to the Universal Scraper API.
Usage: Typically involves setting up your API key and target URL.
Get Started with ZenRows® Universal Scraper API in Node.js:
Description: Instructions for setting up and using the Universal Scraper API within a Node.js environment.
Usage: Includes installation and basic usage examples for Node.js.
ZenRows® Universal Scraper API with Python: Getting Started:
Description: A guide to integrating and using the Universal Scraper API with Python.
Usage: Covers installation, API key setup, and making requests using Python.
```
--------------------------------
### ZenRows Product and Pricing Guidance
Source: https://docs.zenrows.com/first-steps/getting-started-guide
Provides guidance on selecting the appropriate ZenRows product and plan. It directs users to detailed product documentation for feature comparison and a pricing guide for plan selection.
```markdown
Check our [Product Documentation](/first-steps/our-products#best-product-for-your-use-case) to compare features and find the best fit for your use case, or review our [Pricing Guide](/first-steps/pricing#choosing-the-right-plan-for-your-needs) to select the right plan.
```
--------------------------------
### ZenRows API Request Examples
Source: https://docs.zenrows.com/first-steps/getting-started-guide
Demonstrates how to make a scraping request to the ZenRows API using various programming languages. Ensure you replace 'YOUR_ZENROWS_API_KEY' with your actual API key.
```python
## pip install requests
import requests
url = 'https://httpbin.io/anything'
apikey = 'YOUR_ZENROWS_API_KEY'
params = {
'url': url,
'apikey': apikey,
}
response = requests.get('https://api.zenrows.com/v1/', params=params)
print(response.text)
```
```javascript
// npm install axios
const axios = require('axios');
const url = 'https://httpbin.io/anything';
const apikey = 'YOUR_ZENROWS_API_KEY';
axios({
url: 'https://api.zenrows.com/v1/',
method: 'GET',
params: {
'url': url,
'apikey': apikey,
},
})
.then(response => console.log(response.data))
.catch(error => console.log(error));
```
```java
import org.apache.hc.client5.http.fluent.Request;
public class APIRequest {
public static void main(final String... args) throws Exception {
String apiUrl = "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything";
String response = Request.get(apiUrl)
.execute().returnContent().asString();
System.out.println(response);
}
}
```
```php
```
```go
package main
import (
"io"
"log"
"net/http"
)
func main() {
client := &http.Client{}
req, err := http.NewRequest("GET", "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything", nil)
resp, err := client.Do(req)
if err != nil {
log.Fatalln(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatalln(err)
}
log.Println(string(body))
}
```
```ruby
# gem install faraday
require 'faraday'
url = URI.parse('https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything')
conn = Faraday.new()
conn.options.timeout = 180
res = conn.get(url, nil, nil)
print(res.body)
```
```bash
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fhttpbin.io%2Fanything"
```
--------------------------------
### HTML Content Example
Source: https://docs.zenrows.com/universal-scraper-api/python
An example of the HTML content that might be returned after a successful ZenRows scrape, including basic meta information.
```html
Asana Reviews 2024: Details, Pricing, & Features | G2