mardi 5 janvier 2021

How can I get data from google url in flutter web

I use package [http]https://pub.dev/packages/http to get data from this url https://trends.google.com.vn/trends/api/stories/VN_lnk_GMomYwEwAAA_GM_vi?hl=en-US&tz=-420

import 'package:http/http.dart' as http;

String url = "https://trends.google.com.vn/trends/api/stories/VN_lnk_GMomYwEwAAA_GM_vi?hl=en-US&tz=-420";
http.Response response = await http.get(url);

Then it throw XMLHttpRequest error. I tested with other work well. How can I get data from this url ?




Aucun commentaire:

Enregistrer un commentaire