Forum/Support Market
Busy icon
Hey, I'm trying to use the api price quote function and it works great!

The only problem I'm having is with steam gifts that have special characters in them like ® and ™

If I just copy and paste the market name into my browser like, Far Cry® 4

http://dispenser.tf/bulk/api_market_price_quote/?market_name=Far%20Cry%C2%AE%204&contextid=1¤cy_key=KEY_CREDIT&appid=753

I get a server error 500.

Am I doing something wrong or is something else the problem?

Thank you!
Replies

Also,
When a game has a 4-pack edition available, the market name is the same for the both. So the API can return the unwanted game.

If it was an easy addition, maybe searching by the market id # instead of market name would be better for games with special characters and 4 packs

anyway, it's not a big deal

Thanks!

The URL you give as an example is not correct:
1. It uses some strange character "¤" instead of an ampersand.
2. Currency should be specified via the parameter currency_key, not cy_key

Here is the corrected URL:
http://dispenser.tf/bulk/api_market_price_quote/?market_name=FAR%20CRY%C2%AE%204&contextid=1¤cy_key=KEY_CREDIT&appid=753

Anyway, you are correct that API does not work with special characters.

Information API call error 500 for markets with special character in market names should be fixed.

Information API call error 500 for markets with special character in market names should be fixed.


Thanks a lot for the quick fix!

Any possibility of being able to detect if a game region restricted game, or a 4-pack version? (they all share the same market name)

I really have no idea about how it works, but each market number (https://dispenser.tf/market/3657/ seems unique.. It would be gr8 if that number could be used instead of market_name. I have no idea if that's possible :P