1. Go to this page and download the library: Download evgeek/scraperapi-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
evgeek / scraperapi-sdk example snippets
use Evgeek\Scraperapi\Client;
ent
$sdk = new Client('YOUR_TOKEN');
//Send request
$response = $sdk->get('https://example.com');
//Work with \Psr\Http\Message\ResponseInterface
echo $response->getBody()->getContents();
$defaultApiParams = [
'country_code' => 'us', //activate country geotargetting
'render' => true, //activate javascript rendering
'premium' => false, //activate premium residential and mobile IPs
'session_number' => 123, //reuse the same proxy
'keep_headers' => true, //use your own custom headers
'device_type' => 'mobile', //set mobile or desktop user agents
'autoparse' => 'false', //activate auto parsing for select websites
];
$sdk = new Client('YOU_TOKEN', $defaultApiParams);