Y
Y
Yuriy2017-08-23 14:46:41
PHP
Yuriy, 2017-08-23 14:46:41

SprosiKupi API how to get a list of product reviews by id in JSON?

Maybe someone knows how to get a list of reviews for a product by id in the SprosiKupi service via the API in JSON?
Or maybe someone has documentation.
through JS found only

http://widget.sprosikupi.ru/good/rating?shopId={TOKEN}&ids={ID}

such a request will receive a rating for the product,
95aa7cc7ec9e4875b9ab3cf9e311b60c.png
but how to get a list of REVIEWS for the product?
script that connects to the site
https://static.sprosikupi.ru/js/widget/sprosikupi.bootstrap.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2019-04-28
@Sanasol

regular expression

for which it is immediately so cruel to processor capacities.
First, explode by <br>
Get individual rows with attributes.
Then explode each one by :(you can immediately :with a space after the colon so as not to trim the values ​​later)
Get the name and value for each attribute separately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question