There are three additional parameters which can be used to filter results of the Analysis Request which are included in the example code, but not in the parameter list due to the format not currently being supported in the test call functionality on this page.
An array of languages can be provided to either include or exclude from the analysis. Please note that specifying to include all languages will exclude all posts will unassigned language; likewise excluding all languages will include only posts with unassigned language.
An array of locations can be provided to either include or exclude from the analysis. Please note that specifying to include all locations will exclude all posts will unassigned location; likewise excluding all locations will include only posts with unassigned location.
An array of genders can be provided to either include or exclude from the analysis. Please note that specifying to include both M (male) and F (female) will exclude all authors with an unassigned gender; likewise excluding both M and F will include only authors with an unassigned gender.
If a user successfully submits an Analysis API request which encounters an error during the analysis process itself, the analysis will be retried up to 5 times (for a total of 6 attempts including the initial attempt)
Each failed attempt will result in a longer wait time before the next retry is attempted to provide more time for the issue to be resolved before retrying
The wait time for each attempt is as follows:
- Initial failure will be retried after 1 minute
- 1st retry failure will be retried after 3 minutes
- 2nd retry failure will be retried after 5 minutes
- 3rd retry failure will be retried after 10 minutes
- 4th failure will be retried after 20 minutes
- 5th failure will result in the analysis request being skipped and the user will need to submit a new request
If a call to the results URL is made prior to the analysis being successfully completed, the user will be provided (within the API response) a retrieval time that coincides with the applicable wait period or notified of the skipped state if the 5th retry failure has occurred
Custom Content Analysis
You may perform an analysis on custom content sources uploaded via the Crimson Hexagon Upload API by using the following syntax:
"CUSTOM:pubTypeName" ]``` You may provide multiple custom data sources in a request. But all the sources should be under the same team.
Support Languages for Filtering
|Language||2 Character Code|
Depending on the complexity of the analysis and other factors, responses will either be asynchronous or synchronous. If results are ready upon the initial request, an HTTP status code 200 will be returned immediately to the POST call with a status of
DONE. If not, you will receive a status of
resultIdthat you can make a GET request against.