Open documentation ↗Overview
A freecycling community with thousands of free items posted every day
Trash Nothing is a social API from trashnothing.com. Requests are authenticated with OAuth. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 76 endpoints.
At a glance
- Authentication
- OAuth
- HTTPS
- Yes
- CORS
- Yes
- Category
- Social
- Base URL
https://trashnothing.com/api/v1.3- Version
- 1.3
- Endpoints
- 76
- OpenAPI
- Specification ↗
- Spec updated
- 2023-03-03
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://trashnothing.com/api/v1.3/conversations" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://trashnothing.com/api/v1.3/conversations", {
method: "GET",
headers: {
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://trashnothing.com/api/v1.3/conversations",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /conversations | List conversations |
| PUT | /conversations/archive-all | Archive all conversations |
| PUT | /conversations/mark-all-read | Mark all conversations as read |
| GET | /conversations/search | Search conversations |
| DELETE | /conversations/{conversation_id} | Delete conversation |
| PUT | /conversations/{conversation_id}/archive | Archive conversation |
| PUT | /conversations/{conversation_id}/block | Block conversation |
| PUT | /conversations/{conversation_id}/mark-read | Mark conversation as read |
| GET | /conversations/{conversation_id}/messages | List conversation messages |
| POST | /conversations/{conversation_id}/reply | Reply to conversation |
| POST | /conversations/{conversation_id}/report | Report conversation |
| PUT | /conversations/{conversation_id}/unarchive | Unarchive conversation |
| PUT | /conversations/{conversation_id}/unblock | Unblock conversation |
| POST | /feedback | Send feedback |
| GET | /groups | Search groups |
| GET | /groups/multiple | Retrieve multiple groups |
| POST | /groups/subscribe | Join groups |
| GET | /groups/{group_id} | Retrieve a group |
| POST | /groups/{group_id}/answers | Submit group answers |
| POST | /groups/{group_id}/contact | Contact group moderators |
| POST | /groups/{group_id}/unsubscribe | Leave a group |
| POST | /photos | Create a photo |
| GET | /photos/multiple | Retrieve multiple photos |
| DELETE | /photos/{photo_id} | Delete a photo |
| POST | /photos/{photo_id}/rotate | Rotate a photo |
| GET | /posts | List posts |
| POST | /posts | Submit a post |
| GET | /posts/all | List all posts |
| GET | /posts/all/changes | List all post changes |
| GET | /posts/multiple | Retrieve multiple posts |
| GET | /posts/search | Search posts |
| GET | /posts/{post_id} | Retrieve a post |
| PUT | /posts/{post_id} | Update a post |
| DELETE | /posts/{post_id} | Delete a post |
| PUT | /posts/{post_id}/bookmark | Bookmark a post |
| DELETE | /posts/{post_id}/bookmark | Delete a post bookmark |
| GET | /posts/{post_id}/display | Retrieve post display data |
| PUT | /posts/{post_id}/promise | Promise an offer post |
| POST | /posts/{post_id}/reply | Reply to a post |
| POST | /posts/{post_id}/report | Report a post |
| PUT | /posts/{post_id}/satisfy | Satisfy a post |
| POST | /posts/{post_id}/share | Share a post |
| PUT | /posts/{post_id}/unpromise | Unpromise an offer post |
| PUT | /posts/{post_id}/withdraw | Withdraw a post |
| GET | /stories | List stories |
| POST | /stories | Submit a story |
| GET | /stories/{story_id} | Retrieve a story |
| PUT | /stories/{story_id}/like | Like a story |
| PUT | /stories/{story_id}/unlike | Unlike a story |
| POST | /stories/{story_id}/viewed | Record story viewed |
| GET | /users/me | Retrieve current user |
| PUT | /users/me | Update current user |
| GET | /users/me/alerts | List current users' email alerts |
| PUT | /users/me/alerts | Create an email alert |
| DELETE | /users/me/alerts/{alert_id} | Delete an email alert |
| POST | /users/me/email | Change email address |
| PUT | /users/me/email/not-bouncing | Set users' email address as not bouncing |
| GET | /users/me/groups | List current users' groups |
| PUT | /users/me/location | Update location |
| GET | /users/me/notices | List current users' group notices |
| GET | /users/me/post-locations | List current users' post locations |
| PUT | /users/me/post-locations | Save a post location for the current user |
| GET | /users/me/posts | List current users' posts |
| GET | /users/me/posts/search | Search current users' posts |
| POST | /users/me/profile-image | Set a profile image |
| GET | /users/me/profile-images | List current users' profile images |
| POST | /users/me/resend-verification | Resend account verification email |
| POST | /users/me/reset-password | Send password reset email |
| POST | /users/report | Report a user |
| GET | /users/{user_id} | Retrieve a user |
| GET | /users/{user_id}/display | Retrieve user display info |
| POST | /users/{user_id}/feedback | Submit feedback on a user |
| DELETE | /users/{user_id}/feedback | Remove feedback on a user |
| GET | /users/{user_id}/posts | List posts by a user |
| GET | /users/{user_id}/posts/search | Search posts by a user |
| GET | /users/{user_id}/profile-image | Retrieve a users' profile image |
Questions
Does the Trash Nothing API need an API key?
Yes. The Trash Nothing API uses OAuth authentication; the documentation explains how to get credentials.
Can I call the Trash Nothing API from the browser?
Yes. The Trash Nothing API sends CORS headers, so a web page can call it directly with fetch().
Does the Trash Nothing API support HTTPS?
Yes, the Trash Nothing API is served over HTTPS.
How many endpoints does the Trash Nothing API have?
Its OpenAPI description lists 76 endpoints in version 1.3. All of them are shown on this page.
What are alternatives to the Trash Nothing API?
Other Social APIs include Blogger, Facebook, Twitter, Pinterest, TikTok.
Similar social APIs
Compare alternatives →Blogger
SocialThe Blogger APIs allows client applications to view and update Blogger content
Facebook Login, Share on FB, Social Plugins, Analytics and more
Read and write Twitter data
The world's catalog of ideas
TikTok
SocialFetches user info and user's video posts on TikTok platform
Twitter API
SocialUse the X API with an all-new Developer Console and consumption-based billing. No fixed monthly costs, no monthly caps.
Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).