The AppKey submitted with this request is invalid.

11 posts / 0 new
Last post
mapquest.206
The AppKey submitted with this request is invalid.

I am trying to figure out how to call the Geocode API to give LAT/LON for an address.

If I copy/paste into firefox the URL, I get: 

The AppKey submitted with this request is invalid.

I am using the sample URL:  www.mapquestapi.com/geocoding/v1/address?key=YOUR_KEY_HERE&callback=renderOptions&inFormat=kvp&outFormat=json&location=Lancaster,PA&thumbMaps=false

but I replace the "YOUR_KEY_HERE" with the consumer key that was recently generated.

Any hints on how to do this?

What does callback URL mean in the App page?

I have the "Free & Open" plan [approved]

 


mapquest.206
never mind - I got it going

No idea why the key stopped working, it says it is approved. I generated a new key and the new one worked instantly.

Cannot DELETE the old key. I'll leave it alone since it does not hurt anything.


jonathan
The legacy Free & Open Plan
The legacy Free & Open Plan was the free tier offered prior to May 1, 2015 and the legacy keys associated with the former Free & Open Plan begin with an "F."  Free & Open keys will work with Open Data APIs and SDKs hosted on open.mapquestapi.com.  Free & Open keys will eventually be transitioned -- with plenty of notice -- to our current Free plan.  The current Free plan will work with both Licensed Data APIs and SDKs hosted on www.mapquestapi.com as well as Open Data APIs and SDKs hosted on open.mapquestapi.com.  I know it's a bit confusing, but we will clarify for everyone soon as we continue to populate the Developer Network with additional content.  That is why your new key works with www.mapquestapi.com/geocoding/v1/ but the former key does not.  

faizanshaikh
I am facing the same problem

I am facing the same problem The AppKey submitted with this request is invalid. i also regenerated key but that also didnt help i am using open.mapquestapi.com url any one who can help on this topic

 


MQBrianCoakley
It looks like your key is
It looks like your key is working great for me. Are you still seeing this issue? If so, can you post the request that you're making to the mapquestapi server?

Frank.FYC
Key Request

Hello, I am having the same error. Would you please assist? Thank you.


MQBrianCoakley
You should be able to get a
You should be able to get a new key now.

chechu
Hello,

Hello,

I have the same issue, I had to change to key but the new one is not working. When using that link with the new key I get a json format error. In application I get that the app key is invalid.

Any help?

Thank you


MQBrianCoakley
Your key works great for me.
Your key works great for me. Here is my test request.   http://www.mapquestapi.com/geocoding/v1/address?location=80401&key=KEY

oS1ruqk1
Java code results in The AppKey submitted with this request is i

I am trying to get lat and long for the addresses and looks like when I post the address via postman it works fine. I wrote a simple java program to call the geocoding API, I am getting the error "The AppKey submitted with this request is invalid." I also regenerated the key and used the new key with both postman and eclipse and looks like the same issue persists when I request over eclipse. Is there anything that I am missing while requesting via java program. Any help is much appreciated

http://open.mapquestapi.com/geocoding/v1/address?key=KEY&location=Stone+...

java program:

public class GeoCodingAPIRequest {

 

public static void main(String[] args) throws ParserConfigurationException, SAXException {

 

        try {

            String result = sendPOST("http://open.mapquestapi.com/geocoding/v1/address?");

            System.out.println(result);

      

        } catch (IOException e) {

            e.printStackTrace();

        }

    }

 

    private static String sendPOST(String url) throws IOException {

 

        String result = "";

        HttpPost post = new HttpPost(url);

 

        // add request parameters or form parameters

        List<NameValuePair> urlParameters = new ArrayList<>();

        urlParameters.add(new BasicNameValuePair("key", "Ibx1IYY924gp3flWYuOgS8VBtswASXkS"));

        urlParameters.add(new BasicNameValuePair("location", "Stone+Creek+TC+3671+STONECREEK+BLVD+Stone+Creek+TC,CINCINNATI,OH,45251"));

        urlParameters.add(new BasicNameValuePair("thumbMaps", "false"));

 

        post.setEntity(new UrlEncodedFormEntity(urlParameters));

 

        try (CloseableHttpClient httpClient = HttpClients.createDefault();

             CloseableHttpResponse response = httpClient.execute(post)){

 

            result = EntityUtils.toString(response.getEntity());

        }

 

        return result;

    }

}

 


MQBrianCoakley
The key needs to go in the
The key needs to go in the url rather than the post data.