Skip to content

Minified API Specification

taylorbr edited this page Aug 30, 2013 · 8 revisions

This is the page for the minified version of the API. It's kept separate from the main page.

1) search()

Request

    "version" : 1
    "query": "honger",
    "from" : "nld",
    "to" : "eng",
    "page" : [0,15],
    "options" : 0x1 | 0x2 | 0x4

Request minified

    "v" : 1
    "q": "honger",
    "f" : "nld",
    "t" : "eng",
    "p" : [0,15],
    "o" : 0x1 | 0x2 | 0x4

Response

    "version" : 1,
    "total" : 214,
    "sentences" : [
        {
            "id" : 123,
            "text" : "Ik heb honger.",
            "lang" : "nld",
            "tags" : [45, 24, 234, 2434],
            "audio" : 0,
            "user_id" : 789,
            "username" : "snape",
            "comments" : [342, 352, 2213],
            "direct": [234, 345, 43],
            "indirect" : [678, 343, 5]
        },
        {
            "id" : 234,
            "text" : "I am hungry.",
            "lang" : "eng",
            "tags" : [45, 24, 234, 2434],    
            "audio" : 1,
            "user_id" : 123,
            "username" : "george"
        },
        ...
        {
            "id" : 678,
            "text" : "I want to eat.",
            "lang": "eng",
            "tags" : [45, 24, 234, 2434],
            "audio" : 1,
            "user_id" : 345,
            "username" : "ballface69"
        },
        ...
        ,
        {
            // next sentence
        }
    ]

Response minified

    "v" : 1,
    "t" : 214,
    "s" : [
        {
            "i" : 123,
            "t" : "Ik heb honger.",
            "l" : "nld",
            "tg" : [45, 24, 234, 2434],
            "a" : 0,
            "ui" : 789,
            "un" : "snape",
            "c" : [342, 352, 2213],
            "d": [234, 345, 43],
            "i" : [678, 343, 5]
        },
        {
            "i" : 234,
            "t" : "I am hungry.",
            "l" : "eng",
            "tg" : [45, 24, 234, 2434],    
            "a" : 1,
            "ui" : 123,
            "un" : "george"
        },
        ...
        {
            "i" : 678,
            "y" : "I want to eat.",
            "l": "eng",
            "tg" : [45, 24, 234, 2434],
            "a" : 1,
            "ui" : 345,
            "un" : "ballface69"
        },
        ...
        ,
        {
            // next sentence
        }
    ]

2) getSentenceDetails()

Request

Request minified

Response

Response minified

3) getComments()

Request

Request minified

Response

Response minified

4) getCommentDetails()

Request

Request minified

Response

Response minified

5) getUserDetails()

Request

Request minified

Response

Response minified

6) getUsers()

Request

Request minified

Response

Response minified

7) fetchWall()

Request

Request minified

Response

Response minified

8) fetchWallThread()

Request

Request minified

Response

Response minified

Clone this wiki locally