All URIs are relative to https://api.webscraping.ai, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
account() | GET /account | Information about your account calls quota |
account(): \OpenAPI\Client\Model\Account
Information about your account calls quota
Returns information about your account, including the remaining API credits quota, the next billing cycle start time, and the remaining concurrent requests. The response is in JSON format.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\AccountApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->account();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->account: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]