Green Web Foundation Validate API

The Validate API from Green Web Foundation — 3 operation(s) for validate.

GitHub OpenAPI

Operations 3

POST /api/validate/file/ Validate Contents #
POST /api/validate/url/ Validate Url #
POST /api/validate/domain/ Validate Domain #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/green-web-foundation:green-web-foundation-validate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

green-web-foundation-validate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Green Web Foundation Validate API
  version: 1.0.0
  termsOfService: https://thegreenwebfoundation.org/terms/
  description: 'Operations tagged Validate across 2 of this provider''s published API definitions: green-web-foundation-carbon-txt-openapi.json, green-web-foundation-carbon-txt-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://carbon-txt-api.greenweb.org
  description: Production (named in https://developers.thegreenwebfoundation.org/api/carbon-txt/check-by-domain/)
tags:
- name: Validate
paths:
  /api/validate/file/:
    post:
      operationId: carbon_txt_web_api_validate_contents
      summary: Validate Contents
      parameters: []
      responses:
        '200':
          description: OK
      description: Accept contents of a carbon.txt file and validate it.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CarbonTextSubmission'
        required: true
      security:
      - APIKeyHeaderAuth: []
      tags:
      - Validate
  /api/validate/url/:
    post:
      operationId: carbon_txt_web_api_validate_url
      summary: Validate Url
      parameters: []
      responses:
        '200':
          description: OK
      description: Fetch a file at a given URL and validate it.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CarbonTextUrlSubmission'
        required: true
      security:
      - APIKeyHeaderAuth: []
      tags:
      - Validate
  /api/validate/domain/:
    post:
      operationId: carbon_txt_web_api_validate_domain
      summary: Validate Domain
      parameters: []
      responses:
        '200':
          description: OK
      description: Find a file for a given domain and validate it.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CarbonTextDomainSubmission'
              required:
              - domain
              type: object
              properties:
                domain:
                  type: string
                  example: example.com
        required: true
      security:
      - APIKeyHeaderAuth: []
      tags:
      - Validate
components:
  schemas:
    CarbonTextDomainSubmission:
      description: 'Schema for the submission of a domain to check for a carbon.txt file.

        We expect a fully qualified domain, which is then searched for carbon.txt

        data in one of the allowed locations..'
      properties:
        domain:
          title: Domain
          type: string
      required:
      - domain
      title: CarbonTextDomainSubmission
      type: object
    CarbonTextUrlSubmission:
      description: 'Schema for the submission of a URL pointing to a carbon.txt file.

        We expect an URL pointing to a carbon.txt file, which is downloaded and parsed.'
      properties:
        url:
          format: uri
          maxLength: 2083
          minLength: 1
          title: Url
          type: string
      required:
      - url
      title: CarbonTextUrlSubmission
      type: object
    CarbonTextSubmission:
      description: 'Schema for the submission of carbon.txt file contents.

        We expect a string, containing the contents of the carbon.txt file.'
      properties:
        text_contents:
          title: Text Contents
          type: string
      required:
      - text_contents
      title: CarbonTextSubmission
      type: object
  securitySchemes:
    APIKeyHeaderAuth:
      type: apiKey
      in: header
      name: X-Api-Key
x-refined-from:
- green-web-foundation-carbon-txt-openapi.json
- green-web-foundation-carbon-txt-openapi.yml