Use Climatiq’s API and emission factors database to measure carbon emissions when and where they happen.
Website