Search endpoint¶
Endpoint for searching SKOS concepts
- GET /search¶
Search for SKOS concepts by labels
Example request:
GET /search?q=http HTTP/1.1 Host: 127.0.0.1 Accept: application/json
Example response:
HTTP/1.1 200 OK Content-Type: application/json {"concepts":[ {"uri":"http://id.worldcat.org/fast/950001", "prefLabel":"HTTP (Computer network protocol)", "altLabels":["HyperText Transfer Protocol (Computer network protocol)"], "related":[ {"label":"Computer network protocols", "uri":"http://id.worldcat.org/fast/872279"} ]}, {"uri":"http://id.worldcat.org/fast/878049", "prefLabel":"Cookies (Computer science)", "altLabels":["Persistent cookies (Computer science)","HTTP cookies (Computer science)","Magic cookies (Computer science)"], "related":[ {"label":"Data structures (Computer science)", "uri":"http://id.worldcat.org/fast/887978"}]} ] }
Query Parameters: - q – search query
- count – number of results
- page – page (pagination)
Status Codes: - 200 OK – request done
- 400 Bad Request – Bad request (if you don’t pass the parameter)
- 404 Not Found – Not found
- 500 Internal Server Error – an exception occured