What is a Mashape Key?

Question:

I am doing some tests and I would like to make a successful request using these API.
I tried to make a request as follows:

response = unirest.get("https://omgvamp-hearthstone- 
v1.p.mashape.com/cards/Ysera",
  headers={
    "X-Mashape-Key": "<required>",
    "Accept": "application/json"
  }
)

but I get the following:

>>> response.code
403

How can I fulfill my request? What is the X-Mashape-Key field? Why do I need it?

Asked By: Rexam

||

Answers:

Well the “X-Mashape-Key” seems to be some sort of authorization. The 403 error means that the server is denying the request even with authorization. It seems that the request isn’t possible to the given url. Are you sure you are able to make requests to that URL. Try doing it manually using a GET requests using the Requests library and sending the headers with the request.
Here is some more information on the 403 error.

Answered By: ryan_thomp
Answered By: stephen
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.