{"openapi":"3.0.2","info":{"title":"Text API","description":"\nText extraction, entity recognition, sentiment, and question answering in one API.\n\nGet an API key with metered billing at the\n[TextAPI storefront](https://store.apidirectory.com/~textapi/), or browse the\nlisting on [APIDirectory](https://apidirectory.com/api/textapi).\n","version":"0.1.0"},"paths":{"/":{"get":{"tags":["Documentation"],"summary":"Docs","operationId":"docs__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/text":{"get":{"tags":["Extract Text"],"summary":"Get Text","operationId":"get_text_text_get","parameters":[{"required":true,"schema":{"title":"Url","type":"string"},"name":"url","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Extract Text"],"summary":"Get Text Post","operationId":"get_text_post_text_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Website"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ner":{"get":{"tags":["Extract Entities"],"summary":"Analyze Ner","operationId":"analyze_ner_ner_get","parameters":[{"required":true,"schema":{"title":"Text","type":"string"},"name":"text","in":"query"},{"required":false,"schema":{"title":"Model","type":"string"},"name":"model","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Extract Entities"],"summary":"Analyze Ner Post","operationId":"analyze_ner_post_ner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entities"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ner/display":{"get":{"tags":["Display Entities"],"summary":"Display Ner","operationId":"display_ner_ner_display_get","parameters":[{"required":false,"schema":{"title":"Text","type":"string"},"name":"text","in":"query"},{"required":false,"schema":{"title":"Spans","type":"string"},"name":"spans","in":"query"},{"required":false,"schema":{"title":"Model","type":"string"},"name":"model","in":"query"},{"required":false,"schema":{"title":"Format","type":"string"},"name":"format","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Display Entities"],"summary":"Display Ner Post","operationId":"display_ner_post_ner_display_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayEntities"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sentiment":{"get":{"tags":["Sentiment"],"summary":"Analyze Sentiment","operationId":"analyze_sentiment_sentiment_get","parameters":[{"required":true,"schema":{"title":"Text","type":"string"},"name":"text","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Sentiment"],"summary":"Analyze Sentiment Post","operationId":"analyze_sentiment_post_sentiment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Text"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/qa":{"get":{"tags":["Question Answer"],"summary":"Qa","operationId":"qa_qa_get","parameters":[{"required":true,"schema":{"title":"Question","type":"string"},"name":"question","in":"query"},{"required":true,"schema":{"title":"Context","type":"string"},"name":"context","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Question Answer"],"summary":"Qa Post","operationId":"qa_post_qa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QA"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"DisplayEntities":{"title":"DisplayEntities","type":"object","properties":{"text":{"title":"Text","type":"string"},"spans":{"title":"Spans","type":"string"},"model":{"title":"Model","type":"string"},"format":{"title":"Format","type":"string"}}},"Entities":{"title":"Entities","required":["text"],"type":"object","properties":{"text":{"title":"Text","type":"string"},"model":{"title":"Model","type":"string"}}},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"QA":{"title":"QA","required":["question"],"type":"object","properties":{"question":{"title":"Question","type":"string"},"url":{"title":"Url","type":"string"},"context":{"title":"Context","type":"string"}}},"Text":{"title":"Text","required":["text"],"type":"object","properties":{"text":{"title":"Text","type":"string"}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}},"Website":{"title":"Website","required":["url"],"type":"object","properties":{"url":{"title":"Url","type":"string"}}}}}}