Option 1)
I uploaded Millions of people data into github which I crawled from different website and dumped from Google open dataset.
https://github.com/aakashkag/People-Name-List [Github Link for First and last name directory]
Option 2)
Google BigQuery Public Dataset:
https://cloud.google.com/bigquery/public-data/
You can get names from Google open dataset along with gender.
1)Dataset: bigquery-public-data:github_repos
Example: https://app.hyfy.io/v/abRJ75Xizno/
Query:SELECT * FROM fh-bigquery.popular_names.usa_summary_1880_2015
LIMIT 1000
Total Names availble : 1858689
2)Dateset: bigquery-public-data.github_repos.commits
Query: SELECT author.name as author_name, author.email as author_email, committer.name as committer_name, committer.email as committer_email, repo_name FROM bigquery-public-data.github_repos.commits
3)Dateset: bigquery-public-data.usa_names.usa_1910_2013`
Query: SELECT * FROM bigquery-public-data.usa_names.usa_1910_2013
Or you can get from Linkdin
https://www.linkedin.com/directory/people-a