Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The library provides convenient access to the Outscraper API from applications written in the Java language. Allows using Outscraper's services from your code.

License

NotificationsYou must be signed in to change notification settings

outscraper/outscraper-java

Repository files navigation

The library provides convenient access to theOutscraper API from applications written in the Java language. Allows usingOutscraper's services from your code.

Installation

Java 11 or later

Gradle

Edit your build.gradle file

repositories {    maven { url"https://jitpack.io" }}dependencies {    implementation'com.github.outscraper:outscraper-java:v2.0.0'}

Maven

Add the JitPack repository to your build file

<repositories><repository><id>jitpack.io</id><url>https://jitpack.io</url></repository></repositories>

Add the dependency

<dependency><groupId>com.github.outscraper</groupId><artifactId>outscraper-java</artifactId><version>v2.0.0</version></dependency>

Others

You'll need to manually install the following JARs:

Initialization

OutscraperClientclient =newOutscraperClient("SECRET_API_KEY");

Link to the profile page to create the API key

Usage

// Search for businesses in specific locations:JSONArrayresults =client.googleMapsSearch(newHashMap<String,Object>() {{put("query","bars ny usa");put("limit",10);}});System.out.println(results);// Get data of the specific place by idJSONArrayresults =client.googleMapsSearch(newHashMap<String,Object>() {{put("query","rChIJrc9T9fpYwokRdvjYRHT8nI4");put("language","en");}});System.out.println(results);// Get reviews of the specific place by idJSONArrayresults =client.googleMapsReviews(newHashMap<String,Object>() {{put("query","rChIJrc9T9fpYwokRdvjYRHT8nI4");put("reviewsLimit",20);put("language","en");}});System.out.println(results);// Search contacts from websiteJSONArrayresults =client.emailsAndContacts(newHashMap<String,Object>() {{put("query","outscraper.com");}});System.out.println(results);

More examples

Contributing

Bug reports and pull requests are welcome on GitHub athttps://github.com/outscraper/outscraper-java.

About

The library provides convenient access to the Outscraper API from applications written in the Java language. Allows using Outscraper's services from your code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp