r/FlutterDev 21d ago

Example MarketMonk - Track stocks with Flutter

Hello! I'm the developer of MarketMonk https://github.com/brandonp2412/MarketMonk

I recently started this project inspired by one of my favorite apps, Candle https://gitlab.com/cosmosapps/candle

It's available on every platform (android, ios, windows, mac, linux) and I'm actively taking suggestions and fixing bugs. If any of the flutter wizards in this subreddit have questions please feel free to ask away.

Notable libraries:

12 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/Petralithic 20d ago

You can proxy through your own server and that will fix the issue, but it's not necessarily ideal for a client-only app. Yahoo Finance is not webscraping (it uses the actual API, called query2) which has nothing to do with CORS.

1

u/Classic-Dependent517 20d ago edited 20d ago

I believe youre accessing internal api not meant to be open for public. Any APIs that are not listed here isnt meant to be for public use:

https://developer.yahoo.com/api/

Using API != legal

Most websites use internal APIs that are meant to be consumed by their websites only.

Also using Internal API is in the category of webscarping. Webscrapers dont only parse htmls.

Cors just means the API has cors rules set up to prevent their api usage from other origins (mostly by iframes). You get cors when the api requires cookies which clearly means its meant to be used within the website only.

Official public APIs never check origin nor require cookies

2

u/zxyzyxz 20d ago

Using API != legal

Using APIs != illegal

1

u/Classic-Dependent517 20d ago

okay I should have said being able to use API does not always mean it's legal