---
title: "List all post changes"
method: GET
path: "/posts/all/changes"
tags: ["posts"]
---

# List all post changes

`GET /posts/all/changes`

This endpoint provides an easy way to get a feed of all the changes that have been made to publicly published posts on Trash Nothing.  Similar to the /posts/all endpoint, only data from the last 30 days is available and the changes are sorted by date (newest first).  Every change includes the date of the change, the post_id of the post that was changed and the type of change. <br /><br /> The different types of changes that are returned are listed below. <br /><br /> - published<br /> - deleted<br /> - undeleted<br /> - satisfied<br /> - promised<br /> - unpromised<br /> - withdrawn<br /> - edited<br /> <br /> For published and edited changes, clients can use the retrieve post API endpoint to get the edits that have been made to the post.

## Query parameters

- `date_min` string, date-time, required
- `date_max` string, date-time, required
- `per_page` integer
- `page` integer

## Response `200`

The changes.

- object
  - `changes` object[]
    - `change_id` integer — The unique ID for this change. This is an auto-incrementing ID that can be used by clients to make sure they have received every change. If a client detects a gap in the change ID (eg. 1, 3, 4 instead of 1,2,3,4) then the client should repoll older changes to get the missing change.
    - `post_id` string
    - `date` string, date-time — The UTC date and time when the post was changed.
    - `type` string — The type of change. One of: published, deleted, undeleted, satisfied, promised, unpromised, withdrawn, edited, expired

## Other responses

- `400` — Missing or invalid parameters.

---

[API](https://skmtc.dev/trashnothing/apis/trash-nothing.md) · [All operations](https://skmtc.dev/trashnothing/apis/trash-nothing/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trashnothing/trash-nothing/revisions/2db980cc9ffd/schema)
