### Manual JAR Installation Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/SimilarWeb Scraper.md
Lists the necessary JAR files to manually install if not using a dependency manager like Gradle or Maven. Links to download locations are provided.
```sh
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
```
--------------------------------
### Manual JAR Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
Lists the necessary JAR files to manually install if not using a dependency manager. Includes Outscraper client, Json, Httpclient, and Guava.
```sh
# The Outscraper JAR
https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar
# Json
https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
# Httpcomponents
https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
# Guava
https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
```
--------------------------------
### Manual JAR Installation Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps.md
List of JAR files required for manual installation of the Outscraper Java client.
```sh
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/README.md
Example of how to initialize the OutscraperClient with an API key.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps.md
Instructions for adding the Outscraper Java client to a Gradle project.
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps.md
Example of how to initialize the OutscraperClient with an API key.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps.md
Instructions for adding the Outscraper Java client to a Maven project.
```maven
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Reviews.md
Adds the Outscraper Java client dependency to your Gradle project. Ensure you have Java 11 or later installed.
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Manual JAR Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Insights.md
Lists the required JAR files for manual installation if not using a dependency manager. Includes Outscraper client, Json, Httpcomponents, and Guava.
```sh
- The Outscraper JAR: https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar
- Json: https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
- Httpcomponents: https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
- Guava: https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
```
--------------------------------
### Manual JAR Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Search Scraper.md
Manually download and include the necessary JAR files for the Outscraper Java library, Json, Httpcomponents, and Guava in your project if not using a dependency manager.
```sh
# The Outscraper JAR
https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar
# Json
https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
# Httpcomponents
https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
# Guava
https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/README.md
Instructions to add the Outscraper Java library as a dependency in a Gradle project.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Search Scraper.md
Configure your Maven project to use the JitPack repository and add the Outscraper Java library as a dependency. This enables the use of the library in your project.
```maven
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Reviews.md
Adds the Outscraper Java client dependency to your Maven project. Requires Maven to be configured with the JitPack repository.
```maven
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Fetching SimilarWeb Data with Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/SimilarWeb Scraper.md
Example of how to use the OutscraperClient to retrieve SimilarWeb data for a given domain. The 'query' parameter specifies the domain.
```java
# Get data from Similarweb businesses:
JSONArray results = client.similarweb(new HashMap() {{
put("query", "apple.com");
}});
System.out.println(results);
```
--------------------------------
### Manual JAR Installation Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Phones Validator.md
If not using a build tool, manually install the required JAR files for the Outscraper Java client, including dependencies for JSON parsing, HTTP requests, and Guava.
```sh
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
```
--------------------------------
### Manual JAR Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Lists the required JAR files to manually install for the Outscraper Java client if not using a build tool. Includes Outscraper JAR, Json, Httpcomponents, and Guava.
```sh
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google SERP.md
Instructions to add the Outscraper Java library to your project using Maven. This involves adding the JitPack repository to your pom.xml and then including the dependency.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Manual JAR Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Youtube Comments Scraper.md
Lists the required JAR files for manual installation if not using a dependency manager like Gradle or Maven. These include the Outscraper client, JSON parser, HTTP client, and Guava library.
```java
- [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar)
- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google SERP.md
Instructions to add the Outscraper Java library to your project using Gradle. This involves configuring the JitPack repository and adding the dependency to your build.gradle file.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Search Scraper.md
Add the Outscraper Java library as a dependency in your Gradle build file. This allows you to use the library in your Java project.
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Scrape Tripadvisor Reviews
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Tripadvisor Reviews Scraper.md
Example of using the OutscraperClient to fetch reviews for a specific Tripadvisor business. It takes a HashMap containing the query URL and prints the results.
```java
# Get information about business
JSONArray results = client.tripadvisorReviews(new HashMap() {
put("query", "https://www.tripadvisor.com/Restaurant_Review-g187147-d12947099-Reviews-Mayfair_Garden-Paris_Ile_de_France.html");
});
System.out.println(results);
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/README.md
Instructions to add the Outscraper Java library as a dependency in a Maven project, including repository configuration.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Google Search Execution
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google SERP.md
Example of how to perform a Google search using the initialized OutscraperClient. It shows how to pass search parameters like query, language, and region in a HashMap and prints the resulting JSON array.
```java
// Search for SERP results:
JSONArray results = client.googleSearch(new HashMap() {
put("query", "buy iphone 13 TX");
put("language", "en");
put("region", "us");
});
System.out.println(results);
```
--------------------------------
### Search Trustpilot Businesses
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Example of using the Outscraper Java client to search for data from Trustpilot businesses. It takes a HashMap with parameters like 'query' and prints the JSON results.
```java
# Search data from Trustpilot businesses:
JSONArray results = client.trustpilot(new HashMap() {{
put("query", "outscraper.com");
}});
System.out.println(results);
```
--------------------------------
### Gradle Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Email Addresses Finder.md
Adds the Outscraper Java client dependency to your Gradle project. Requires the JitPack repository to be added.
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Maven Installation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Email Addresses Finder.md
Configures your Maven project to use the JitPack repository and adds the Outscraper Java client dependency.
```maven
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Email and Contact Search
Source: https://github.com/outscraper/outscraper-java/blob/main/README.md
Example of using the Outscraper API to find emails and contact information from a website.
```java
JSONArray results = client.emailsAndContacts(new HashMap() {
put("query", "outscraper.com");
});
System.out.println(results);
```
--------------------------------
### Outscraper Java Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/SimilarWeb Scraper.md
Initializes the OutscraperClient with your secret API key. Obtain your API key from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Google Maps Search by Place ID
Source: https://github.com/outscraper/outscraper-java/blob/main/README.md
Example of retrieving data for a specific place using its ID.
```java
JSONArray results = client.googleMapsSearch(new HashMap() {
put("query", "rChIJrc9T9fpYwokRdvjYRHT8nI4");
put("language", "en");
});
System.out.println(results);
```
--------------------------------
### Initialize OutscraperClient
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Tripadvisor Reviews Scraper.md
Demonstrates how to initialize the OutscraperClient with your secret API key. This client is used to interact with the Outscraper API.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Reviews Scraper.md
Initializes the Outscraper client with your secret API key. This client instance is used to make requests to the Outscraper API for data scraping.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
Initializes the OutscraperClient with your secret API key. Obtain your API key from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Initialize Outscraper Client
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Demonstrates how to initialize the OutscraperClient with your secret API key. This client instance is used to make requests to the Outscraper API.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Reviews.md
Initializes the OutscraperClient with your secret API key. Obtain your API key from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Scraping Trustpilot Reviews
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Reviews Scraper.md
Fetches reviews from a Trustpilot business using the Outscraper client. It takes a HashMap containing the query parameter, which is the URL of the Trustpilot business page.
```java
# Get information about the reviews from Trustpilot:
JSONArray results = client.trustpilotReviews(new HashMap() {
put("query", "https://www.trustpilot.com/review/outscraper.com");
});
System.out.println(results);
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Search Scraper.md
Initialize the OutscraperClient with your secret API key. This client object is used to interact with the Outscraper API.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Maven Dependencies for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Reviews Scraper.md
Configures Maven to use the JitPack repository and adds the Outscraper Java client as a dependency. This enables the use of the library for scraping Trustpilot reviews.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Trustpilot Search Execution
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Search Scraper.md
Perform a Trustpilot search using the initialized client. Pass a HashMap containing search parameters, such as the 'query'. The results are returned as a JSONArray.
```java
# Get information about the search results from Trustpilot:
JSONArray results = client.trustpilotSearch(new HashMap() {{
put("query", "real estate");
}});
System.out.println(results);
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Insights.md
Initializes the OutscraperClient with your secret API key. Obtain your API key from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Maven Dependencies for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/SimilarWeb Scraper.md
Configures Maven to use the JitPack repository and adds the Outscraper Java library as a dependency.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Maven Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Adds the Outscraper Java client library to your project using Maven. This includes configuring the JitPack repository and adding the necessary dependency.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Emails And Contacts.md
Initializes the OutscraperClient with your secret API key. Obtain your API key from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Maven Dependencies for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Tripadvisor Reviews Scraper.md
Configures your Maven project to use the Outscraper Java client. This involves adding the JitPack repository and the library dependency.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google SERP.md
Code snippet demonstrating how to initialize the OutscraperClient with your secret API key. The API key can be obtained from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Gradle Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/SimilarWeb Scraper.md
Adds the Outscraper Java library as a dependency in your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Gradle Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Tripadvisor Reviews Scraper.md
Adds the Outscraper Java client library as a dependency to your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Company Website Finder Usage
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
Demonstrates how to use the companyWebsiteFinder method to retrieve company information based on a query. The result is printed to the console.
```java
# Get information about the companies:
JSONArray results = client.companyWebsiteFinder(new HashMap() {{
put("query", "Apple Inc");
}});
System.out.println(results);
```
--------------------------------
### Maven Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Youtube Comments Scraper.md
Configures your Maven project to include the Outscraper Java client library. This involves adding the JitPack repository and the dependency to your pom.xml file.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Yellow Pages Search Scraper.md
Initializes the OutscraperClient with your secret API key. This client is used to interact with Outscraper's APIs.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Gradle Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Reviews Scraper.md
Adds the Outscraper Java client library to your project using Gradle. This allows you to easily integrate Trustpilot review scraping functionality.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Gradle Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
Adds the Outscraper Java client dependency to your Gradle project. Ensure you have the JitPack repository configured.
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Gradle Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Adds the Outscraper Java client library to your project using Gradle. This allows you to use the library's functionalities for scraping data.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Youtube Comments Scraper.md
Demonstrates how to initialize the OutscraperClient with your secret API key. This client object is used to interact with the Outscraper API for data scraping.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Outscraper API - Trustpilot Endpoint
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Trustpilot Scraper.md
Documentation for the Trustpilot scraping endpoint of the Outscraper API. This details how to retrieve data from Trustpilot businesses via API calls.
```APIDOC
GET /trustpilot
Returns data from Trustpilot businesses.
Parameters:
- query (string, required): The search query for Trustpilot businesses.
Returns:
- JSONArray: A JSON array containing the scraped business data.
See Also:
- [Outscraper API Docs](https://app.outscraper.cloud/api-docs#tag/Businesses-and-POI/paths/~1trustpilot/get)
```
--------------------------------
### Maven Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Insights.md
Configures Maven to use the JitPack repository and adds the Outscraper Java client dependency to your project.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Maven Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Photos Scraper.md
Includes the Outscraper Java library in your Maven project. Requires adding the JitPack repository to your pom.xml.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Gradle Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Emails And Contacts.md
Adds the Outscraper Java client dependency to your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Maven Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Yellow Pages Search Scraper.md
Adds the Outscraper Java SDK as a dependency in your Maven project. Includes configuration for the JitPack repository.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Initialize Outscraper Client
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Phones Validator.md
Instantiate the OutscraperClient with your secret API key obtained from the Outscraper profile page.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Maven Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
Adds the Outscraper Java client dependency to your Maven project. Includes configuration for the JitPack repository.
```maven
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Gradle Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Yellow Pages Search Scraper.md
Adds the Outscraper Java SDK as a dependency in your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Maven Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Emails And Contacts.md
Adds the Outscraper Java client dependency to your Maven project. Includes configuration for the JitPack repository.
```sh
jitpack.io
https://jitpack.io
com.github.outscraper
outscraper-java
v2.1.0
```
--------------------------------
### Outscraper Client Initialization
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Photos Scraper.md
Initializes the OutscraperClient with your secret API key. This client is used to interact with the Outscraper API.
```java
OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
```
--------------------------------
### Google Maps Business Search
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps.md
Demonstrates searching for businesses on Google Maps using the Outscraper client, with options for query, limit, language, and region.
```java
// Search for businesses in specific locations:
JSONArray results = client.googleMapsSearch(new HashMap() {
put("query", "restaurants brooklyn usa");
put("limit", 20);
put("language", "en");
put("region", "us");
});
System.out.println(results);
```
--------------------------------
### Outscraper API Documentation - Tripadvisor Reviews
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Tripadvisor Reviews Scraper.md
Documentation for the Tripadvisor Reviews endpoint of the Outscraper API. This endpoint allows you to retrieve reviews for businesses listed on Tripadvisor.
```APIDOC
/tripadvisor-reviews
GET
Returns reviews from Tripadvisor businesses.
Parameters:
- query (string, required): The URL of the Tripadvisor business page.
Returns:
A JSON array containing the reviews for the specified business. If no reviews are found, an empty array is returned.
Rate Limiting:
Each search request consumes one review credit, even if no reviews are found.
Example:
https://app.outscraper.com/api/v1/tripadvisor-reviews?query=https://www.tripadvisor.com/Restaurant_Review-g187147-d12947099-Reviews-Mayfair_Garden-Paris_Ile_de_France.html
```
--------------------------------
### Gradle Dependency for Outscraper Java
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Google Maps Photos Scraper.md
Adds the Outscraper Java library as a dependency in your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Outscraper API Documentation
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Insights.md
Documentation for the Outscraper API, specifically the 'Company Insights' endpoint. This endpoint allows fetching details about companies.
```APIDOC
GET /company-insights
Finds company details such as revenue, size, founding year, public status, etc.
Parameters:
query (string, required): The domain of the company to search for.
Returns:
JSONArray: An array of company details.
Example:
GET /company-insights?query=outscraper.com
```
--------------------------------
### Outscraper API - Company Website Finder
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Website Finder.md
API endpoint for finding company websites. Requires a query parameter for the company name. Returns a JSON array of results.
```APIDOC
OpenAPI: 3.0.0
Info:
title: Outscraper API
version: 1.0.0
Paths:
/company-website-finder:
get:
summary: Find company websites
operationId: companyWebsiteFinder
tags:
- Domain Related
parameters:
- name: query
in: query
required: true
schema:
type: string
description: The company name to search for.
- name: api_key
in: query
required: true
schema:
type: string
description: Your Outscraper API key.
responses:
'200':
description: A list of company websites and related information.
content:
application/json:
schema:
type: array
items:
type: object
properties:
name:
type: string
description: The name of the company.
website:
type: string
description: The company's website URL.
# ... other potential properties
'400':
description: Bad Request - Invalid parameters provided.
'401':
description: Unauthorized - Invalid API key.
'404':
description: Not Found - Resource not found.
'500':
description: Internal Server Error.
```
--------------------------------
### Gradle Dependency
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Company Insights.md
Adds the Outscraper Java client dependency to your Gradle project. Ensure you have the JitPack repository configured.
```sh
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.outscraper:outscraper-java:v2.1.0'
}
```
--------------------------------
### Manual JAR Dependencies
Source: https://github.com/outscraper/outscraper-java/blob/main/examples/Email Addresses Finder.md
Lists the necessary JAR files to manually include in your project if not using a dependency manager like Gradle or Maven.
```sh
# The Outscraper JAR
https://jitpack.io/com/github/outscraper/outscraper-java/v2.1.0/outscraper-java-v2.1.0.jar
# Json
https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar
# Httpcomponents
https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
# Guava
https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
```