Skip to content

Rate limit of ipinfo.io #10

Open
Open
@divemasterza

Description

@divemasterza

I am getting a 429 error (rate limit) from ipinfo.io.
Adding the ipinfo.io token (free account) will grant 1000 free API calls per day.
not sure if the implementation below would work...

$field.intlTelInput({
		initialCountry: "auto",
		geoIpLookup: function(callback) {
			$.get('//ipinfo.io?token=xxxxxxxxxx', function() {}, "jsonp").always(function(resp) {
				var countryCode = (resp && resp.country) ? resp.country : "";
				callback(countryCode);
			});
		}
	});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions