From 54e75a127f41755981855b7ff6d90a32e200d308 Mon Sep 17 00:00:00 2001 From: Shay Padhye <02c8@cloudflare.com> Date: Wed, 9 Aug 2023 00:21:53 +0000 Subject: [PATCH] . --- subfiles/service/karma_api.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/subfiles/service/karma_api.md b/subfiles/service/karma_api.md index 0399d465b6..549f8e3817 100644 --- a/subfiles/service/karma_api.md +++ b/subfiles/service/karma_api.md @@ -2,23 +2,23 @@ - Operated by `Crimeflare #Karma` with `No log` policy. - There is a rate-limit and anti-attack system so please be nice. -- List data is almost identical to [this git data](http://crimeflare.eu.org). There are many wide-range APIs live on Karma. -In this page we explain 2 read-only APIs. +In this page we explain some of read-only APIs. -Replace the (base url) to: +Replace the `(base url)` to: | Type | URL | | -- | -- | | Clearnet | `https://karma.crimeflare.eu.org:1984/api/` | | Tor | `http://karma.im5wixghmfmt7gf7wb4xrgdm6byx2gj26zn47da6nwo7xvybgxnqryid.onion/api/` | ------ +---- > Cloudflare Domains Lookup +- List data is almost identical to [this git data](http://crimeflare.eu.org). - For looking up domain's existence as a [MITM domain](../../cloudflare_users/domains/README.md). - Also try: `Listed as Cloudflare` website - [Clearnet](https://karma.crimeflare.eu.org:1984/api/is/cloudflare/html/) @@ -32,10 +32,12 @@ Replace the (base url) to: | Output | JSON value as array.
**Single Question**
If 2nd value(j[1]) is true then the input is Cloudflare.
`[false,false]` (Error or not Cloudflare)
`[true,false]` (Not Cloudflare)
`[true,true]` (Cloudflare)

**Multiple Questions**
Array pair of `question:true\|false`.
`{'example.com':false,...}` (Not Cloudflare)
`{'example.com':true,...}` (Cloudflare) | | cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/cloudflare/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/cloudflare/`
`curl -X POST -F 'ff=www.emsisoft.com,joinmastodon.org,framagit.org' -k --http2 https://clearnet/api/is/cloudflare/` | +---- > Anti-Tor Lookup -For looking up website's existence in the [known Anti-tor list](../../anti-tor_users/domains/README.md). +- 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). | ? | ? | | -- | -- | @@ -44,3 +46,18 @@ For looking up website's existence in the [known Anti-tor list](../../anti-tor_u | Input | `f` is required.
`f` FQDN (e.g. `www.google.com`) | | Output | JSON value as array. If 2nd value(j[1]) is true then the input is AntiTor.
`[false,false]` (Error or not AntiTor)
`[true,false]` (Not AntiTor)
`[true,true]` (AntiTor) | | cURL Example | `curl -X POST -F 'f=www.example.com' -k --http2 https://clearnet/api/is/antitor/`
`curl -x socks5h://127.0.0.1:9050 -X POST -F 'f=www.example.com' http://onion/api/is/antitor/` | + +---- + +> Get Data + +- Get data in simple JSON format. +- For your automation use. + +| ? | ? | +| -- | -- | +| Location | `(base url)listdata/` | +| Request Method | `GET` | +| Input | `name` is required.
`name` string (e.g. `cf_fediverse`)
possible values:
`cf_fediverse` [Cloudflared Fediverse](../cloudflared/social/fediverse.md) | +| Output | JSON value as array. | +| cURL Example | `curl -k --http2 https://clearnet/api/listdata/?name=cf_fediverse` |