Skip to main content

KFC

KFC locations

The following API endpoint returns KFC locations based on a lookup string.

https://prod.kfcapi.com/api/v1/util/google/lookup?address=<LOCATION>&geotype=Google

Raw request

curl --compressed 'https://prod.kfcapi.com/api/v1/util/google/lookup?address=Gloucester&geotype=Google' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en-GB,en;q=0.5' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: https://www.kfc.co.uk/' \
-H 'x-api-key: siYAzKattmaIHSwMV9OJYtaoP8SRq' \
-H 'codemarket: UK' \
-H 'countrycode: GB' \
-H 'langcode: en' \
-H 'Origin: https://www.kfc.co.uk' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'TE: trailers'

Minimum required headers

Only the following headers are required:

  • codemarket
  • countrycode
  • x-api-key

Example values are shown in the curl request below.

curl --compressed 'https://prod.kfcapi.com/api/v1/util/google/lookup?address=Gloucester&geotype=Google' \
-H 'codemarket: UK' \
-H 'countrycode: GB' \
-H 'x-api-key: siYAzKattmaIHSwMV9OJYtaoP8SRq' 

Example response

[{"description":"Gloucester, UK","matched_substrings":[{"length":10,"offset":0}],"place_id":"ChIJz_Lr9vv9cEgRzxnoIZabcOw","reference":"ChIJz_Lr9vv9cEgRzxnoIZabcOw","structured_formatting":{"main_text":"Gloucester","main_text_matched_substrings":[{"length":10,"offset":0}],"secondary_text":"UK"},"terms":[{"offset":0,"value":"Gloucester"},{"offset":12,"value":"UK"}],"types":["locality","political","geocode"]},{"description":"Gloucestershire, UK","matched_substrings":[{"length":10,"offset":0}],"place_id":"ChIJvWBKlTVTcEgRYidBWWOI7Dc","reference":"ChIJvWBKlTVTcEgRYidBWWOI7Dc","structured_formatting":{"main_text":"Gloucestershire","main_text_matched_substrings":[{"length":10,"offset":0}],"secondary_text":"UK"},"terms":[{"offset":0,"value":"Gloucestershire"},{"offset":17,"value":"UK"}],"types":["administrative_area_level_2","political","geocode"]},{"description":"Gloucester Road, Kensington, London, UK","matched_substrings":[{"length":10,"offset":0}],"place_id":"EidHbG91Y2VzdGVyIFJvYWQsIEtlbnNpbmd0b24sIExvbmRvbiwgVUsiLiosChQKEgnzHEc5XQV2SBHWVE8x6AIEjBIUChIJNxJ0UPQPdkgRXik3cFTbw-0","reference":"EidHbG91Y2VzdGVyIFJvYWQsIEtlbnNpbmd0b24sIExvbmRvbiwgVUsiLiosChQKEgnzHEc5XQV2SBHWVE8x6AIEjBIUChIJNxJ0UPQPdkgRXik3cFTbw-0","structured_formatting":{"main_text":"Gloucester Road","main_text_matched_substrings":[{"length":10,"offset":0}],"secondary_text":"Kensington, London, UK"},"terms":[{"offset":0,"value":"Gloucester Road"},{"offset":17,"value":"Kensington"},{"offset":29,"value":"London"},{"offset":37,"value":"UK"}],"types":["route","geocode"]},{"description":"Gloucester Road Station, Gloucester Road, London, UK","matched_substrings":[{"length":10,"offset":0}],"place_id":"ChIJEVVNPV4FdkgREWjenJPqiBI","reference":"ChIJEVVNPV4FdkgREWjenJPqiBI","structured_formatting":{"main_text":"Gloucester Road Station","main_text_matched_substrings":[{"length":10,"offset":0}],"secondary_text":"Gloucester Road, London, UK"},"terms":[{"offset":0,"value":"Gloucester Road Station"},{"offset":25,"value":"Gloucester Road"},{"offset":42,"value":"London"},{"offset":50,"value":"UK"}],"types":["premise","geocode"]},{"description":"Gloucester Green, Oxford, UK","matched_substrings":[{"length":10,"offset":0}],"place_id":"ChIJ3TUITKTGdkgRF0rXBjwx5A8","reference":"ChIJ3TUITKTGdkgRF0rXBjwx5A8","structured_formatting":{"main_text":"Gloucester Green","main_text_matched_substrings":[{"length":10,"offset":0}],"secondary_text":"Oxford, UK"},"terms":[{"offset":0,"value":"Gloucester Green"},{"offset":18,"value":"Oxford"},{"offset":26,"value":"UK"}],"types":["neighborhood","political","geocode"]}]