Unless your making the query using theme operators, use the API.
For each script
you create, for example, the user liking a post on the current blog, you would register it as an app, and it would have its on unique key. You would then distribute the script, with this key included.
I understand the confusion. As your scripts
are not technically apps, but from experience, it seems to be the way to go.
Hope that helps!