> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.data.aviato.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.data.aviato.co/_mcp/server.

# Enrich Web Traffic

GET https://data.api.aviato.co/company/web-traffic

Get a company's web traffic history, sources, and visitor geography. Returns 404 without charging when no category data is available.

Reference: https://docs.data.aviato.co/api-reference/company/enrich-web-traffic

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `id` (string, optional)
- `linkedinID` (string, optional)
- `linkedinNumID` (string, optional)
- `linkedinURL` (string, optional) — LinkedIn URL, accepts company URLs like linkedin.com/company/google or linkedin.com/company/1441
- `facebookID` (string, optional)
- `twitterID` (string, optional)
- `crunchbaseID` (string, optional)
- `pitchbookID` (string, optional)
- `producthuntID` (string, optional)
- `dealroomID` (string, optional)
- `goldenID` (string, optional)
- `angellistID` (string, optional)
- `wellfoundID` (string, optional)
- `website` (string, optional)
- `require` (list of string, optional) — Each requested top-level response field must be non-empty; otherwise returns 404 without charging.

## Response

### 200

- `monthlyWebTrafficChange` (double, optional) — The absolute change in the number of web visitors the company has had over the past month.
- `monthlyWebTrafficPercent` (double, optional) — The percentage change in the number of web visitors the company has had over the past month. This is the change in the number of visitors divided by the number of visitors at the start of the month.
- `triMonthlyWebTrafficChange` (double, optional) — The absolute change in the number of web visitors the company has had over the past 3 months.
- `triMonthlyWebTrafficPercent` (double, optional) — The percentage change in the number of web visitors the company has had over the past 3 months. This is the change in the number of visitors divided by the number of visitors at the start of the 3 months.
- `yearlyWebTrafficChange` (double, optional) — The absolute change in the number of web visitors the company has had over the past year.
- `yearlyWebTrafficPercent` (double, optional) — The percentage change in the number of web visitors the company has had over the past year. This is the change in the number of visitors divided by the number of visitors at the start of the year.
- `currentWebTraffic` (double, optional) — The current number of web visitors the company has.
- `webTrafficSources` (WebTrafficSources, optional) — The sources of web traffic the company has.
- `webTrafficHistorical` (map from string to double, optional) — The historical number of web visitors the company has had.
- `webViewerCountries` (list of WebTrafficCountry, optional) — The countries of the web visitors the company has had.

## Errors

### 404 Company Not Found Error

### 401 Unauthorized Error

### 429 Rate Limit Error

### 400 Bad Request Error

- `message` (string, required)

## Types

### WebTrafficSources

- `mail` (double, optional) — Percentage of web traffic from email sources
- `direct` (double, optional) — Percentage of direct web traffic
- `search` (double, optional) — Percentage of web traffic from search engines
- `social` (double, optional) — Percentage of web traffic from social media
- `referrals` (double, optional) — Percentage of web traffic from referrals
- `paidReferrals` (double, optional) — Percentage of web traffic from paid referrals

### WebTrafficCountry

- `country` (string, required) — Country Web traffic is coming from
- `percentage` (double, required) — Percentage of web traffic coming from the country. Ranges from 0 to 1.

## Examples

**Response**

```json
{
  "monthlyWebTrafficChange": 1.1,
  "monthlyWebTrafficPercent": 1.1,
  "triMonthlyWebTrafficChange": 1.1,
  "triMonthlyWebTrafficPercent": 1.1,
  "yearlyWebTrafficChange": 1.1,
  "yearlyWebTrafficPercent": 1.1,
  "currentWebTraffic": 1.1,
  "webTrafficSources": {
    "mail": 1.1,
    "direct": 1.1,
    "search": 1.1,
    "social": 1.1,
    "referrals": 1.1,
    "paidReferrals": 1.1
  },
  "webTrafficHistorical": {
    "webTrafficHistorical": 1.1
  },
  "webViewerCountries": [
    {
      "country": "country",
      "percentage": 1.1
    },
    {
      "country": "country",
      "percentage": 1.1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://data.api.aviato.co/company/web-traffic"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://data.api.aviato.co/company/web-traffic';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://data.api.aviato.co/company/web-traffic"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://data.api.aviato.co/company/web-traffic")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://data.api.aviato.co/company/web-traffic")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://data.api.aviato.co/company/web-traffic', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://data.api.aviato.co/company/web-traffic");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://data.api.aviato.co/company/web-traffic")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```