How do I get a group’s agent ID?

I’m trying to use the Catalog API to get all items on sale by a group, but I have one problem: I do not know the agent ID.

Since the new group design, I can’t seem to find any way to get an agent ID.

Please help, thanks in advance.

1 Like

To get the Agent ID, go to the groups catalog. The url should look something like https://www.roblox.com/catalog/?Category=1&CreatorID=AGENTID&SortType=3&IncludeNotForSale=false&Direction=2. Where “AGENTID” is, there’s a number. You can use that number as your Agent Id, as explained in this post.

You can no longer go to a groups personal catalog since the group page redesign. I addressed this in the original post.

1 Like

What is an agent ID?

With some help from searching the keyword “agent ID”: [link found above]

With some digging, you have to check this article out:
https://developer.roblox.com/articles/Catalog-API

I’m still a little lost on where the ID is. Maybe the JSON can help you find it if you read it? I might request some documentation on how to acquire the group agent ID, because the article is too unclear where to find it.

Dang it, too slow to post this.

There seems to be no way to squire the agent ID via the JSON.

Let’s see if we have some veterans popping up or some expert. Perhaps they can help?

Otherwise, I’ll attempt a feature request later on.

This may be better suited as a documentation request since I’m certain its not impossible to get a group agent ID.

1 Like

I know only one way to get a group’s agent id:

  1. Grab the id of something created by the group (i.e. 858056283)
  2. Use the Product Info API along with that id
  3. Look for the Creator field. Its Id value (not CreatorTargetId) is the group agent id.
7 Likes

Thank you. I have submitted a feature request to see if an API could be added for this as not all use cases are covered by this.

I’ll post the same message I posted in the feature request.

You shouldn’t need to know the agent ID to be able to fetch catalog items for a group. You can do this by adding “CreatorType=Group” to the query string. Then you can pass in the group ID as the CreatorID parameter.

An example:
https://search.roblox.com/catalog/items?CreatorID=851558&CreatorType=Group
This will fetch catalog items for the group https://www.roblox.com/groups/851558/Kestrel

3 Likes

Can we get this better documented?

1 Like