{"openapi":"3.0.3","info":{"title":"Entitree API","description":"Entitree API documentation","version":"1.0.0"},"servers":[{"url":"/api"}],"paths":{"/getEnLabels":{"get":{"operationId":"query.wikidata.getEnLabels","summary":"Get Wikidata labels of every property","tags":["wikidata"],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"labels":{"type":"object","additionalProperties":{"type":"string"}}},"required":["labels"],"additionalProperties":false}}}},"default":{"$ref":"#/components/responses/error"}}}},"/getProperty":{"get":{"operationId":"query.wikidata.getProperty","summary":"Get Wikidata labels of every property","tags":["wikidata"],"parameters":[{"name":"property","in":"query","required":true,"schema":{"type":"string","pattern":"^P"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"regex":{"type":"string","nullable":true}},"required":["label","icon","regex"],"additionalProperties":false}}}},"default":{"$ref":"#/components/responses/error"}}}},"/getAirportByIATACode":{"get":{"operationId":"query.wikidata.getAirportByIATACode","summary":"Get Airport info based on IATA Code","tags":["wikidata"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","pattern":"[A-Z]{3}"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{}}}},"default":{"$ref":"#/components/responses/error"}}}},"/parseNIK":{"get":{"operationId":"query.document.parseNik","summary":"Get data from NIK","tags":["indonesia"],"parameters":[{"name":"nik","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":16}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"nik":{"type":"string","minLength":16,"maxLength":16},"district":{"type":"object","properties":{"item":{"type":"string"},"itemEnglish":{"type":"string","nullable":true},"itemLabel":{"type":"string"},"code":{"type":"string","minLength":8,"maxLength":8},"kabupatenLabel":{"type":"string"}},"required":["item","itemEnglish","itemLabel","code","kabupatenLabel"],"additionalProperties":false},"birthDate":{"type":"string","pattern":"\\d{4}-\\d{2}-\\d{2}"},"gender":{"type":"string","nullable":true},"suffix":{"type":"string"}},"required":["nik","district","birthDate","gender","suffix"],"additionalProperties":false,"nullable":true}}}},"default":{"$ref":"#/components/responses/error"}}}},"/getItunesShowEpisodes":{"get":{"operationId":"query.apple.getItunesShowEpisodes","summary":"Get all episodes of a podcast","tags":["apple"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d+$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"previewUrl":{"type":"string"},"artworkUrl160":{"type":"string"},"episodeFileExtension":{"type":"string"},"episodeContentType":{"type":"string"},"episodeUrl":{"type":"string"},"artworkUrl600":{"type":"string"},"collectionViewUrl":{"type":"string"},"trackViewUrl":{"type":"string"},"trackTimeMillis":{"type":"number"},"contentAdvisoryRating":{"type":"string"},"artworkUrl60":{"type":"string"},"releaseDate":{"type":"string"},"trackId":{"type":"number"},"trackName":{"type":"string"},"shortDescription":{"type":"string"},"closedCaptioning":{"type":"string"},"collectionId":{"type":"number"},"collectionName":{"type":"string"},"feedUrl":{"type":"string"},"artistIds":{"type":"array","items":{"type":"number"}},"country":{"type":"string"},"kind":{"type":"string"},"wrapperType":{"type":"string"},"description":{"type":"string"},"genres":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}},"episodeGuid":{"type":"string"}},"required":["previewUrl","artworkUrl160","episodeFileExtension","episodeContentType","episodeUrl","artworkUrl600","collectionViewUrl","trackViewUrl","trackTimeMillis","contentAdvisoryRating","artworkUrl60","releaseDate","trackId","trackName","shortDescription","closedCaptioning","collectionId","collectionName","feedUrl","artistIds","country","kind","wrapperType","description","genres","episodeGuid"],"additionalProperties":false}}}}},"default":{"$ref":"#/components/responses/error"}}}},"/itunesToWikidata":{"get":{"operationId":"query.apple.itunesToWikidata","summary":"Get all episodes of a podcast","tags":["apple"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d+$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{}}}},"default":{"$ref":"#/components/responses/error"}}}},"/spotify/getEpisodes":{"get":{"operationId":"query.spotify.getEpisodes","summary":"Get all episodes of a podcast","tags":["spotify"],"parameters":[{"name":"spotify_token","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{}}}},"default":{"$ref":"#/components/responses/error"}}}},"/spotify/getEpisodesInWikidata":{"get":{"operationId":"query.spotify.getEpisodesInWikidata","summary":"Get all episodes of a podcast","tags":["spotify"],"parameters":[{"name":"spotify_token","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{}}}},"default":{"$ref":"#/components/responses/error"}}}}},"components":{"securitySchemes":{"Authorization":{"type":"http","scheme":"bearer"}},"responses":{"error":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}},"required":["message","code"],"additionalProperties":false}}}}}},"tags":[{"name":"wikidata"},{"name":"indonesia"},{"name":"apple"}],"externalDocs":{"url":"https://github.com/codeledge"}}