To keep your BrandMentions API integration stable and within limits, follow these best practices:
Check your remaining credits
CallGetRemainingCreditsregularly and log the results so you always know how many credits you have left.Cache repeated responses
If you often make the same request, store the response in your own cache and reuse it instead of calling the API again.
βUse callbacks instead of polling
For long running jobs (for examplePostSearch), use thecallbackparameter so the API notifies you when processing is done, instead of repeatedly callingGetMentions.
βUpgrade your plan when you outgrow it
If you routinely hit limits even with good practices in place, talk to the BrandMentions team about moving to a higher plan.
By applying these patterns, you reduce wasted calls, stay within your quotas, and avoid unexpected service interruptions.
