Ask Terence McKenna API

A REST Based API Powered By ASKTMK

ASKTMK runs a daily task which scrapes all transcript related information hosted on

The TerenceMcKenna Wikispaces

Feel free to use the information however you want to in your own apps.
But please give credit by linking to asktmk.com :)


How to use?

Get requests are returned in JSON format only.

Sign up or login to asktmk.com and visit the settings page.
There you will find an api key listed on the bottom which you will need to make requests with.

Note: Make sure all requests contain the key parameter as the first parameter after the call.

Base url:

https://www.asktmk-api.com/_ah/api/asktmk/v1/

Key parameter:

?key=xxxxxx-xxxxxxxxxxxxxxxxxxxxxxx



Talks/Transcribed Call

Note: Transcripts by default will be returned in pure text if type is not specified.

Each talk has the following values:
id, title, location, date, transcript, youtube, link

Get all listed talks:

https://www.asktmk-api.com/_ah/api/asktmk/v1/talks

Get all transcribed talks:

https://www.asktmk-api.com/_ah/api/asktmk/v1/transcribed

Get talk by id:

https://www.asktmk-api.com/_ah/api/asktmk/v1/talk/23

Parameters:

Year: &year=1991

Has a youtube link: &youtube=yes/no

Transcript format:&type=text/html


Quotes Call

The quotes returned are quotes which have been saved (by highlighting transcript text) from users on asktmk.com. All quotes are by Terence.

Note: About 700 or so quotes do not have talkid, talk and year because they were added programmatically from other sources.

Each quote has the following values:
quote, talk, talkid, year, link

Get all quotes:

https://www.asktmk-api.com/_ah/api/asktmk/v1/quotes

Get todays quote (GMT):

https://www.asktmk-api.com/_ah/api/asktmk/v1/quotes/today

Parameters:

Year: &year=1991

talkid: &talkid=18


Examples:

Get all talks from 1991 where there is a youtube link and return transcripts (if they exist) in html format:

https://www.asktmk-api.com/_ah/api/asktmk/v1/talks?key=xxxxxxxxxxxxxxxxxxxxxxxxxxx&year=1991&youtube=yes&type=html

Get all transcribed talks from 1998 where there is not a youtube link and return transcripts in pure text format (type parameter can be omitted in this case):

https://www.asktmk-api.com/_ah/api/asktmk/v1/transcribed?key=xxxxxx-xxxxxxxxxxxxxxxxxxxxxxx&year=1998&youtube=no&type=text

Get all transcribed talks where there is a youtube link

https://www.asktmk-api.com/_ah/api/asktmk/v1/transcribed?key=xxxxxx-xxxxxxxxxxxxxxxxxxxxxxx&youtube=yes

Get all quotes from year 1993

https://www.asktmk-api.com/_ah/api/asktmk/v1/quotes?key=xxxxxx-xxxxxxxxxxxxxxxxxxxxxxx&year=1993

Get all quotes from a specific talk (using talkid)

https://www.asktmk-api.com/_ah/api/asktmk/v1/quotes?key=xxxxxx-xxxxxxxxxxxxxxxxxxxxxxx&talkid=23

Etc..





Buy me a coffee :)

BTC:
1LUb7Sck478MdNCYMqP1gAKP3YkDekG8Ue

ETH:
0x60A88ebB143E0FD73023cB925cAC40444EB9363F

If you have questions, problems or anything else, feel free to contact me through facebook.