Here's some APIs we expose.
Many support an output format parameter d with values of :[colon], |[pipe], \t[tab] to delimit the output fields, with header row
Many support an output format parameter f with values of csv, json, xml
Some support parameter q, for query, with values of the field name:search value
Some support parameter s, for sort, with values of the field names
Code Highlight API
This API simply parses the input code and produces syntax highlighted outputs.
curl http://edoceo.io/code/highlight?s=http://my.domain.tld/some/code.c curl -F s=@/home/me/file.pl http://edoceo.io/code/highlight
Minify CSS or JS via API
This API simply minifies the input CSS or JavaScript. It's currently in use at gCDN.
The $src parameter can be a string of text, an uploaded file or pointer to a page on the web.
The $t parameter specifies the input type, which will be auto-detected if missing.
curl http://edoceo.io/code/minify?m=text/css curl -F src=@/home/me/file.css http://edoceo.io/code/minifiy?m=text/css curl -F src=http://server.tld/css/file.css http://edoceo.io/code/minifiy
Host Information API
Shows information about the host or IP given.
- @param f format: json, xml, text
- @param q the hostname or IP address to query, if omitted uses requestors IP
curl -v http://edoceo.io/host
curl -v http://edoceo.io/host?q=8.8.8.8
Domain Suffix
This API call returns the properly split apart name from the TLD. It understands all of the top level domains like: .com, .net as well as things like .co.uk and .cargo.areo and b.br. We use the list maintained by Mozilla at Public Suffix.
curl http://edoceo.io/domain?q=foo.8.bg curl http://edoceo.io/domain?q=edoceo.io
ISO Country List API
List of countries including two and three digit ISO codes, supported outputs: CSV, JSON, XML, delimited (:|\t)
curl -v http://edoceo.io/iso/3166/1 curl -v http://edoceo.io/iso/3166/1?f=csv curl -v http://edoceo.io/iso/3166/1?f=json curl -v http://edoceo.io/iso/3166/1?f=xml
PDF Conversion API
This PDF Converstion API accepts documents in almost any format and then outputs to a PDF document. The output formats available are: image/jpeg or image/png (which will have alpha channel). Use of this API requires registration, contact Edoceo for access. A lower cost alternative to expensive, proprietary solutions.
- @param s - URI of the source document (query string), bits to convert (HTTP POST) or uploaded document (HTTP File Upload)
- @param f - output format: pdf|jpeg|png
curl -v http://edoceo.io/pdf?s=http://host.tld/path/to/file.pdf&f=jpeg curl -v -F s=@/home/me/file.pdf http://edoceo.io/pdf?f=png curl -v -F s=@c:\users\me\file.pdf http://edoceo.io/pdf?f=png
Supported document input formats include: HTML, Word, Excel, PDF, Powerpoint as well as image inputs of TIFF, JPEG, PNG or GIF
- Google Conversion API - they have one too (Feb 2012); they have OCR too
Web Page Screenshot
This API call visits the specified web-page and produces a PNG based screen shot.
curl http://edoceo.io/png?u=http://edoceo.com/ curl http://edoceo.io/png?u=http://www.google.com/ curl http://edoceo.io/png?u=http://www.google.cn/
Text Tools
These tools provide a number of utilities for operating on Text related data. You can pass in either a long string of text or a pointer to a web-page.
curl -v http://edoceo.io/text/keywords?q=[long text] curl -v http://edoceo.io/text/keywords?q=http....
Mail APIs
SMTP Test API
The SMTP Test API provides a quick check of an SMTP system.
IMAP Test API
The IMAP Test API provides a quick check of an IMAP system.
Sales Tax API
This API looks up the Sales Tax for a given United States address. This system used to be available at http://unifiedtax.org/ but, that site has been disabled.
curl -v http://edoceo.io/tax?q=5135 Ballard Ave, Seattle, WA
WHOIS Lookup API
Peforms a Standard WHOIS lookup, see also Edoceo Utilities
- @param q the domain name to query
curl -v http://edoceo.io/whois
curl -v http://edoceo.io/whois?q=edoceo.com
