Locations API

You can use this API to get a full list of locations associated with stores in CouponAPI. You may build a script in PHP, Python, Java or NodeJS to fetch list of locations from CouponAPI's Database.

NOTE: This API is not available in Basic Plan.

API Endpoint

GET  https://couponapi.org/api/getLocations/

Sample Request

https://couponapi.org/api/getLocations/?API_KEY=[YOUR_API_KEY]

Request Parameters

  • API_KEY (required) (string)

Success Response:

  • result: (boolean) true
  • locations (array)
    • name: (string) Full name of Country
    • code: (string) Two letter country code in ISO 3166

Error Response:

  • result: (boolean) false
  • error: (string) Reason for failure