
api
Everything you can do on ThisIsLike, from your own code: search, save to your InfraNodus graphs, publish, add results.
overview
Base URL: https://www.thisislike.app/api/v1 · version 1.0.0 · machine-readable index
Requests and responses are JSON (Content-Type: application/json). Calls from any website are allowed (CORS). Dates are ISO 8601.
A search finds things that are like a query, each with why it's similar. A saved search is a search stored in one of your InfraNodus graphs: its results are statements like [[Corfu]] is like [[Kefalonia]] because …, read live from the graph. Saved searches can be private, public, published to the community list, favorites, and (by moderators) guides.
errors and limits
Errors always look like this, with the HTTP status:
{ "error": { "code": "forbidden", "message": "You can only change your own searches" } }
400bad_requestmissing or invalid parameters401unauthorizedno key where one is needed, or a key InfraNodus doesn't accept403forbiddennot yours (or not a moderator)404not_founddoesn't exist, or private and not yours409conflicte.g. nothing in the graph to point a search at, or an addition that already exists429rate_limitedtoo many requests; see the Retry-After header502upstream_errorInfraNodus or the search service failed
Limits: new searches (not cached) 30 per hour per user; added results ("add yours") 10 per hour per user, or per IP address without a key. Everything else isn't limited, but please be reasonable: writes go to InfraNodus.
quick start
Search, then save the results to your graph and publish them:
export INFRANODUS_API_KEY=... # from infranodus.com/api-access
# 1. find things like Corfu (cached results need no key)
curl -s -X POST https://www.thisislike.app/api/v1/search \
-H "Content-Type: application/json" -d '{"query":"Corfu"}' > corfu.json
# 2. save them to your "travel" graph, public and in the community list
jq '{query: .query, graphName: "travel", results: .results, isPublic: true, isPublished: true}' corfu.json |
curl -s -X POST https://www.thisislike.app/api/v1/searches \
-H "Authorization: Bearer $INFRANODUS_API_KEY" -H "Content-Type: application/json" -d @-