Wednesday, March 27, 2024

Hidden APIs

www.synonyms.com from Wordnet

curl 'https://www.synonyms.com/gw.php' --compressed -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.7,ro;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/x-www-form-urlencoded' -H 'X-Requested-With: XMLHttpRequest' -H 'Origin: https://www.synonyms.com' -H 'DNT: 1' -H 'Sec-GPC: 1' -H 'Connection: keep-alive' -H 'Referer: https://www.synonyms.com/synonym/download' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' --data-raw 'action=get_vis_syn&term=downtown'

Response: {"id":"_root_","name":"downtown","children":[{"id":159594131,"name":"","children":[{"id":295258892,"name":"business district","children":[],"data":{"$type":"circle","$dim":15,"is_synset_node":false,"$color":"#BCE099"}}],"data":{"definition":"the central area or commercial center of a town or city","synonymno":46309,"is_synset_node":true,"$color":"#BCE099"}}],"data":{"$type":"triangle","$color":"#CCC","$dim":15,"is_synset_node":true}}

vocabulary.com / random corpus examples

https://corpus.vocabulary.com/api/1.0/examples/random.json?maxResults=64&query=downtown&startOffset=0

https://termic.me - https://termic.me/?q=cancel out&sl=en_us&tl=ro_ro&o=unexact_match&rc_gl=25&rc_tm=25&cs=0&p=2020+

curl 'https://termic.me/' -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.7,ro;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' -H 'Origin: https://termic.me' -H 'DNT: 1' -H 'Sec-GPC: 1' -H 'Connection: keep-alive' -H 'Referer: https://termic.me/?q=cancel+out&sl=en_us&tl=ro_ro&o=unexact_match&rc_gl=25&rc_tm=25&cs=0&p=2020%2B' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"term":"cancel out","source_lang":"en_us","target_lang":"ro_ro","result_count_gl":"25","result_count_tm":"25","search_option":"unexact_match","case_sensitive":"0","modes":["glossary","tm"],"data_period":"2020+"}'

Leo.org

https://dict.leo.org/dictQuery/m-query/conf/ende/query.conf/strlist.json?q=Katze&shortQuery&noDescription&sideInfo=on&where=both&term=Katze

https://dict.leo.org/dictQuery/m-vocab/ende/query.xml?search=Katze

https://dict.leo.org/dictQuery/m-vocab/ende/query.xml?lp=ende&lang=en&side=both&order=basic&partial=show&sectLenMax=16&n=1&filtered=-1&trigger=1&search=Katze