https://github.com/jacoblincool/there-should-be-an-api
Oh, I think this website needs an API. Extract data-like things from a website on the fly.
https://github.com/jacoblincool/there-should-be-an-api
Last synced: about 1 month ago
JSON representation
Oh, I think this website needs an API. Extract data-like things from a website on the fly.
- Host: GitHub
- URL: https://github.com/jacoblincool/there-should-be-an-api
- Owner: JacobLinCool
- License: mit
- Created: 2022-03-24T17:15:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:53:10.000Z (over 2 years ago)
- Last Synced: 2025-01-24T23:41:18.768Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://tsbaa-jacoblincool.koyeb.app
- Size: 60.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# There-should-be-an-API
> Oh, I think this website needs an API.
Extract data-like things from a website on the fly.
## Demo
The demo API is hosted on a 256MB RAM server with limited resources, so don't expect it to be fast.
```md
https://tsbaa-jacoblincool.koyeb.app/?url=
```
You can check `X-Parse-Time` header in the response to see how long it took to parse the target page.
Also, there are some other options:
- `&hash`: replace selectors with their hashes, default is `true`. _I believe the selectors of the target page are not important in most cases._
- `&mode`: `simple` or `full`, default is `simple`.
- `&min`: threshold of the minimum acceptable size of group, default is `5`.
- `&max`: threshold of the maximum acceptable size of group, default is `Infinity`.
- `&content_min`: threshold of the minimum acceptable size of text content, default is `5`.
- `&content_max`: threshold of the maximum acceptable size of text content, default is `Infinity`.
## Examples
```md
https://tsbaa-jacoblincool.koyeb.app/?url=https://ani.gamer.com.tw/animeList.php
```
```md
https://tsbaa-jacoblincool.koyeb.app/?url=https://news.google.com/topstories
```
```md
https://tsbaa-jacoblincool.koyeb.app/?url=https://github.com/trending
```