Directions or tips on how to create an API for BehindyourName
Query an API about a legitimate Firstname
What's the meaning of API on documentations.
How to protect my backend API endpoints on the front-end?
Behind Your Name API Documentation
Greetings everyone,
I am trying to build an API to create a project to analyze names in the USA. I have pulled data from the SSA. From the SSA, I have csv files for names, sex, year, location, and occurrences. However, the one more field I am trying to add is name usage. I found that Behind Your Name API has usage like below:
[
{
"name": "Mary",
"gender": "f",
"usages": [
{
"usage_code": "eng",
"usage_full": "English",
"usage_gender": "f"
},
{
"usage_code": "eng-bibl",
"usage_full": "Biblical",
"usage_gender": "f"
}
]
}
]I am trying to incorporate the usage from their database. I have two csv file: one for the number of distinct names which is appropriately 35,000 rows and another with all the fields--names, sex, year, location, and occurrences-- which is approximately over 6,000,000 rows. I am using latest version of Python, and I am stuck on how to create an API for this. I only need to retrieve the data once. I do not need to build a pipeline to continuously extract data daily or weekly. I want to get the data into a csv or json file and concatenate that with my other data sets to include usage. After that, I will use the data to analyze trends. This is for a group project for class and to add on my resume. It is beyond what the class is teaching, but I believe it is a great opportunity for me to learn and will interesting to talk about during interviews. If you can point me in the right direction, share resources, or tips, that would be great. Thank you!