N
N
NikolayAlb2020-07-16 13:52:03
PHP
NikolayAlb, 2020-07-16 13:52:03

Are there ways to determine the user's city without API limits?

There is a task on the back (or front) to determine its approximate city by the user's IP (i.e. there will be a standard plate as in online stores with a city offer). Googled - everywhere it is proposed to use public APIs, but for all there are quite strict free limits of a couple of hundred requests per day, or the limits are paid. As I understand GeoIP has stopped providing a free service, Yandex also requires 18 thousand rubles a year to determine the city.

Is there a solution that can work without third-party services, or in this regard, apart from paid / limited APIs, nothing sensible can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-07-16
@NikolayAlb

put yourself a free base from maxmind and update it periodically.
https://dev.maxmind.com/geoip/geoip2/geolite2/

S
Sanes, 2020-07-16
@Sanes

DaData seems to be not particularly limited.


The maximum request rate is 10 per second.
The maximum frequency for creating new connections is 60 per minute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question