Developer API
Trash Nothing provides a REST API which allows developers to build apps on top of the Trash Nothing platform
(with thousands of new posts every day and millions of users from around the world).
To use the Trash Nothing API:
Register App
To register an app,
login to Trash Nothing.
If you don't have an account, it only takes a minute to
create an account.
Client Libraries
The Trash Nothing API is documented using the OpenAPI 2.0 specification which supports
automatic generation of API client libraries in 30+ languages.
To download an API client library in the language you need, use the
Generate Client option
at
this Swagger Editor page.
Alternatively, you can use any OpenAPI 2.0 compatible code generation library with the
Trash Nothing API specification file for more control
over the code output (eg.
Swagger Codegen
or
Autorest).
Documentation
It is recommended to use the ReDoc interface below to view the API documentation.
ReDoc
There is also a
Swagger* interface
to view the API documentation. It lacks the display of min and max values for parameters but it does have
a useful "Try it out" feature that allows you to experiment with the API directly from the documentation.
*For Swagger, you may need to copy and paste the following URL into the Explore field at the top of the page to load
the Trash Nothing API (as of May 2022):
https://trashnothing.com/api/v1.4/trashnothing-openapi.yaml.
Help & Support
If you have a question or issue with the API,
contact us.