{"id":32166945,"url":"https://github.com/fteem/excountries","last_synced_at":"2026-02-19T07:02:48.284Z","repository":{"id":57500176,"uuid":"43780522","full_name":"fteem/excountries","owner":"fteem","description":"🗺 Elixir wrapper for REST Countries API","archived":false,"fork":false,"pushed_at":"2017-10-23T19:56:27.000Z","size":12,"stargazers_count":15,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-31T22:18:28.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://restcountries.eu/","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fteem.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}},"created_at":"2015-10-06T21:42:33.000Z","updated_at":"2023-09-01T10:52:49.000Z","dependencies_parsed_at":"2022-08-28T20:01:34.022Z","dependency_job_id":null,"html_url":"https://github.com/fteem/excountries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fteem/excountries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fteem%2Fexcountries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fteem%2Fexcountries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fteem%2Fexcountries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fteem%2Fexcountries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fteem","download_url":"https://codeload.github.com/fteem/excountries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fteem%2Fexcountries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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"}},"keywords":[],"created_at":"2025-10-21T15:15:11.339Z","updated_at":"2026-02-19T07:02:48.272Z","avatar_url":"https://github.com/fteem.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"Excountries\n===========\n\n![](https://img.shields.io/hexpm/dt/excountries.svg?style=flat-square) ![](https://img.shields.io/hexpm/v/excountries.svg?style=flat-square)\n\nThis is a tiny [Elixir](http://elixir-lang.org) wrapper for the [REST Countries API](http://restcountries.eu/).\n\n## Installation\n\nFirst, add Excountries to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [{:excountries, \"~\u003e 0.0.1\"}]\nend\n```\n\nand run `$ mix deps.get`. \n\n## Usage\n\nThere are multiple functions via which one can search for countries in the API.\nEach function returns a single or a list of ```Country``` structs.\n\n### Get all\n\nReturns a list of countries.\n```elixir\n Excountries.Radar.all()\n```\n\n### Name\n\nSearches for a country by it's exact name:\n```elixir\n Excountries.Radar.by_full_name(\"United States Of America\")\n```\n\nSearches for a country by a substring of it's name or abbreviation:\n```elixir\n Excountries.Radar.by_name(\"USA\")\n```\n\n### Language\n\nSearches for a country by a language code:\n\n```elixir\n Excountries.Radar.by_language(\"en\")\n```\nLanguage codes must be ISO 639-1 compliant. If not, throws error.\n\n### Currency\n\nSearches for a country by currency name:\n\n```elixir\n Excountries.Radar.by_currency(\"USD\")\n```\n\n### Capital city\n\nSearches for the country by it's capital city:\n\n```elixir\n Excountries.Radar.by_capital(\"USD\")\n```\n\n### Calling code\n\nSearches for the country by it's calling code:\n\n```elixir\n Excountries.Radar.by_calling_code(\"01\")\n```\n\n### Region \n\nSearches for the country by it's region:\n\n```elixir\n Excountries.Radar.by_region(\"Oceania\")\n```\n\n### Subregion \n\nSearches for the country by it's subregion:\n\n```elixir\n Excountries.Radar.by_subregion(\"Polynesia\")\n```\n\n### Country code\n\nSearches for the country by it's country code:\n\n```elixir\n Excountries.Radar.by_country_code(\"MKD\")\n```\n\n## ```Country```\n\n```%Excountries.Country``` is a struct containing multiple properties:\n\n  - name\n  - capital\n  - relevance\n  - region\n  - subregion\n  - population\n  - latitude\n  - longitude\n  - demonym\n  - area\n  - timezones\n  - nativeName\n  - topLevelDomain\n  - currencies\n  - languages\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\n  Copyright © 2015 Ilija Eftimov \u003cileeftimov@gmail.com\u003e\n\n  This work is free. You can redistribute it and/or modify it under the\n  terms of the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffteem%2Fexcountries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffteem%2Fexcountries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffteem%2Fexcountries/lists"}