# Product report

# Setup

Endpoint: https://app.lamatool.com/api/v2/stats/product-report

Type: GET

# Parameters

Field Type Required Note
api_key string true Company API key
from date true Format Y-m-d
until date true Format Y-m-d

# Using from and until

When using from and until be aware that from is start of day and until is end of day.

So if you want a report for january:

from=2023-01-01&until=2023-01-31

from=2023-01-01&until=2023-02-01

# Example

The following example will return a product-report for the given period: 2023-01-01-2023-05-31

https://app.lamatool.com/api/v2/stats/product-report?api_key=[YOUR_API_KEY]&from=2023-01-01&until=2023-05-31

# Example result

[
    {
        "id": 1,
        "name": "My product",
        "count": 10, // number of leads
        "goal_reached": 7
    },
    ...
]