ReadonlyanalyticsReadonlyarticlesErgonomic article search/iterate/get façade — see ArticlesFluent.
ReadonlyauthorsErgonomic author uri resolution — see helpers/uri.authorUri.
ReadonlycategoriesErgonomic category uri resolution — see helpers/uri.categoryUri.
ReadonlyconceptErgonomic concept class uri resolution — see helpers/uri.conceptClassUri.
ReadonlyconceptsErgonomic concept uri resolution — see helpers/uri.conceptUri.
ReadonlycountsErgonomic concept/category mention-count façade — see CountsFluent.
ReadonlyeventErgonomic callable form of GetEventForText.compute().
ReadonlyeventsErgonomic event search/iterate/get façade — see EventsFluent.
ReadonlyeventErgonomic event type uri resolution — see helpers/uri.eventTypeUri.
ReadonlyinfoErgonomic source/concept/category info façade — see InfoFluent.
ReadonlylocationsErgonomic location uri resolution — see helpers/uri.locationUri.
ReadonlymentionsErgonomic mentions search/iterate façade — see MentionsFluent.
ReadonlyrecentErgonomic recent activity façade — see RecentFluent.
ReadonlysharesErgonomic top-shared articles/events façade — see SharesFluent.
ReadonlysourcesErgonomic news source/source group uri resolution — see helpers/uri.sourceUri.
ReadonlystoriesErgonomic story lookup façade — see StoriesFluent.
ReadonlytopicErgonomic topic page listing/loading/building façade — see TopicPagesFluent.
ReadonlytrendsErgonomic trending concepts/categories façade — see TrendsFluent.
ReadonlyusageToken and request accounting plus the optional maxTokens budget guard.
Check the latest Node.js SDK version and log if this client is outdated.
Prefers /static/nodejsSDKVersion.txt on the API host; if that file is missing
(or the request fails), falls back to the npm registry latest document.
Main method for executing the search queries.
instance of Query class
Optionaloptions: RequestOptions
signal / timeoutMs for this call only
If you have article urls and you want to query them in ER you first have to obtain their uris in the ER.
a single article url or a list of article urls
return author uri that is the best match for the given author name (and potentially source url) if there are multiple matches for the given author name, they are sorted based on the number of articles they have written (from most to least frequent)
Return a category uri that is the best match for the given label
partial or full name of the category for which to return category uri
Return a uri of the concept class that is the best match for the given label
partial or full name of the concept class for which to return class uri
language in which the class label is specified
Return detailed information about a particular concept
uri of the concept
OptionalreturnInfo: ReturnInfo
what details about the concept should be included in the returned information
return a concept uri that is the best match for the given concept label if there are multiple matches for the given conceptLabel, they are sorted based on their frequency of occurrence in news (most to least frequent)
partial or full name of the concept for which to return the concept uri
Object which contains a host of optional parameters
get the total number of requests that the user can make in a day. Information is only accessible after you make some query.
Return an event type uri that is the best match for the given label
partial or full name of the event type for which to return the uri
Get a value of the header headerName that was set in the headers in the last response object
OptionaldfltVal: stringReturn the headers returned in the response object of the last executed request
return true or false depending on whether the last request used the archive or not
Return a location uri that is the best match for the given location label
partial or full location name for which to return the location uri
Object which contains a host of optional parameters
Minimum delay between requests in seconds (constructor units).
get the number of requests that are still available for the user today. Information is only accessible after you make some query.
Tokens still available on the account (availableTokens - usedTokens from the usage endpoint).
Makes one request; it is exempt from the maxTokens guard.
Optionaloptions: RequestOptionsReturn a list of SASB uris. Note: SASB uris can only be used when querying mentions (QueryMentions, QueryMentionsIter)
Return a list of SDG uris. Note: SDGs can only be used when querying mentions (QueryMentions, QueryMentionsIter)
Return info about the source group
Return the list of source groups
Return the URI of the source group that best matches the name
partial or full name of the source group
Return the GET URL for the query. Parameters are URL-encoded, arrays become repeated keys, objects are JSON-encoded, and apiKey is always left out so the URL is safe to log or share.
Return the number of used and total available tokens. Can be used at any time (also before making queries)
Optionaloptions: RequestOptionsMake a request for json data
url on er (e.g. "/api/v1/article")
Optionalparameters: Record<string, unknown>
Optional parameters to be included in the request
Optionaloptions: RequestOptionsOptionalparameters: Record<string, unknown>Optionalheaders: Record<string, unknown>Optionalcookies: Record<string, unknown>Optionaloptions: RequestOptionsprint some statistics about the last executed request
Should all requests be logged to a file or not?
Return a list of news sources that match the prefix
Optionalargs: SuggestPagedArgumentsReturn a list of news sources that match the prefix
Optionalpage: numberOptionalcount: numberReturn a list of dmoz categories that contain the prefix
input text that should be contained in the category name
Object which contains a host of optional parameters
Return a list of concept classes that match the given prefix
input text that should be contained in the category name
Object which contains a host of optional parameters
Return a list of concepts that contain the given prefix. Returned matching concepts are sorted based on their frequency of occurrence in news (from most to least frequent)
input text that should be contained in the concept
Object which contains a host of optional parameters
Return a list of event types that match the prefix
Optionalargs: SuggestPagedArgumentsReturn a list of event types that match the prefix
Optionalpage: numberOptionalcount: numberReturn a list of industries that match the prefix. Note: Industries can only be used when querying mentions (QueryMentions, QueryMentionsIter)
Optionalargs: SuggestPagedArgumentsReturn a list of industries that match the prefix. Note: Industries can only be used when querying mentions (QueryMentions, QueryMentionsIter)
Optionalpage: numberOptionalcount: numberReturn a list of geo locations (cities or countries) that contain the prefix
input text that should be contained in the location name
Object which contains a host of optional parameters
Return a list of geo locations (cities or places) that are close to the provided (lat, long) values
latitude part of the coordinate
longitude part of the coordinate
radius in kilometers around the coordinates inside which the locations should be returned
Object which contains a host of optional parameters
Return a list of news sources that match the prefix
input text that should be contained in the source name or uri
Object which contains a host of optional parameters
Return a list of news source groups that match the prefix
input text that should be contained in the source group name or uri
Object which contains a host of optional parameters
Return a list of news sources that are close to the provided (lat, long) values
latitude part of the coordinate
longitude part of the coordinate
radius in kilometers around the coordinates inside which the news sources should be located
Return a list of news sources that are close to the provided (lat, long) values
concept that represents a geographic location for which we would like to obtain a list of sources located at the place
Object which contains a host of optional parameters
Return a view of this client whose every call (classic, helpers, fluent namespaces and iterators)
also observes options.signal and options.timeoutMs. State (rate limit, usage, headers, queue)
is shared with this instance. A view's signal adds to, and its timeoutMs replaces, the inherited ones.
Staticget
Ergonomic text analytics façade — see
AnalyticsFluent.