MagicTheGathering / mtg-api

Magic: The Gathering API allows developers to easily consume MTG card and set data in JSON format.
39 stars 3 forks source link

Search in portuguese #43

Open ciscoproo0 opened 4 years ago

ciscoproo0 commented 4 years ago

Hi,

I'm consuming this API and I tried to search a cardname by language, and seems that the search in portuguese is not working (Tried get with spanish for example and works fine).

What could it be?

I am calling endpoint?name=&language=portuguese

Best regards,

WPaul15 commented 2 years ago

In order to query Portuguese, the query text has to match the string as it is in the response object. Since it's technically Brazilian Portuguese, the language param has to be Portuguese (Brazil).

Here's an example URL: https://api.magicthegathering.io/v1/cards?name=Avacyn,%20Anjo%20da%20Esperan%C3%A7a&language=Portuguese%20(Brazil)