# Archive Metadata

Load all metadata from a specific month. *Note: This loads a very large JSON file (\~20 MB), thus likely it takes a while.*

## Usage

```python
NYTAPI.archive_metadata(date)
```

### Parameters

| Variables | Description                       | Data type           | Required |
| --------- | --------------------------------- | ------------------- | -------- |
| `date`    | Date of month of all the metadata | `datetime.datetime` | True     |

## Example

```python
import datetime

data = nyt.archive_metadata(
    date = datetime.datetime(2019, 1, 1)
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pynytimes.michadenheijer.com/metadata/archive-metadata.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
