Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orenthal james simpson #7

Open
shortpasta opened this issue Sep 12, 2024 · 0 comments
Open

orenthal james simpson #7

shortpasta opened this issue Sep 12, 2024 · 0 comments

Comments

@shortpasta
Copy link

I try to resolve "orenthal james simpson", and the response is this, when the last name should be "simpson" and first name should be "orenthal":
"addressingGivenName": "James",
"addressingSurname": "Orenthal",

request.json:
{"inputPerson":{"type":"NaturalInputPerson","personName":{"nameFields":[{"string":"orenthal james simpson","fieldType":"FULLNAME"}]}}}

command:
curl -H "Content-Type: application/json" -X POST https://api.nameapi.org/rest/v5.3/parser/personnameparser?apiKey=XXXXX --data-binary "@request.json"

I looked at this but don't see ways to customize the request, for example by giving it the region as "USA", or something like that:
https://api.nameapi.org/rest/swagger-ui/#/%2Fparser/parse_2

Should the request be different?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant