openapi: 3.0.0
servers:
  - url: https://tf689y3hbj.execute-api.us-east-1.amazonaws.com/prod/authorization
info:
  license:
    name: MIT
  title: ESG Rating Data
  version: 1.0.0
  x-apisguru-categories:
    - open_data
  x-origin:
    - format: openapi
      url: https://www.esgenterprise.com/wp-content/api/ESGRatingAPI-Definition.json
      version: "3.0"
  x-providerName: esgenterprise.com
paths:
  /search:
    get:
      parameters:
        - description: Company name or stock symbol
          in: query
          name: q
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                properties:
                  company_name:
                    type: string
                  environment_score:
                    format: double
                    type: number
                  governance_score:
                    format: double
                    type: number
                  last_processing_date:
                    format: date
                    type: string
                  social_score:
                    format: double
                    type: number
                  total:
                    format: double
                    type: number
          description: An array of ESG Ratings
          headers:
            x-next:
              description: ESG ratings
              schema:
                type: string
      security:
        - api_key: []
      summary: List all company ESG Ratings
      tags:
        - rating
components:
  securitySchemes:
    api_key:
      in: query
      name: token
      type: apiKey
