5. n.a.g was
introduced
Sep, 2015
n.a.g was not
working
Oct, 2015
Received an Invitation
fr Cornelia + get free
access to the API as
non-profit org?
10 Jan, 2017
Understanding
the scope,
specification
and structure
Set up the
development
platform
Apr, 2017
New API is
working (an
image can be
generated)
24-27 May, 2017
Integrated and fixed
other parts of the
program
May-Aug, 2017
Ready for launch (error
checking + flatter +
supported other
languages)
16 Aug, 2017
Non-profit solution didn’t
work + explored Bing search
engine + talked to Google
Jun, 2017
Confirmed
using Google
limited ver +
server hosting
2 Aug, 2017
Official pre-
launch of n.a.g
24 Aug, 2017
Jan-Apr, 2017
The timeline for n.a.g ver. 5b development
8. An overview of n.a.g ver. 5b
Image data bank Web APIs PERL + HTML + CSS
Apache + Debian/Linux
Request: Keywords + image format (size, file type) + ids
Response in JSON: a data file for 10 image search results
Image
generation
Statistics
(Top10)
Process
Google
image
search API
Lib: ImageMagick
Ø Overlay images
w/ diff random
position + size
Ø 13 different
random effects txt
imagesØ Capturing
interface data
Ø Requesting and
parsing data
Ø Error checking
9. Panos Galanis’s version in 2003 (in netagent.pl)
https://www.google.com/search?safe=active&tbm=isch&source=hp&q=hello
Background information:
24. An overview of n.a.g ver. 5b
Image data bank Web APIs PERL + HTML + CSS
Apache + Debian/Linux
Request: Keywords + image format (size, file type) + ids
Response in JSON: a data file for 10 image search results
Image
generation
Statistics
(Top10)
Process
Google
image
search API
Lib: ImageMagick
Ø Overlay images
w/ diff random
position + size
Ø 13 different
random effects txt
imagesØ Capturing
interface data
Ø Requesting and
parsing data
Ø Error checking
26. First ex: Familiar with Google API
- Get your own pair of key and id
https://www.googleapis.com/customsearch/v1?key=YOURKEY&cx=YOURID&q=NET+ART+GENERATOR&sear
chType=image&fileType=jpg&imgSize=xxlarge
• Get your key
• Go to: https://developers.google.com/custom-search/json-api/v1/overview, click
the blue botton “Get A Key” -> Create project -> Enter your project name
-> Click 'Create and Enable API’ -> Copy your API key
• Get your cx here:
• Get the search engine ID (CX) here: https://cse.google.com/all -> add search
engine -> Put something in “Sites to search” and “Name of the search
engine” -> Click ‘create’; “Details” with ‘Search Engine ID’ > Copy the ID (that is the cx) .
• Settings in the control panel:
• select “search the entire web but emphasize included sites”
• Make sure the “Image Search” is ON > click update
• Google REST API specification/Parameter: https://developers.google.com/custom-search/json-
api/v1/reference/cse/list#request
• Other parameters: imgColorType, imgType, etc