Skip to content

Add carbon.txt lookup endpoint #273

@fershad

Description

@fershad

Is your feature request related to a problem? Please describe.
Add the ability for users to provide a single domain and check for a carbon.txt file present for that domain.

Describe the solution you'd like
This would be similar to the hosting.check() functionality, however would not (currently) permit multiple domains to be checked at once (by using an array). This would use the https://carbon-txt-api.greenweb.org/api/validate/domain/ endpoint.

Describe alternatives you've considered
Users can use a fetch request to lookup a domain using the endpoint above. This does not require CO2.js. The purpose to building this into CO2.js is to make it a bit easier.

Metadata

Metadata

Assignees

Labels

confirmedSpecced out and funded things that we are committing to releaseroadmap

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions