AlchemyText

FREE
By serg.osipchuk
Updated 10 months ago
Text Analysis
7.6/10
Popularity Score
35253ms
Latency
40%
Success Rate

AlchemyText API Documentation

Analyze text for sentiment and broader concepts.

View API Details
POSTdeleteSingleModel
POSTextractDatesFromHtml
POSTextractDatesFromText
POSTextractDatesFromUrl
POSTgetAuthorsFromHtml
POSTgetAuthorsFromUrl
POSTgetCombinedDataFromHtml
POSTgetCombinedDataFromText
POSTgetCombinedDataFromUrl
POSTgetEmotionFromHtml
POSTgetEmotionFromText
POSTgetEmotionFromUrl
POSTgetFeedLinksFromHtml
POSTgetFeedLinksFromUrl
POSTgetLanguageFromHtml
POSTgetLanguageFromText
POSTgetLanguageFromUrl
POSTgetMicroformatDataFromHtml
POSTgetMicroformatDataFromUrl
POSTgetModels
POSTgetPublicationDateFromHtml
POSTgetPublicationDateFromUrl
POSTgetRankedConceptsFromHtml
POSTgetRankedConceptsFromText
POSTgetRankedConceptsFromUrl
POSTgetRankedKeywordsFromHtml
POSTgetRankedKeywordsFromText
POSTgetRankedKeywordsFromUrl
POSTgetRankedNamedEntitiesFromHtml
POSTgetRankedNamedEntitiesFromText
POSTgetRankedNamedEntitiesFromUrl
POSTgetRankedTaxonomyFromHtml
POSTgetRankedTaxonomyFromText
POSTgetRankedTaxonomyFromUrl
POSTgetRawTextFromHtml
POSTgetRawTextFromUrl
POSTgetRelationsFromHtml
POSTgetRelationsFromText
POSTgetRelationsFromUrl
POSTgetTargetedEmotionFromHtml
POSTgetTargetedEmotionFromText
POSTgetTargetedEmotionFromUrl
POSTgetTargetedSentimentFromHtml
POSTgetTargetedSentimentFromText
POSTgetTargetedSentimentFromUrl
POSTgetTextFromHtml
POSTgetTextFromUrl
POSTgetTextSentimentFromHtml
POSTgetTextSentimentFromText
POSTgetTextSentimentFromUrl
POSTgetTitleFromHtml
POSTgetTitleFromUrl
POSTgetTypedRelationsFromHtml
POSTgetTypedRelationsFromText
POSTgetTypedRelationsFromUrl
POSTgetRelationsFromHtml

Extract Subject-Action-Object relations from an HTML document. Supported languages: English, Spanish

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDAPI key obtained from AlchemyAPI.
htmlFILE
REQUIREDFile with HTML content.
Optional Parameters
urlSTRING
OPTIONALInput here will appear as the url value in the response.
requireEntitiesSELECT
OPTIONALSet this to 1 to restrict results to relations that contain at least one named entity.
cquerySTRING
OPTIONALA visual constraints query to apply to the web page. Required when sourceText is set to cquery. For more details visit http://www.ibm.com/watson/developercloud/doc/alchemylanguage/visual_constraints.shtml. Parameter is only used if indicated html or url parameter.
sourceTextSELECT
OPTIONALHow to obtain the source text from the webpage. For more details see README. Parameter is only used if indicated html or url parameter.
keywordsSELECT
OPTIONALSet this to 1 to identify keywords in detected relations. This incurs an additional transaction charge.
sentimentExcludeEntitiesSELECT
OPTIONALSet this to 1 to exclude named entity text from sentiment analysis. For exapmle, do not analyze "New" in "New York".
disambiguateSELECT
OPTIONALSet this to 0 to hide entity disambiguation information in the response.
linkedDataSELECT
OPTIONALSet this to 0 to hide Linked Data content links in the response.
xpathSTRING
OPTIONALAn XPath query to apply to the web page. Required when sourceText is set to one of the XPath values. Parameter is only used if indicated html or url parameter.
maxRetrieveSTRING
OPTIONALMaximum number of entities to return (default = 50, maximum = 100).
showSourceTextSELECT
OPTIONALSet this to 1 to include the source text in the response.
entitiesSELECT
OPTIONALSet this to 1 to identify named entities in detected relations. This incurs an additional transaction charge.
knowledgeGraphSELECT
OPTIONALSet this to 1 to include knowledge graph information in the results. This incurs an additional transaction charge.
sentimentSELECT
OPTIONALSet this to 1 to analyze the sentiment towards each result. This incurs an additional transaction charge.
coreferenceSELECT
OPTIONALSet this to 0 to treat coreferences as separate entities (coreferences are resolved into detected entities by default).
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication