---
title: "Get traffic"
method: POST
path: "/traffic"
tags: ["Traffic"]
---

# Get traffic

`POST /traffic`

## Request body

- object
  - `proxyType` 'residential_proxies' | 'mobile_proxies' | 'rtc_universal_proxies' | 'rtc_universal_core_proxies' | 'modular_scraper' — RTC proxies are Scraping APIs
  - `startDate` string — Max date return interval is 180 days. Date in this format: YYYY-MM-DD HH:MM:SS
  - `endDate` string — Max date return interval is 180 days. Date in this format: YYYY-MM-DD HH:MM:SS
  - `proxyUsers` string[] — A list of proxy user IDs retrieved [from here](https://help.decodo.com/api-reference/sub-users/get-sub-users) (only available for residential_proxies). Not applicable to RTC proxies (Scraping APIs)
  - `groupBy` 'day' | 'target' | 'country' | 'protocol' | 'proxy_user' | 'hour' | 'week' | 'month' — Group results by. hour shows last day usage every hour, but you must have used traffic within last 2 weeks for it to show.
  - `targets` string[] — A list (array) of target URLs
  - `locations` string[] — A list of locations to filter the results by in ISO-2 format (IT, US, ES..). Not applicable to RTC proxies (Scraping APIs)
  - `limit` integer — How many items to return
  - `page` integer — Page number to return
  - `sortBy` 'grouping_key' | 'requests' | 'totals' — Desired way to group the response by
  - `sortOrder` 'asc' | 'desc' — Sort order: ascending or descending
  - `protocols` string[] — Valid protocols: http, https, socks5. Empty will return all protocols. Not applicable to RTC proxies (Scraping APIs)

## Response `200`

200

- object

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/decodo/apis/smartproxy.md) · [All operations](https://skmtc.dev/decodo/apis/smartproxy/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodo/smartproxy/revisions/561ae165491a/schema)
