I’m trying to allow Swifttype’s crawler (Swiftbot) to crawl our private discourse instance and they’re telling me I need to allow authentication access on discourse itself. Except I’m finding no documentation for such.
For context, I have discourse as the forum for my main site, I’m trying to add a site-wide search so users can search for discourse content from anywhere on my site. And this is what swifttype plugin does.
Is there any way to do this within docker on digitalocean?
To crawl the topics via Discourse API just provide your API key and username, and the requests made will be authenticated as regular user. For example:
To achieve the same via cURL request, pass api_key and api_username as param. For example:
curl -X GET -d api_key="API_KEY" -d api_username="ADMIN_USERNAME" http://discourse.example.com/latest.json
Both of the above examples will fetch all the latest topics (even for private Discourse instance).
@Joey_Tuan for more detailed API documentation, please see this topic: