> ## Documentation Index
> Fetch the complete documentation index at: https://developer.worldly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve specific months of factory data

> Filter factory data by reporting period using reportingPeriodStart and reportingPeriodEnd timestamps

```bash theme={null}
curl --request POST \
     --url https://api-v2.production.higg.org/api/v1/moduledata/dct \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'x-api-key: <<apiKey>>'
     --header 'x-developer-request-token: <<apiKey>>'
     -d '{
    "reportingPeriodStart": 1704096000,
    "reportingPeriodEnd": 1711954800,
    "from": 0,
    "size": 10
}'
```

```json theme={null}
{
    "from": 0,
    "size": 1,
    "total": 1,
    "assessments": [
        {
            "id": "dctsurvey:64775c17-fb48-444c-b9d4-fcb4ca9ecb0e",
            "statusHistory": {
                "NS": "2024-02-19T22:01:43.649Z",
                "ASI": "2024-03-13T05:07:52.383Z",
                "ASC": "2024-03-13T05:08:29.095Z",
                "VRP": "",
                "VRQ": "",
                "VRE": "",
                "VRC": "",
                "VRF": "",
                "VRD": "",
                "VRI": "",
                "ASD": ""
            },
            "status": "ASC",
            "version": "dct",
            "accountId": "651191a1137c0f000c73ac69",
            "accountName": "Example Facility",
            "sacId": "136929",
            "country": "",
            "selfPosted": true,
            "verifiedPosted": false,
            "verified": false,
            "createdOn": 1708380103649,
            "lastUpdated": 1710306509095,
            "location": {
                "address": "Walthamstow, London, UK",
                "vicinity": "",
                "country": "",
                "placeid": "ChIJcUWHieYddkgRSKyvPI77v98",
                "lat": 51.5901769,
                "long": -0.0173437
            },
            "oarId": "",
            "taxId": "",
            "socialCreditId": "",
            "customId": "",
            "parentCompanyId": "",
            "parentCompanyName": "",
            "parentCompanySacId": "",
            "statusNotes": "",
            "verifierBodyName": "",
            "factorydataname": "Jan 2024",
            "dctVersion": "2.0.0"
        }
    ]
}
```

<Steps>
  <Step title="Set your endpoint">
    Use the DCT moduledata endpoint for factory data.

    ```bash theme={null}
    --url https://api-v2.production.higg.org/api/v1/moduledata/dct \
    ```
  </Step>

  <Step title="Include your authorization headers">
    Set the request headers including content type and authentication:

    ```bash theme={null}
    --header 'Accept: application/json' \
    --header 'Content-Type: application/json' \
    --header 'x-api-key: <<apiKey>>'
    --header 'x-developer-request-token: <<apiKey>>'
    ```
  </Step>

  <Step title="Specify the starting month">
    Provide the month in unix time.

    ```json theme={null}
    "reportingPeriodStart": 1704096000,
    ```
  </Step>

  <Step title="Specify the ending month">
    Provide the month in unix time.

    ```json theme={null}
    "reportingPeriodEnd": 1711954800,
    ```
  </Step>
</Steps>
