R
R
rgen32012-04-13 15:54:59
PHP
rgen3, 2012-04-13 15:54:59

KLADR API. Output list in JSON format?

Good afternoon,

Please show someone with an example how you can work with the Cladr API.

The problem is that I have no experience with third-party APIs at all, and I just started to comprehend ajax technologies.

www.magora.ru/info/kladr

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valeriyat, 2017-01-21
@Valeriyat

Try the dadata.ru API - the response in JSON format will return detailed information at the address.

W
werdender, 2012-04-13
@werdender

Using the example of getting a list of regions, it would be possible like this:

$regions = file_get_contents('http://kladr.magora.ru/regions/100/0');

Or curl.
The $regions variable would contain the resulting json.
But on links with examples they get 404 for some reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question