JSON Response Format
Below is an explanation of the format and tags contained in our JSON response.
{
// output is wrapped in a single response.
"response": {
// Request status, OK or ERROR AND MESSAGE. Example: if your daily limit is reached, ERROR: Daily Limit Reached.
"status":"OK",
// Start of general details related to the search query.
"head":{
// Full search query string.
"query":"mojeek",
// Number of words in query which also relates to the number of word tags that follow.
"nword":1,
// Start of details on each word in the query.
["words":
// Start of details on first word in the query.
{
// Original version of word used in the search.
"full":"mojeek",
// Stemmed version of word used in the search.
"stem":"mojeek",
// Set to 1 if word was used, 0 if minus or stop word.
"plus":1,
// Exact amount of documents indexed for this word.
"hits":112207
} // End of word.
{
// Repeated for all words
...
}
], // End of details on each word in the query.
// Time in seconds search took to complete.
"timer":0.61,
// First result equals start + 1, ie. 1st result equals 0, 11th result equals 10.
"start":1,
// Number of results returned.
"return":10,
// 1 if results count is exact or 0 if about.
"exact":true,
// Total result count.
"results":112094,
// Ranking method used.
"rankm":169,
// True if duplicate listings have been removed.
"dups":0,
// The number of documents that will not be returned in the results due to site clustering, restricting results by domain when performing a site search, or when filtering by categories (OrgSearch users only).
"more|excluded":47315
}, // End of head.
// Start of cats_ref tag if popular categories to refine this search by were found.
"cats_ref":{
// category name:count
"category1":100,
... // Repeated for all cats_refs.
}, // End of cats_ref.
// Start of cats_other tag if other categories related to this search by were found.
"cats_other":{
// category name:count
"category1":100,
... // Repeated for all cats_others.
}, // End of cats_other.
// Start of facet_dates tag if faceted search performed (OrgSearch users only).
"facet_dates":
// date(UTC):count
"2020-07-01T00:00:00Z":100,
... // Repeated for all facet_dates.
}, // End of facet_dates.
"results":[ // Start of results.
{ // Start of individual result.
// Document URL.
"url":"https://www.mojeek.com/",
// Document title.
"title":"Mojeek",
// Document description.
"desc":"Search Settings Site Search Boxes Add Mojeek to your browser Go to Mojeek UK Independent and unbiased search results with no user tracking. Learn More .",
// Document size.
"size":"1kb",
// Date last modified timestamp.
"timestamp":1184044740,
// Date last modified formatted.
"date":"Tue Jul 10 05:19:00 2007",
// Date published timestamp.
"pdate":1184044740,
// Date crawled timestamp.
"cdatetimestamp":1184044740,
// Date crawled formatted.
"cdate":"Tue Jul 10 05:19:00 2007",
// If set to 1 more results are available from this domain but have been excluded due to domain clustering.
"mres":1,
// Pipe-separated list of categories that the result is tagged with. Note: only appears for OrgSearch users.
"cats":"cat1|cat2|cat3",
"image" :{ // Start of image tag.
"url":"https://example.com",
// Width in pixels.
"width":100,
// Height in pixels.
"height":100
} // End of image.
},
{
... // Repeated for all results.
}
] // End of results.
} // End of response.
}