Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Greenly Carbon Analytics Alternatives API
version: '1.5'
description: '# Introduction
The Greenly Carbon Analytics API is a set of RESTful services which enable the enrichment of bank transactions with carbon footprint analytics.'
contact:
email: contact@greenly.earth
servers:
- url: https://api.greenly.earth/v1.5
tags:
- name: Alternatives
paths:
/alternatives:
get:
operationId: GetAlternatives
responses:
'200':
description: Ok
content:
application/json:
schema:
items:
$ref: '#/components/schemas/AlternativeOutput'
type: array
'401':
description: Authentication Failed
'500':
description: An unexpected error occured while processing the request
description: Retrieve the details of all low-carbon alternatives, either advices or low-carbon provider.
summary: Get all alternatives
tags:
- Alternatives
security: []
parameters: []
/alternatives/{id}:
get:
operationId: GetAlternative
responses:
'200':
description: Ok
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/AlternativeOutput'
- {}
'401':
description: Authentication Failed
'404':
description: Resource not found
'500':
description: An unexpected error occured while processing the request
description: Retrieve the details of one low-carbon alternative, either advice or low-carbon provider.
summary: Get alternative
tags:
- Alternatives
security: []
parameters:
- in: path
name: id
required: true
schema:
type: string
components:
schemas:
AlternativeOutput:
properties:
recommendedProviders:
items:
$ref: '#/components/schemas/RecommendedProviderOutput'
type: array
description: List of alternative providers
ratioEstimatedReduction:
type:
- number
- 'null'
format: double
description: 'Estimated average reduction resulting from the suggested low-carbon alternative. Hence a ratio of 0.66 means a reduction
of 66%, i.e., that the carbon footprint is divided by 3.'
sources:
items:
type: string
type:
- array
- 'null'
description: A list of url. Can be null.
description:
$ref: '#/components/schemas/AlternativeDescriptionTranslations'
geographicalRestriction:
allOf:
- $ref: '#/components/schemas/CountryId'
description: 'If specified, it means the alternative is valid only for the specified country.
If null, then the alternative is valid everywhere.'
isProviderAlternative:
type: boolean
description: 'boolean to indicate whether the alternative is a general advice/behaviour alternative or is related to
a specific alternative provider.'
id:
type: string
description: UUID4 unique identifier of the alternative
required:
- recommendedProviders
- ratioEstimatedReduction
- sources
- description
- geographicalRestriction
- isProviderAlternative
- id
type: object
AlternativeDescriptionTranslations:
$ref: '#/components/schemas/Translations'
description: 'Very short intuitive description of the suggested low-carbon advice or provider
(tweet format with less than 280 characters) in our multilingual format.'
Translations:
$ref: '#/components/schemas/Record_Language.string_'
Record_Language.string_:
properties:
en:
type: string
fr:
type: string
es:
type: string
it:
type: string
sv:
type: string
de:
type: string
type: object
description: Construct a type with a set of properties K of type T
CountryId:
enum:
- GB
- FR
- ES
- IT
- SE
- DE
type: string
RecommendedProviderOutput:
properties:
logoUrl:
type:
- string
- 'null'
description: Url of the provider's logo stored in svg format.
url:
type:
- string
- 'null'
description: Url of the recommended provider.
name:
type: string
description: Name of the recommended provider.
required:
- logoUrl
- url
- name
type: object
securitySchemes:
api_key:
type: apiKey
name: api-key
in: header