Skip to main content
GET
/
api
/
traffics
Retrieves the collection of Traffic resources.
curl --request GET \
  --url https://anyip.io/api/traffics \
  --header 'api-key: <api-key>'
{
  "hydra:member": [
    {
      "@id": "<string>",
      "@type": "<string>",
      "id": "<string>",
      "date": "2023-11-07T05:31:56Z",
      "requests": 123,
      "bytes_recv": 123,
      "bytes_sent": 123,
      "consumption": 123,
      "consumption_str": "<string>"
    }
  ],
  "hydra:totalItems": 1,
  "hydra:view": {
    "@id": "string",
    "type": "string",
    "hydra:first": "string",
    "hydra:last": "string",
    "hydra:previous": "string",
    "hydra:next": "string"
  },
  "hydra:search": {
    "@type": "<string>",
    "hydra:template": "<string>",
    "hydra:variableRepresentation": "<string>",
    "hydra:mapping": [
      {
        "@type": "<string>",
        "variable": "<string>",
        "property": "<string>",
        "required": true
      }
    ]
  }
}

Authorizations

api-key
string
header
required

Value for the api-key header parameter.

Query Parameters

date[before]
string
date[strictly_before]
string
date[after]
string
date[strictly_after]
string
proxy_account
string
proxy_account[]
string[]

Response

Traffic collection

hydra:member
object[]
required
hydra:totalItems
integer
Required range: x >= 0
hydra:view
object
Example:
{
  "@id": "string",
  "type": "string",
  "hydra:first": "string",
  "hydra:last": "string",
  "hydra:previous": "string",
  "hydra:next": "string"
}