URL query to search developer hub

This is a request for API documentation, but specifically for the developer hub itself.

My browser allows me to configure search engines to search different search engines by typing a prefix character. I have configured one to search the developer hub, which worked fine until today.

The URL I am using is:

https://wiki.roblox.com?title=special%3Asearch&search=%s

where %s is the search query.

Today this URL takes me to the developer hub landing page and does not give me the page I am looking for.

What URL should I use instead of the one I am currently using to go directly to the page I am looking for?

1 Like
https://developer.roblox.com/search#stq=%s
2 Likes

Is there a flag that can be added so it takes me to the most relevant page instead of the list of matches, if there is an exact match?

Not that I know of. On the other hand, I have a third-party website that can do it:

https://robloxapi.github.io/ref/?q=%s&devhub=1

Normally, the site will list results matching the query. From there, each result has a link to the corresponding DevHub page. With the devhub=1 parameter, the site will automatically redirect to the DevHub page of the first result. For example:

https://robloxapi.github.io/ref/?q=ffc&devhub=1

The query “ffc” matches “FindFirstChild” first, so it redirects to here:

https://developer.roblox.com/api-reference/function/Instance/FindFirstChild
3 Likes

I’ve unmarked the thread as solved because although your search is excellent for objects, it does not work with roblox types (CFrame, Vector3, UDim2).

I’ve improved searching a bit. In general, data type elements are prioritized over other elements. Specifically, the order is Type -> Class -> Enum -> Member -> EnumItem.

In case ambiguities still arise, the dot separator is now properly detected. For example, there are several “CFrame” properties; “cam.cframe” can be used to select Camera.CFrame first.

Finally, when all else fails, a “type:” prefix can be included to filter by a specific element type. For example, “button” will select the Button class, while “enum:button” will select the Button enum.

The following types are available:

  • class
  • enum
  • enumitem
  • type
  • property
  • function
  • event
  • callback
  • member (selects any class member)

Also note that results are filtered by your settings. For example, if you’re hiding deprecated elements, then they cannot be searched.

3 Likes

This is great, thank you for your dedication.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.