@W1SH21 said: Getting the result as a text file
Whenever I query the API, the output goes to text in the browser.
Is it possible to get the same output, but contained in a .txt file??
At the top of the answer page there are 3 options in the menu: JSON - Raw Data - Headers
Below is a sub-menu with several options.
Also try Raw Data.
Click Raw Data
Below 3 options appear in the sub-menu Save - Copy - Format
Click Format
I'm still not seeing the options you're talking about...
Regardless, I'm not sure that they will help my case at all. I'm writing a program in java 11 that requires the output from the API be in a .txt file format. I can't use a web browser to fetch the data, so any options contained in one are irrelevant. I was asking if there is some parameter I can put in the URL that allows me to get the data in such a format.
Understand.
This format that I have indicated is available on the desktop browser.
I don't know any parameters in the API Request that return a .txt file. :-(
hey there, .TXT is not a format, but merely an extension that, mostly on Windows, informs the user that the content of the file is text only (that is, not binary, or compressed, or an image, but simply ASCII data).
Reply by ticao2 š§š· pt-BR
on May 5, 2021 at 5:56 PM
At the top of the answer page there are 3 options in the menu:
JSON - Raw Data - Headers
Below is a sub-menu with several options.
Also try Raw Data.
Click Raw Data
Below 3 options appear in the sub-menu
Save - Copy - Format
Click Format
Reply by W1SH21
on May 6, 2021 at 1:33 AM
I'm not seeing the options you're talking about. Are these accessible when querying the api via URL?
Reply by ticao2 š§š· pt-BR
on May 6, 2021 at 10:41 AM
See here https://i.imgur.com/9pDsOyb.jpg
I'm using Firefox on Win 10.
Reply by W1SH21
on May 6, 2021 at 3:21 PM
I'm still not seeing the options you're talking about... Regardless, I'm not sure that they will help my case at all. I'm writing a program in java 11 that requires the output from the API be in a .txt file format. I can't use a web browser to fetch the data, so any options contained in one are irrelevant. I was asking if there is some parameter I can put in the URL that allows me to get the data in such a format.
Reply by ticao2 š§š· pt-BR
on May 6, 2021 at 5:25 PM
Understand.
This format that I have indicated is available on the desktop browser.
I don't know any parameters in the API Request that return a .txt file. :-(
Reply by W1SH21
on May 6, 2021 at 5:42 PM
Ok, I see. Thanks for your help.
Reply by piramiday
on May 7, 2021 at 3:56 AM
hey there, .TXT is not a format, but merely an extension that, mostly on Windows, informs the user that the content of the file is text only (that is, not binary, or compressed, or an image, but simply ASCII data).
TMDb does return text, and it can be saved as a .TXT file, but the format of the output is JSON, which is highly parsable: https://developers.themoviedb.org/3/getting-started/json-and-jsonp
so, save the result from the API as you wish, .TXT file included, but remember to parse it with a JSON parser.