Get state, city, latitude, longitude, and estimated population for a given zip code.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/zip_code_data/zipdata/collect?zip_code=94109" --maxprice 2750
# Output:
# {
# "EstimatedPopulation": "38763",
# "Decommisioned": "false",
# "City": "SAN FRANCISCO",
# "Long": "-122.42",
# "Lat": "37.79",
# "ZipcodeType": "STANDARD",
# "Zipcode": "94109",
# "State": "CA"
# }
Aggregate responses from n ping21 servers through a single endpoint.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/ping21_aggregator/ping21/buypings" --data '{"n": 3, "website": "21.co"}' --maxprice 9000
# Output:
# {
# "pings": [
# {
# "ping": [
# "PING 21.co (104.20.83.116) 64(92) bytes of data.",
# "72 bytes from 104.20.83.116: icmp_seq=1 ttl=55 time=13.3 ms",
# "72 bytes from 104.20.83.116: icmp_seq=2 ttl=55 time=13.3 ms",
# "72 bytes from 104.20.83.116: icmp_seq=3 ttl=55 time=13.5 ms",
# "--- 21.co ping statistics ---",
# "3 packets transmitted, 3 received, 0% packet loss, time 2003ms",
# "rtt min\/avg\/max\/mdev = 13.306\/13.385\/13.532\/0.140 ms"
# ],
# "server": {
# "city": "",
# "country": "US",
# "hostname": "104-63-201-227.lightspeed.austtx.sbcglobal.net",
# "ip": "104.63.201.227",
# "loc": "38.0000,-97.0000",
# "org": "AS7018 AT&T Services, Inc.",
# "region": ""
# }
# }, ...
# ]
# }
Fetch a company's logo.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/company_logo_api/company/logo?domain_url=21.co" --maxprice 2000 | jq -r '.logo.data' | base64 --decode > logo.png
# Note: run `sudo apt-get install jq` if jq is not already installed.
Tags words in text with corresponding part of speech.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/part_of_speech_tagger/pos/analyze" --data '{"text": "The quick brown fox jumped over the lazy dogs."}' --maxprice 6000
# Output:
# {
# "tags":[
# "Determiner",
# "Adjective",
# "Adjective",
# "Noun, singular or mass",
# "Verb, past tense",
# "Preposition or subordinating conjunction",
# "Determiner",
# "Adjective",
# "Noun, plural",
# "."
# ]
# }
Order list of Twitter usernames by Klout score.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/twitter_influence_ranking/klouttwitter/score" --data '{"usernames": ["balajis", "bhorowitz", "pmarca"]}' --maxprice 5000
# Output:
# {
# "score": [
# [
# "pmarca",
# "86.79"
# ],
# [
# "bhorowitz",
# "80.92"
# ],
# [
# "balajis",
# "68.02"
# ]
# ]
# }
Endpoint URL /21dotco/app/twitter_influence_ranking/
Keywords twitter klout influencers
Last Crawled
Return the coordinates of an address.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/geocode/geocode/get?address=101 Market St, San Francisco, CA 94105" --maxprice 5000
# Output:
# {
# "latitude": 38.8976094,
# "longitude": -77.0367349
# }
Analyze text, URLs, or HTML for entities.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/textual_entity_detection/text_entities/text" --data '{"text": "And by minting a trillion dollar coin, then depositing it at the Fed, the Treasury could acquire enough cash to sidestep the debt ceiling while doing no economic harm at all."}' --maxprice 5000
# Output:
# {
# "entities":[
# {
# "disambiguated":{
# "name":"Federal Reserve System",
# "yago":"http://yago-knowledge.org/resource/Federal_Reserve_System",
# "website":"http://www.federalreserve.gov/",
# "opencyc":"http://sw.opencyc.org/concept/Mx4rvct-4JwpEbGdrcN5Y29ycA",
# "freebase":"http://rdf.freebase.com/ns/m.02xmb",
# "dbpedia":"http://dbpedia.org/resource/Federal_Reserve_System"
# },
# "count":"1",
# "text":"Fed",
# "type":"Organization",
# "relevance":"0.33"
# }, ...
# ]
# }
$ 21 buy "21dotco/textual_entity_detection/text_entities/url" --data '{"url": "medium.com/@21/a-bitcoin-miner-in-every-device-and-in-every-hand-e315b40f2821"}' --maxprice 5000
# Output:
# {
# "entities":[
# {
# "count":"16",
# "text":"bitcoin",
# "type":"Technology",
# "relevance":"0.801373"
# },
# {
# "count":"8",
# "text":"Balaji S. Srinivasan",
# "type":"Person",
# "relevance":"0.540656"
# },
# {
# "count":"4",
# "text":"BitShare",
# "type":"Company",
# "relevance":"0.39282"
# }, ...
# ]
# }
$ 21 buy "21dotco/textual_entity_detection/text_entities/html" --data '{"html": "<html><body>The White House</body></html>"}' --maxprice 5000
# {
# "entities":[
# {
# "relevance":"0.33",
# "count":"1",
# "text":"White House",
# "type":"Facility"
# }
# ]
# }
Transfer the style of one image to another image using deep learning.
At the 21 command line, execute the code below.
$ 21 buy -p onchain "21dotco/neural_art/neuralart/buy" --data '{"style": "http://i.imgur.com/3is4qSi.jpg", "content": "http://i.imgur.com/8FwCskQ.jpg"}' --maxprice 275000
See https://21.co/learn/neuralart/ for more information, or learn how to monetize your own algorithms at https://21.co/learn/deep-learning-aws/.
Analyze text, URLs, or HTML for sentiment.
At the 21 command line, execute the code below.
$ 21 buy "21dotco/textual_sentiment_analysis/text_sentiment/text" --data '{"text": "On balance, overall employment has continued to grow at a solid pace so far this year, in part because domestic household spending has been sufficiently strong to offset the drag coming from abroad. Looking forward however, we have to take into account the potential fallout from recent global economic and financial developments, which have been marked by bouts of turbulence since the turn of the year."}' --maxprice 5000
# Output:
# {
# "docSentiment":{
# "type":"positive",
# "mixed":"1",
# "score":"0.0451983"
# }
# }
$ 21 buy "21dotco/textual_sentiment_analysis/text_sentiment/url" --data '{"url": "medium.com/@21/a-bitcoin-miner-in-every-device-and-in-every-hand-e315b40f2821"}' --maxprice 5000
# Output:
# {
# "docSentiment":{
# "type":"positive",
# "mixed":"1",
# "score":"0.429642"
# }
# }
$ 21 buy "21dotco/textual_sentiment_analysis/text_sentiment/html" --data '{"html": "<html><body>I bought Bitcoin!</body></html>"}' --maxprice 5000
# Output:
# {
# "docSentiment":{
# "score":"0.231787",
# "type":"positive"
# }
# }
Endpoint URL /21dotco/app/textual_sentiment_analysis/
Keywords nlp text analysis sentiment
Last Crawled
Receive a computer generated audio recording of a text.
At the 21 command line, execute the code below.
$ 21 buy https://mkt.21.co/21dotco/text_to_speech/txt2speech21/en --data '{"text": "I bought this with Bitcoin."}' --maxprice 5000 | jq -r '.data' | base64 --decode > output.wav
# Note: run `sudo apt-get install jq` if jq is not already installed.