{"id":157058,"name":"carbonintensity-api","description":"Rust library to retrieve regional carbon intensity data from the UK National Grid.","url":"https://github.com/jnioche/carbonintensity-api","last_synced_at":"2026-04-12T21:30:25.293Z","repository":{"id":206785653,"uuid":"717115302","full_name":"jnioche/carbonintensity-api","owner":"jnioche","description":"A simple Rust library to retrieve data from https://api.carbonintensity.org.uk/","archived":false,"fork":false,"pushed_at":"2024-10-15T05:58:37.000Z","size":103,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T15:43:20.203Z","etag":null,"topics":["carbon-intensity","carbon-intensity-api","national-grid","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnioche.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-10T15:37:03.000Z","updated_at":"2025-04-04T15:37:03.000Z","dependencies_parsed_at":"2023-12-24T16:44:22.604Z","dependency_job_id":"5b7f1101-0dbf-45a1-a8e4-b26392a6c74b","html_url":"https://github.com/jnioche/carbonintensity-api","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":0.3571428571428571,"last_synced_commit":"ab7eafd0cd9fec6400f93bfec4e5b5f36240c39e"},"previous_names":["jnioche/carbonintensity-api"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jnioche/carbonintensity-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche","download_url":"https://codeload.github.com/jnioche/carbonintensity-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31364575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T15:19:21.178Z","status":"ssl_error","status_checked_at":"2026-04-03T15:19:20.670Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"jnioche","name":"Julien Nioche","uuid":"218319","kind":"user","description":"I run @DigitalPebble Ltd\r\n\r\nMy expertise is in green software / grenops / digital sustainability with a strong focus on open source tools.","email":"julien@digitalpebble.com","website":"http://www.digitalpebble.com","location":"Bristol, UK","twitter":null,"company":"DigitalPebble Ltd","icon_url":"https://avatars.githubusercontent.com/u/218319?u=49acbd191fb8a9b1aeabdb7fff35e035a68ef5c3\u0026v=4","repositories_count":15,"last_synced_at":"2026-01-27T03:43:26.389Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/jnioche","funding_links":["https://github.com/sponsors/jnioche"],"total_stars":14,"followers":128,"following":6,"created_at":"2022-11-03T13:26:32.011Z","updated_at":"2026-01-27T03:43:26.389Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche/repositories"},"packages":[{"id":8587739,"name":"carbonintensity-api","ecosystem":"cargo","description":"Provides a client for the UK National Grid Carbon Intensity API","homepage":null,"licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/jnioche/carbonintensity-api","keywords_array":["api","carbon-intensity-api","energy","national-grid"],"namespace":null,"versions_count":3,"first_release_published_at":"2023-11-21T05:53:05.971Z","latest_release_published_at":"2024-10-15T05:27:35.890Z","latest_release_number":"0.3.0","last_synced_at":"2026-04-05T18:02:46.561Z","created_at":"2023-11-21T06:06:30.657Z","updated_at":"2026-04-05T18:02:46.561Z","registry_url":"https://crates.io/crates/carbonintensity-api/","install_command":"cargo install carbonintensity-api","documentation_url":"https://docs.rs/carbonintensity-api/","metadata":{"categories":[]},"repo_metadata":{"id":206785653,"uuid":"717115302","full_name":"jnioche/carbonintensity-api","owner":"jnioche","description":"A simple Rust library to retrieve data from https://api.carbonintensity.org.uk/","archived":false,"fork":false,"pushed_at":"2024-10-15T05:58:37.000Z","size":103,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T22:30:12.201Z","etag":null,"topics":["carbon-intensity","carbon-intensity-api","national-grid","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jnioche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-11-10T15:37:03.000Z","updated_at":"2024-10-15T05:58:40.000Z","dependencies_parsed_at":"2023-12-24T16:44:22.604Z","dependency_job_id":"5b7f1101-0dbf-45a1-a8e4-b26392a6c74b","html_url":"https://github.com/jnioche/carbonintensity-api","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"e72a62f40c80be34af75ca0b95c033e1ecd97039"},"previous_names":["jnioche/carbonintensity-api"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche","download_url":"https://codeload.github.com/jnioche/carbonintensity-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222155697,"owners_count":16940392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"jnioche","name":"Julien Nioche","uuid":"218319","kind":"user","description":"I run @DigitalPebble Ltd\r\n\r\nMy expertise is in document engineering with a strong focus on open source tools.","email":"","website":"http://www.digitalpebble.com","location":"Bristol, UK","twitter":null,"company":"DigitalPebble Ltd","icon_url":"https://avatars.githubusercontent.com/u/218319?u=49acbd191fb8a9b1aeabdb7fff35e035a68ef5c3\u0026v=4","repositories_count":16,"last_synced_at":"2024-05-20T14:49:01.008Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/jnioche","funding_links":["https://github.com/sponsors/jnioche"],"total_stars":11,"followers":114,"following":6,"created_at":"2022-11-03T13:26:32.011Z","updated_at":"2024-05-20T14:49:03.005Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnioche/repositories"},"tags":[{"name":"0.2.0","sha":"200eb353564921a63c9368a6160ebad91ab7a1e1","kind":"commit","published_at":"2023-12-03T17:36:08.000Z","download_url":"https://codeload.github.com/jnioche/carbonintensity-api/tar.gz/0.2.0","html_url":"https://github.com/jnioche/carbonintensity-api/releases/tag/0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags/0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags/0.2.0/manifests"},{"name":"0.1.0","sha":"464ef8f86092523faee0f01845b5c5b7a63d4d86","kind":"commit","published_at":"2023-11-20T21:05:00.000Z","download_url":"https://codeload.github.com/jnioche/carbonintensity-api/tar.gz/0.1.0","html_url":"https://github.com/jnioche/carbonintensity-api/releases/tag/0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags/0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/tags/0.1.0/manifests"}]},"repo_metadata_updated_at":"2024-10-30T02:58:48.353Z","dependent_packages_count":0,"downloads":4014,"downloads_period":"total","dependent_repos_count":0,"rankings":{"downloads":98.4115583512263,"dependent_repos_count":30.797553433585094,"dependent_packages_count":36.13654405927494,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":55.11521861469544},"purl":"pkg:cargo/carbonintensity-api","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/carbonintensity-api","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/cargo/carbonintensity-api","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/carbonintensity-api/dependencies","status":null,"funding_links":["https://github.com/sponsors/jnioche"],"critical":null,"issue_metadata":{"last_synced_at":"2024-10-29T21:00:30.477Z","issues_count":14,"pull_requests_count":19,"avg_time_to_close_issue":7428558.090909091,"avg_time_to_close_pull_request":46671.94736842105,"issues_closed_count":11,"pull_requests_closed_count":19,"pull_request_authors_count":2,"issue_authors_count":2,"avg_comments_per_issue":0.5,"avg_comments_per_pull_request":1.3157894736842104,"merged_pull_requests_count":19,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":14,"past_year_pull_requests_count":19,"past_year_avg_time_to_close_issue":7428558.090909091,"past_year_avg_time_to_close_pull_request":46671.94736842105,"past_year_issues_closed_count":11,"past_year_pull_requests_closed_count":19,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":2,"past_year_avg_comments_per_issue":0.5,"past_year_avg_comments_per_pull_request":1.3157894736842104,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":19,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/issues","maintainers":[{"login":"xoen","count":18,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/xoen"},{"login":"jnioche","count":14,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jnioche"}],"active_maintainers":[{"login":"xoen","count":18,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/xoen"},{"login":"jnioche","count":14,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jnioche"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/carbonintensity-api/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/carbonintensity-api/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/carbonintensity-api/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/carbonintensity-api/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/carbonintensity-api/codemeta","maintainers":[{"uuid":"240585","login":"jnioche","name":"Julien Nioche","email":null,"url":"https://github.com/jnioche","packages_count":2,"html_url":"https://crates.io/users/jnioche","role":null,"created_at":"2023-11-21T06:06:31.769Z","updated_at":"2023-11-21T06:06:31.769Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/jnioche/packages"}],"registry":{"name":"crates.io","url":"https://crates.io","ecosystem":"cargo","default":true,"packages_count":259266,"maintainers_count":61006,"namespaces_count":0,"keywords_count":0,"github":"rust-lang","metadata":{"funded_packages_count":21408},"icon_url":"https://github.com/rust-lang.png","created_at":"2022-04-04T15:19:22.689Z","updated_at":"2026-04-03T06:39:14.601Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/namespaces"}}],"commits":{"id":1458078,"full_name":"jnioche/carbonintensity-api","default_branch":"main","total_commits":98,"total_committers":2,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":49.0,"dds":0.3571428571428571,"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2026-04-05T18:06:15.407Z","last_synced_commit":"ab7eafd0cd9fec6400f93bfec4e5b5f36240c39e","created_at":"2023-12-21T00:19:24.947Z","updated_at":"2026-04-05T18:06:15.309Z","committers":[{"name":"Aldo \"xoen\" Giambelluca","email":"aldo.giambelluca@gmail.com","login":"xoen","count":63},{"name":"Julien Nioche","email":"julien@digitalpebble.com","login":"jnioche","count":35}],"past_year_committers":[],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-07T00:00:11.408Z","repositories_count":6211614,"commits_count":918017205,"contributors_count":35583097,"owners_count":1142749,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"jnioche/carbonintensity-api","html_url":"https://github.com/jnioche/carbonintensity-api","last_synced_at":"2026-03-04T02:00:44.184Z","status":"error","issues_count":14,"pull_requests_count":17,"avg_time_to_close_issue":7428558.090909091,"avg_time_to_close_pull_request":51235.41176470588,"issues_closed_count":11,"pull_requests_closed_count":17,"pull_request_authors_count":2,"issue_authors_count":2,"avg_comments_per_issue":0.5,"avg_comments_per_pull_request":1.4117647058823528,"merged_pull_requests_count":17,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":5,"past_year_pull_requests_count":17,"past_year_avg_time_to_close_issue":52608.0,"past_year_avg_time_to_close_pull_request":51235.41176470588,"past_year_issues_closed_count":3,"past_year_pull_requests_closed_count":17,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":2,"past_year_avg_comments_per_issue":0.8,"past_year_avg_comments_per_pull_request":1.4117647058823528,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":17,"created_at":"2023-12-21T00:19:25.933Z","updated_at":"2026-03-04T02:00:44.184Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnioche%2Fcarbonintensity-api/issues","issue_labels_count":{"enhancement":7,"help wanted":4,"bug":2,"good first issue":2},"pull_request_labels_count":{"enhancement":8},"issue_author_associations_count":{"OWNER":12,"COLLABORATOR":2,"CONTRIBUTOR":1},"pull_request_author_associations_count":{"COLLABORATOR":27,"OWNER":4,"NONE":1,"CONTRIBUTOR":1},"issue_authors":{"jnioche":12,"xoen":3},"pull_request_authors":{"xoen":29,"jnioche":4},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-03T00:00:08.051Z","repositories_count":14065016,"issues_count":34433358,"pull_requests_count":112491235,"authors_count":11220102,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[{"login":"xoen","count":29,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/xoen"},{"login":"jnioche","count":16,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jnioche"}],"active_maintainers":[]},"events":{"total":{"WatchEvent":1},"last_year":{}},"keywords":["carbon-intensity","carbon-intensity-api","national-grid","rust-lang"],"dependencies":[{"ecosystem":"cargo","filepath":"Cargo.toml","sha":null,"kind":"manifest","created_at":"2023-11-12T10:28:32.457Z","updated_at":"2023-11-12T10:28:32.457Z","repository_link":"https://github.com/jnioche/carbonintensity-api/blob/main/Cargo.toml","dependencies":[]},{"ecosystem":"actions","filepath":".github/workflows/rust.yml","sha":null,"kind":"manifest","created_at":"2023-12-02T18:42:38.493Z","updated_at":"2023-12-02T18:42:38.493Z","repository_link":"https://github.com/jnioche/carbonintensity-api/blob/main/.github/workflows/rust.yml","dependencies":[{"id":14862615797,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]}],"score":11.629997136556065,"created_at":"2023-12-21T00:05:38.749Z","updated_at":"2026-04-12T21:30:25.299Z","avatar_url":"https://github.com/jnioche.png","language":"Rust","category":"Emissions","sub_category":"Carbon Intensity and Accounting","monthly_downloads":0,"total_dependent_repos":0,"total_dependent_packages":0,"readme":"# carbonintensity-api\n[![crates.io](https://img.shields.io/crates/d/carbonintensity-api)](https://crates.io/crates/carbonintensity-api)\n[![crates.io](https://img.shields.io/crates/v/carbonintensity-api)](https://crates.io/crates/carbonintensity-api)\n[![API](https://docs.rs/carbonintensity-api/badge.svg)](https://docs.rs/carbonintensity-api)\n\nA simple Rust library to help retrieve data from the [Carbon Intensity API](https://api.carbonintensity.org.uk/), not all functionalities of the CarbonIntensity API might be exposed.\n\nPlease read the API's [terms of use](https://github.com/carbon-intensity/terms).\n\n## CLI\n\nAn executable is provided to try the library. With Rust and Cargo installed\n\n```\ncargo install --locked --path .\n```\n\nthen\n\n`carbonintensity-api -h`\n\nshould display the list of available commands and options.\n\n```\nProvides a client for the UK National Grid Carbon Intensity API\n\nUsage: carbonintensity-api [OPTIONS] [TARGET]\n\nArguments:\n  [TARGET]  numerical value for a region (1-17) or first part of a UK postcode returns data at the national level if not set [default: National]\n\nOptions:\n  -s, --start-date \u003cSTART_DATE\u003e  \n  -e, --end-date \u003cEND_DATE\u003e\n  -h, --help                     Print help\n  -V, --version                  Print version\n```\n\nTo display the current carbon intensity at national level\n\n`carbonintensity-api`\n\nfor a given postcode\n\n`carbonintensity-api bs7`\n\nor a region \n\n`carbonintensity-api 11`\n\nThe region id is a number between 1 and 17\n\n```\n 1. North Scotland\n 2. South Scotland\n 3. North West England\n 4. North East England\n 5. South Yorkshire\n 6. North Wales, Merseyside and Cheshire\n 7. South Wales\n 8. West Midlands\n 9. East Midlands\n 10. East England\n 11. South West England\n 12. South England\n 13. London\n 14. South East England\n 15. England\n 16. Scotland\n 17. Wales\n```\n\nSpecifying dates will return a list of intensities. If no end date is provided, the current day and time will be used.\n\nThe dates are expected to be at the `%Y-%m-%dT%H:%MZ` format or simply `%Y-%m-%d`, for instance \n\n`carbonintensity-api -s 2023-11-11 -e 2023-11-11T12:00Z postcode bs7`\n\nIntensities are returned by 30 mins windows.\n\n## Library\n\nYou can use the library in your Rust project by adding it to cargo with \n\n`cargo add carbonintensity-api`\n\nthen declaring it in your code \n\n```Rust\nuse carbonintensity::{get_intensity, Target, Region};\n\n...\n\n  let scotland = Region::Scotland;\n  let result = get_intensity(\u0026Target::Region(scotland)).await;\n\n```\n\n## License\n\nThis project is provided under [Apache License](http://www.apache.org/licenses/LICENSE-2.0).\n\n## Changelog\n\nSee [CHANGELOG](CHANGELOG.md).","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":[],"project_url":"https://ost.ecosyste.ms/api/v1/projects/157058","html_url":"https://ost.ecosyste.ms/projects/157058"}