Request of
You can use REST api for specific integration.
They are some limitations:
- number of request
- some parameters
- bandwidth
- number of reponces
You can test interactively request & values on Sandbox.
If you need more of one of this criteria, please use "contact".
https://memodraw.com/ask?search=[...]
-or- https://memodraw.com/?search=[...]
Where "search" can be:
For what?
- available on every /? requests
- for client side setting (not sending to server)
https://memodraw.com/?search=[...]
- graphEngine: can be (string)
- graphCoor: use coordinate is any (bool)[false]
- graphFog: show fog from cluster colors (bool)[false]
- graphDirection: can be (string)
- linkLabel: can be (string)
- [none]
- context
- context(best)
- weight
- lod
- auto
- linkLines: (int)[1]/255=all
- linkDetail: (int)[1]/0=all
- linkThickness: can be (string)
- none
- [lod]
- lod(linear)
- weight
- weight(linear)
- linkGradient: (bool)[true]
- linkStraight: (bool)[true]
- nodeGrouped: group by same type (bool)[true]
- nodeContent: can be (string)
- noMedia
- [media]
- picture
- audio
- video
- nodeSize: can be (string)
- nodeLabelName: label name engine, can be (string)
- none
- top
- [center]
- bottom
- circle
- left
- nodeLabelMinimize: (bool)[false]
- nodeLabelDistance: (bool)[false]
- useTerminal: can use terminal node? (bool)[false]
- preset: global settings, can be (string)
- text
- minimal
- colorful
- thrumb
- [circle]
- image
- cluster
- no_cluster
- dark: dark mode, can be (string)
- completionEngine: can be (string)
- completionCluster: add cluster name on description (bool)[false]
- completionSize: size of list of completions (int)[20]
- completionDelay: delay on every completion change (int)[500]
- nodeAction: kind of action on node click, can be (string)
- showStatus: show the status at bottom ? (bool)[false]
- clusterSubset: use only cluster (bool)[false]
- showOptions: show the bottom options menu ? (bool)[true]
- showTitle: show top aread: title, memodraw icon & clear button) ? (bool)[true]
- tooltipFromTo tooltip from to, can be (string)
- skinShape: visual theme for shape, can be (string)
- [none]
- shadow
- shadow1
- shadow2
- shadow3
- skinText: visual theme for text rendering, can be (string)
- fast
- outline
- outline2
- [black]
- white
- filled
- filled.img
- skinTitle: visual theme for title, can be (string)
- skinBody: visual theme for body, can be (string)
- rect
- [round]
- round2
- round3
- skinBackground: visual theme for background, can be (string)
- none
- [grey]
- black
- radial
- degraded
- skinTooltip: visual theme for tooltip (string)
- [auto]
- native
- rich-dynamic-desktop
- rich-static-desktop
- rich-dynamic-mobile-center
- rich-dynamic-mobile-left
- rich-dynamic-mobile-right
- rich-static-mobile-center
- rich-static-mobile-left
- rich-static-mobile-right
- skinColored: visual theme coloring (bool)[true]
- skinNode: visual theme for node (string)
- skinMenu: visual theme for menu (string)
- deletes: history of delete with syntaxe like: 100.50.10-20 (string)
- fixVizAscii: graphviz fix for unicode/ascii (string)
- useWheel: use mouse wheel for zooming ? (not need if used as menu) (bool)[true]
- usePinch: use pinch gesture (touche screen) for zooming ? (not need if used as menu) (bool)[true]
- useMenuTheme: can show theme menu on long press ? (not need if used as menu) (bool)[true]
- useMenuEmpty: can show global menu ? (not need if used as menu) (bool)[true]
ex.:
https://memodraw.com/?search=tree&entry=en.wikt&source=cat&nodeGrouped=false
https://memodraw.com/ask?search=tree&[...]
-or- https://memodraw.com/?search=tree&[...]
- source: source name (string)
- sourceId: source id for wdat (string)
- clientId: client token (string)
- entry: databases (string)
- levelOut: levels of sucessors (int)[2]
- levelIn: levels of predecessors (int)[0]
- weightMax: max weight (float)[-1=all]
- nodeDegree: nb items by level (int)[5]/all
- useTerminal: have to use terminal node also?? (bool)[false]
- clusterSubset: only use cluster concept ? (bool)[false]
ex.:
https://memodraw.com/ask?search=tree&entry=en.wikt&source=cat&levelOut=1&nodeDegree=1
{
request: {
status: "ok",
ask: {
search: "tree",
levelIn: 1,
levelOut: 1,
weightMax: 1,
nodeDegree: 1,
useTerminal: 0,
clusterSubset: 0
},
solvedTime: "483µs",
overflow: false
},
clusters: {
1558: {
name: "Family",
coor: "5.2667,5.0203"
},
119907: {
name: "Jer-cat",
coor: "5.6948,5.5266"
}
},
nodes: [
{
text: "en.wikt:Feliformia",
cluster: 1558,
coor: "3.73784,4.86953"
},
{
text: "en.wikt:cat",
image: "https://www.memodraw.com/images/Cat03.jpg",
cluster: 119907,
coor: "5.00364,5.42534",
width: 200,
height: 200
},
{
text: "en.wikt:feline",
image: "https://www.memodraw.com/images/Cat03.jpg",
cluster: 1558,
coor: "4.94372,5.43566",
width: 200,
height: 200
}
],
edges: [
{
from: 0,
to: 1,
weight: 0.5,
context: "Translingual/Proper noun|Translingual/Proper noun/Hyponyms"
},
{
from: 1,
to: 2,
weight: 0.857345,
context: "English/Etymology 1/Noun|English/Etymology 1/Noun/Synonyms"
}
]
}
Get paths from source to target items
https://memodraw.com/ask?search=path&[...]
-or- https://memodraw.com/?search=path&[...]
- source: source name (string)
- sourceId: source id for wdat (string)
- target: target name (string)
- targetId: target id for wdat (string)
- clientId: client token (string)
- entry: databases (string)
- margin: (float)
- method: (string)
- distMax: (int)-1=all
- stepMax: (int)-1=all
- clusterSubset: only use cluster concept ? (bool)[false]
ex.:
https://memodraw.com/ask?search=path&entry=en.wikt&source=cat&target=red
{
request: {
status: "ok",
ask: {
search: "path",
clusterSubset: 0,
distMax: -1,
stepMax: -1
},
solvedTime: "183.2ms",
overflow: false
},
lods: [
{
lod: 1.19098,
links: 12
},
{
lod: 1.62159,
links: 11
},
[...]
],
clusters: {
1123: {
name: "Collective nouns by language",
coor: "6.0446,5.8094"
},
1302: {
name: " {{",
coor: "6.4702,4.9916"
},
[...]
},
nodes: [
{
text: "en.wikt:rose",
dist: 3.80157,
image: "https://www.memodraw.com/images/Red_rose.jpg",
cluster: 315519,
coor: "5.04296,5.12937",
width: 200,
height: 305
},
{
text: "en.wikt:red",
dist: 5.04456,
image: "https://www.memodraw.com/images/Color_icon_red.png",
cluster: 1302,
coor: "5.38198,5.13655",
width: 200,
height: 200
},
[...]
]
}
Get list of possible names (fuzzy search)
https://memodraw.com/ask?search=completion&[...]
- source: source name (string)
- sourceId: source id for wdat (string)
- entry: databases (string)
- clientId: client token (string)
- noLinks: accept node without sucessors (bool)
- noInvs: accept node without predecessors (bool)
- normalize: have to normalize source format? (bool)
ex.:
https://memodraw.com/ask?search=completion&entry=en.wikt&source=cat
{
request: {
search: "completion",
entry: "en.wikt",
source: "cat",
from: 0,
status: "ok"
},
nodes: [
{
text: "en.wikt:cat",
image: "https://www.memodraw.com/images/Cat03.jpg",
width: 200,
height: 200
},
{
text: "en.wikt:Category:{{"
},
{
text: "en.wikt:cattle"
},
{
text: "en.wikt:Category:etyl cleanup",
description: "Wikimedia category"
},
[...]
]
}
Get description of a item in a specific context (optional)
https://memodraw.com/ask?search=resume&[...]
- source: source name (string)
- sourceId: source id for wdat (string)
- entry: databases (string)
- clientId: client token (string)
- format: can be (string)
- context: optional context (string)
ex.:
https://memodraw.com/ask?search=resume&source=Crimson&format=html&context=History&entry=en.wiki
[OK]
<div class="mw-parser-output">
<h2>
<span class="mw-headline" id="History">History</span>
</h2>
<p>
<b>Crimson</b> (NR4) is produced using the dried bodies of a
<a href="/wiki/Scale_insect" title="Scale insect">scale insect</a>,
<a href="/wiki/Kermes_(insect)" title="Kermes (insect)">
<i>Kermes</i>
</a>
, which were gathered commercially in Mediterranean countries, [...]
</p>
<p>
<b><a href="/wiki/Carmine" title="Carmine">Carmine</a></b> is the name [...]
</p>
<p>
<b><a href="/wiki/Alizarin" title="Alizarin">Alizarin</a></b>
(PR83) is a pigment that was first synthesized in 1868 by the German
<a href="/wiki/Chemist" title="Chemist">chemists</a>
<a href="/wiki/Carl_Gr%C3%A4be" title="Carl Gräbe">Carl Gräbe</a> [...]
</p>
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1">
<span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span>
</li>
</ol>
</div>
</div>
https://memodraw.com/maps?
- entry: databases (string)
- coor: center of the map (string)
- zoom: zoom factor (float)
ex.:
https://memodraw.com/maps/?center=3,3&zoom=500&entry=fr.wikt
https://memodraw.com/ask?search=map&[...]
- entry: databases (string)
- center: center coor of the map (coor string)
- display: display size (coor string)
- zoom: zoom factor (float)
- format: output format (string)png
- dims: dimentions (string)0,1
- layers: conbination of (string)
- dot[(float)size]: point
- grid: grid & coordinates
- line: short lines
- json: detail of nodes & clusters
- label: names of dot
ex.:
https://memodraw.com/ask?search=map&entry=fr.wikt¢er=3,3&display=714,969&zoom=500&format=png&layers=dot1+grid
{
request: {
status: "ok",
ask: {
search: "map",
center: "3,3",
display: "714,969",
zoom: 500
},
overflow: false;
solvedTime: "296.4ms",
status: "ok"
},
results: {
URL: "https://www.memodraw.com/images/maps/map_e=fr.wikt_c=3x3_d=714x969_z=500_l=dot1+grid.png"
count: 212817
}
}
Get node data
https://memodraw.com/ask?search=node&[...]
- entry: databases (string)
- source: source name (string)
ex.:
https://memodraw.com/ask?search=node&entry=en.wiki&source=Red|Green
{
request: {
status: "ok",
ask: {
search: "node"
},
solvedTime: "11.23ms",
overflow: false
},
clusters: {
75825: {
name: "Pink",
coor: "5.5205,5.2219"
},
77101: {
name: "CNC",
coor: "5.5965,5.2684"
}
},
nodes: [
{
text: "en.wiki:Red",
description: "color",
image: "https://www.memodraw.com/images/Strawberries.jpg",
cluster: 77101,
coor: "6.42452,5.34178",
width: 200,
height: 133
},
{
text: "en.wiki:Green",
description: "color; additive primary color; visible between blue and yellow",
image: "https://www.memodraw.com/images/Champ_de_blé_Côte-d'Or_Bourgogne_avril_2014.jpg",
cluster: 75825,
coor: "6.38361,5.25834",
width: 200,
height: 113
}
]
}
Get edge
https://memodraw.com/ask?search=edge&[...]
- entry: databases (string)
- from: sources name (string)
- to: targets name (string)
- method: method of weighting (string)
(from & to need to have same number of items)
ex.:
https://memodraw.com/ask?search=edge&entry=en.wiki&from=Red|Vermilion&to=Green|Magenta
{
request: {
status: "ok",
ask: {
search: "edge"
},
solvedTime: "12.8ms",
overflow: false
},
clusters: {
75825: {
name: "Pink",
coor: "5.5205,5.2219"
},
77101: {
name: "CNC",
coor: "5.5965,5.2684"
}
},
nodes: [
{
text: "en.wiki:Red",
description: "color",
image: "https://www.memodraw.com/images/Strawberries.jpg",
cluster: 77101,
coor: "6.42452,5.34178",
width: 200,
height: 133
},
{
text: "en.wiki:Green",
description: "color; additive primary color; visible between blue and yellow",
image: "https://www.memodraw.com/images/Champ_de_blé_Côte-d'Or_Bourgogne_avril_2014.jpg",
cluster: 75825,
coor: "6.38361,5.25834",
width: 200,
height: 113
},
{
text: "en.wiki:Vermilion",
description: "color",
image: "https://www.memodraw.com/images/Lacquerware-roundbox-w-children.jpg",
cluster: 75825,
coor: "6.40749,5.27583",
width: 200,
height: 150
},
{
text: "en.wiki:Magenta",
description: "color visible between red and purple; subtractive (CMY) primary color",
image: "https://www.memodraw.com/images/MagentaIcon.png",
cluster: 75825,
coor: "6.27438,5.06259",
width: 200,
height: 200
}
],
edges: [
{
from: 0,
to: 1,
weight: 0.875969,
context: "Resume|External links"
},
{
from: 2,
to: 3,
weight: 0.309843,
context: "Resume|Variations/Red-orange|Variations/Orange-red|Variations/Medium vermilion|Variations/Chinese red|External links"
}
]
}
Get nodes close to this coordinate
https://memodraw.com/ask?search=coor&[...]
- entry: databases (string)
- coor: coordinate (coor string)
- radius: radius from center (float)
- method: method of weighting (string)
ex.:
https://memodraw.com/ask?search=coor&entry=en.wiki&coor=5.8,5&radius=0.01
{
request: {
status: "ok",
ask: {
search: "coor",
coor: "5.8,5",
radius: 0.01
},
solvedTime: "1.43ms",
overflow: false
},
clusters: {
76786: {
name: "1872 Brazilian novels",
coor: "5.7926,5",
dist: 0.00740019
},
23636: {
name: "2010s in Ogun State",
coor: "5.8078,5.0006",
dist: 0.00782285
},
37466: {
name: "User ta",
coor: "5.7952,4.9934",
dist: 0.00816099
},
103716: {
name: "Amphibians and reptiles/Did you know",
coor: "5.8048,4.9917",
dist: 0.00958792
}
}
}
Get clusters data
https://memodraw.com/ask?search=cluster&[...]
- entry: databases (string)
- id: clusters id (string)
ex.:
https://memodraw.com//ask?search=cluster&entry=en.wiki&id=1|10
{
request: {
status: "ok",
ask: {
search: "cluster"
},
solvedTime: "147µs",
overflow: false
},
clusters: {
1: {
name: " Disambiguation pages with short description",
coor: "5.6757,5.3376"
},
10: {
name: "' + Morebits.pageNameNorm + ', MediaWiki:Gadget-twinkleconfig.js",
coor: "5.5203,5.2491"
}
}
}
Get geoloc of user
ex.:
https://memodraw.com/geoloc
{
"country":"ar",
"langs": [
"es",
"en",
"it",
"de",
"fr",
"gn"
]
}