The Movie Database Support

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??

7 replies (on page 1 of 1)

Jump to last post

@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 not seeing the options you're talking about. Are these accessible when querying the api via URL?

See here https://i.imgur.com/9pDsOyb.jpg
I'm using Firefox on Win 10.

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. :-(

Ok, I see. Thanks for your help.

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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login