Skip to content

Hit CFA's locator API #3

@tumbleshack

Description

@tumbleshack
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://locator.chick-fil-a.com.yext-cdn.com/search?q=31701&per=10',
  headers: { 
    'authority': 'locator.chick-fil-a.com.yext-cdn.com', 
    'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"', 
    'accept': 'application/json', 
    'sec-ch-ua-mobile': '?1', 
    'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Mobile Safari/537.36', 
    'sec-fetch-site': 'same-origin', 
    'sec-fetch-mode': 'cors', 
    'sec-fetch-dest': 'empty', 
    'referer': 'https://locator.chick-fil-a.com.yext-cdn.com/search?q=30269&per=10', 
    'accept-language': 'en-US,en;q=0.9'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

This should be done for every zip code in AL, GA, SC, and NC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions