Socket
Socket
Sign inDemoInstall

population-data

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

population-data

Get Population Data of the world


Maintainers
1

A package that allows you to get world and country pouplation data

Population Data of the world

Developed by Anshu from Techi Tutorials (c) 2021

How To Use

from population_data import Population_data

# YOUR API KEY(Get it from here https://rapidapi.com/aldair.sr99/api/world-population/)

my_api = YOUR API KEY

# country population data
country_population = Population_data.get_country_population(my_api, "Canada")
print(country_population)

# world population data
world_population = Population.get_world_population(my_api)
print(world_population)

get_country_population() method takes additional argument of the query string, that is country name and returns the json response

Check out: https://techitutorials.com

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc