---
updatedAt: 2025-03-06T23:51:46.000Z
agentTools:
  projectIndex: https://getquanty.readme.io/llms.txt
---

# Visits of companies

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "GetQuanty",
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://api.getquanty.com"
    }
  ],
  "paths": {
    "/v1/companies/visits": {
      "post": {
        "summary": "This endpoint returns all companies visits between two dates in chunk of 500 from the most recent to the oldest. One line per visit timestamped by its session start date and time with additional information on origin (utm fields) or behavior during the visit (goals seen, custom fields). If no date is provided, the current date informations are returned.",
        "operationId": "CompaniesVisits",
        "tags": [
          "CompaniesVisits"
        ],
        "requestBody": {
          "description": "Required payload to fetch visits of companies.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompaniesVisitsPayload"
              },
              "examples": {
                "searchPayloadExemple": {
                  "$ref": "#/components/examples/searchPayloadExemple"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Companies visits from dateMin to dateMax by chunks of 500.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompaniesVisits"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "CompaniesVisitsPayload": {
        "type": "object",
        "properties": {
          "dateMin": {
            "type": "string"
          },
          "dateMax": {
            "type": "string"
          },
          "from": {
            "type": "integer"
          }
        }
      },
      "CompaniesVisits": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "meta_result": {
            "type": "object",
            "properties": {
              "resultsCount": {
                "type": "integer"
              }
            }
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "gq_address": {
                  "type": "string"
                },
                "gq_browser": {
                  "type": "string"
                },
                "gq_campaign": {
                  "type": "string"
                },
                "gq_city": {
                  "type": "string"
                },
                "gq_company": {
                  "type": "string"
                },
                "gq_company_id": {
                  "type": "string"
                },
                "gq_country": {
                  "type": "string"
                },
                "gq_custom": {
                  "type": "object"
                },
                "gq_date": {
                  "type": "string"
                },
                "gq_datetime": {
                  "type": "string"
                },
                "gq_department": {
                  "type": "string"
                },
                "gq_domains": {
                  "type": "string"
                },
                "gq_duration": {
                  "type": "string"
                },
                "gq_email": {
                  "type": "string"
                },
                "gq_geolocalisation": {
                  "type": "string"
                },
                "gq_goals": {
                  "type": "string"
                },
                "gq_info_url": {
                  "type": "string"
                },
                "gq_is_new_visit": {
                  "type": "boolean"
                },
                "gq_keywords": {
                  "type": "string"
                },
                "gq_landing_page": {
                  "type": "string"
                },
                "gq_landing_url": {
                  "type": "string"
                },
                "gq_medium": {
                  "type": "string"
                },
                "gq_nafcode": {
                  "type": "string"
                },
                "gq_naflabel": {
                  "type": "string"
                },
                "gq_os": {
                  "type": "string"
                },
                "gq_pageviews": {
                  "type": "string"
                },
                "gq_phone": {
                  "type": "string"
                },
                "gq_referrer": {
                  "type": "string"
                },
                "gq_score_visit": {
                  "type": "string"
                },
                "gq_search": {
                  "type": "string"
                },
                "gq_segment": {
                  "type": "string"
                },
                "gq_segment_category": {
                  "type": "string"
                },
                "gq_siren": {
                  "type": "string"
                },
                "gq_siret": {
                  "type": "string"
                },
                "gq_size": {
                  "type": "string"
                },
                "gq_source": {
                  "type": "string"
                },
                "gq_tags": {
                  "type": "string"
                },
                "gq_tags_categories": {
                  "type": "string"
                },
                "gq_timestamp": {
                  "type": "string"
                },
                "gq_type": {
                  "type": "string"
                },
                "gq_website": {
                  "type": "string"
                },
                "gq_zipcode": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "reason"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "examples": {
      "searchPayloadExemple": {
        "value": {
          "from": 1,
          "dateMin": "2023-01-01",
          "dateMax": "2023-01-07"
        },
        "summary": "Search payload"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```