Skip to content

orenthal james simpson #7

Description

@shortpasta

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions