To make it easier to get up and running you can also use our SDK. First, you will need to install the SDK:
gem install scraperapi
Then integrate it into your code:
# remember to install the library: gem install scraperapirequire"scraper_api"client =ScraperAPI::Client.new("APIKEY")result = client.get("http://httpbin.org/ip").raw_bodyputs result
To enable extra functionality while using our SDK, simply add an additional parameter to the GET request:
# remember to install the library: gem install scraperapirequire"scraper_api"client =ScraperAPI::Client.new("APIKEY")result = client.get("http://httpbin.org/ip", render: true).raw_bodyputs result
To use two or more parameters, simply add them to the GET request:
# remember to install the library: gem install scraperapirequire"scraper_api"client =ScraperAPI::Client.new("APIKEY")result = client.get("http://httpbin.org/ip", render: true, country_code: “us”).raw_bodyputs result