MyMemory: API technical specifications
Quick Start
These API allowes you to search and insert translations into MyMemory. This is a SOAP web service. Download example code for a simple get/match call here: Word Macro (VBA), .NET C#
Note: We also have an API for on-demand human translation services.
Methods Exposed
WSDL: http://mymemory.translated.net/otms/?wsdl
-
otmsGet (Key As String, q As Query) As getResponse
Gets translations for your string from MyMemory -
otmsInsert (Key As String, i As Insert) As insertResponse
Inserts segment and translation into MyMemory
Demo Key: mmDemo123
Supported Standards
- SOAP query: example SOAP query XML
- SOAP insert: example SOAP insert XML
- POST URL: http://mymemory.translated.net/otms/
- Development Key: calulate a unique key to query your private memories key-generator
Complex Type Reference
-
Query: represents search criteria
- id (String): optional. If specified valid developer's key is necessary
- source (String): search segment, eg/ 'Control panel'
- source_lang (String): search segment language in RFC 3066 format, eg/ 'en-US'
- target_lang (String): target language in RFC 3066 format, eg/ 'es-ES'
- subject (String): optional, subject constraint, eg/ 'All', 'Computer_Science'
- mt (int): optional, Machine Translation, 0=disabled'
- maxres (int): optional, limits the number of returned results (max 20)
-
getResponse: represents search result
- success (Boolean): true if operation successful
- error_message (String): describes error if operation unsuccessful
- matches (Array of Match): array of translation memory matches
-
Match: represents translation memory match
- segment (String): segment matching search
- source_lang (String): matching segment language in RFC 3066 format, eg/ 'en-US'
- translation (String): translation of matching segment
- target_lang (String): translation language in RFC 3066 format, eg/ 'es-ES'
- quality (Integer): degree of match, 0 (least similar or not voted) - 100 (most similar)
- subject (String): subject matter of segment context
-
Insert: represents insert criteria
- id (String): optional. If specified valid developer's key is necessary
- segment (String): original segment
- translation (String): translation
- source_lang (String): original segment language in RFC 3066 format, eg/ 'en-US'
- target_lang (String): translation language in RFC 3066 format, eg/ 'es-ES'
- subject (String): subject matter of segment context
- reserved (String): specifies if the segment if public=0 or private=1
-
insertResponse: represents segment insert result
- success (Boolean): true if operation successful
- error_message (String): describes error if operation unsuccessful