deCloudflare/subfiles/service/karma_api.md

64 lines
3.5 KiB
Markdown
Raw Normal View History

2022-08-04 08:21:46 -04:00
## Karma API
- Operated by `Crimeflare #Karma` with `No log` policy.
- There is a rate-limit and anti-attack system so please be nice.
There are many wide-range APIs live on Karma.
2023-08-08 20:21:53 -04:00
In this page we explain some of read-only APIs.
2022-08-04 08:21:46 -04:00
2023-08-08 20:21:53 -04:00
Replace the `(base url)` to:
2022-08-04 08:21:46 -04:00
| Type | URL |
| -- | -- |
2022-08-13 03:21:20 -04:00
| Clearnet | `https://karma.crimeflare.eu.org:1984/api/` |
2022-08-04 08:21:46 -04:00
| Tor | `http://karma.im5wixghmfmt7gf7wb4xrgdm6byx2gj26zn47da6nwo7xvybgxnqryid.onion/api/` |
2023-08-08 20:21:53 -04:00
----
2022-08-04 08:21:46 -04:00
2023-08-08 20:22:37 -04:00
### Cloudflare Domains Lookup
2022-08-04 08:21:46 -04:00
2023-08-08 20:21:53 -04:00
- List data is almost identical to [this git data](http://crimeflare.eu.org).
2022-09-07 22:05:44 -04:00
- For looking up domain's existence as a [MITM domain](../../cloudflare_users/domains/README.md).
2022-10-15 20:01:22 -04:00
- Also try: `Listed as Cloudflare` website
- [Clearnet](https://karma.crimeflare.eu.org:1984/api/is/cloudflare/html/)
- [Tor](http://karma.im5wixghmfmt7gf7wb4xrgdm6byx2gj26zn47da6nwo7xvybgxnqryid.onion/api/is/cloudflare/html/)
2022-08-04 08:21:46 -04:00
| ? | ? |
| -- | -- |
2022-08-10 01:17:31 -04:00
| Location | `(base url)is/cloudflare/` |
2022-08-04 08:21:46 -04:00
| Request Method | `POST` |
2022-09-07 22:06:54 -04:00
| Input | **Single Question**<br>`f` or `u` is required. `ignore_cfowned` is optional.<br>`f` FQDN (e.g. `www.google.com`)<br>`u` URL (e.g. `https://www.google.com/`)<br>`ignore_cfowned` Existence (If set, return FALSE when the domain is owned by CloudFlare Inc.)<br><br>**Multiple Questions** (max 200 domains)<br>`ff` is required. `ignore_cfowned` is optional.<br>`ff` List of FQDN separated by `,` (e.g. `www.google.com,blog.emsisoft.com,youtu.be`)<br>`ignore_cfowned` Existence (If set, return FALSE when the domain is owned by CloudFlare Inc.) |
2022-08-12 19:10:12 -04:00
| Output | JSON value as array.<br>**Single Question**<br>If 2nd value(j[1]) is true then the input is Cloudflare.<br>`[false,false]` (Error or not Cloudflare)<br>`[true,false]` (Not Cloudflare)<br>`[true,true]` (Cloudflare)<br><br>**Multiple Questions**<br>Array pair of `question:true\|false`.<br>`{'example.com':false,...}` (Not Cloudflare)<br>`{'example.com':true,...}` (Cloudflare) |
2022-08-12 19:03:30 -04:00
| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/cloudflare/`<br>`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/cloudflare/`<br>`curl -X POST -F 'ff=www.emsisoft.com,joinmastodon.org,framagit.org' -k --http2 https://clearnet/api/is/cloudflare/` |
2022-08-04 08:21:46 -04:00
2023-08-08 20:21:53 -04:00
----
2022-08-04 08:21:46 -04:00
2023-08-08 20:22:37 -04:00
### Anti-Tor Lookup
2022-08-04 08:21:46 -04:00
2023-08-08 20:21:53 -04:00
- List data is almost identical to [this git data](http://crimeflare.eu.org).
- For looking up website's existence in the [known Anti-Tor list](../../anti-tor_users/domains/README.md).
2022-08-04 08:21:46 -04:00
| ? | ? |
| -- | -- |
2022-08-10 01:17:31 -04:00
| Location | `(base url)is/antitor/` |
2022-08-04 08:21:46 -04:00
| Request Method | `POST` |
2022-09-07 22:06:09 -04:00
| Input | `f` is required.<br>`f` FQDN (e.g. `www.google.com`) |
2022-08-12 19:10:12 -04:00
| Output | JSON value as array. If 2nd value(j[1]) is true then the input is AntiTor.<br>`[false,false]` (Error or not AntiTor)<br>`[true,false]` (Not AntiTor)<br>`[true,true]` (AntiTor) |
2022-08-10 01:17:31 -04:00
| cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/antitor/`<br>`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/antitor/` |
2023-08-08 20:21:53 -04:00
----
2023-08-08 20:22:37 -04:00
### Get Data
2023-08-08 20:21:53 -04:00
2023-08-15 19:40:40 -04:00
- Get data in simple format.
2023-08-08 20:21:53 -04:00
- For your automation use.
| ? | ? |
| -- | -- |
| Location | `(base url)listdata/` |
| Request Method | `GET` |
2023-08-19 05:41:06 -04:00
| Input | `name` is required.<br>`name` string (e.g. `cf_fediverse`)<br>possible values:<br>`cf_fediverse` JSON [Cloudflared Fediverse](../cloudflared/social/fediverse.md) Domain<br>`cf_fediverse_CSV` Text<br>`cf_fediverse_FQDN` JSON Cloudflared Fediverse FQDN<br>`cf_fediverse_FQDN_CSV` Text<br> |
2023-08-15 19:40:40 -04:00
| Output | JSON or Text |
2023-08-08 20:21:53 -04:00
| cURL Example | `curl -k --http2 https://clearnet/api/listdata/?name=cf_fediverse` |