1,054 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
2
answers
96
views
get last modified year from a file in an sftp server
I am downloading a file weekly from an sftp server.
The filenames are random so the only way to identify the new file is to use the system metadata to find the last modifed time of the files.
I can ...
-1
votes
1
answer
206
views
Make an API request in R [closed]
First time trying to do database stuff in R. I want to access a weather database to get weather data. Was following this guide
https://www.geeksforgeeks.org/r-language/access-collect-data-with-apis-in-...
2
votes
0
answers
22
views
OAuth 2.0 Connection Giving a CSRF Error (Using httr)
I am attempting to connect to the QuickBooks Online (QBO) API and when I try to connect I get this error in the browser:
The state query parameter is missing from the authorization request
And then ...
0
votes
0
answers
81
views
Download satellite data using http::GET but the files are incomplete
I'm trying to download lots of satellite data from a government website. When I download each file individually, by manually clicking the download button on the site, the files are about 13 MB each. ...
0
votes
1
answer
91
views
Nested elements in body for REST API using R package httr
I would like to use the REST API of the Canvas Learning Management System to make changes to quizzes students make via the system. I use the R package httr for this. This generally works fine using ...
1
vote
1
answer
94
views
Status code in httr2 when uploading a file that already exists
I'm using the R package httr2 to upload files to a secure environment. If a file already exists, I'd like to receive a warning. Instead, I get a response status of 200 which, means "OK". ...
0
votes
0
answers
70
views
Is there an httr2 equivalent to httr::upload_file?
I'm trying to use REST APIs to upload files to a cloud repository. I've found I can't do this without using the httr upload_file function. The following code works:
req <- request(url) %>%
...
0
votes
1
answer
70
views
PDF URL opens in a browser, but I can't get it with httr [closed]
When I open this URL in the browser:
https://processo.stj.jus.br/processo/dj/documento/?=&sequencial=300060606&num_registro=202500087810&data=20250313&data_pesquisa=20250313&...
1
vote
1
answer
103
views
Unable to retrieve response content from network tab with httr GET request in R
I'm tying to retrieve data from here. Basically game data that are inside a GET request that I've managed to identify here:
In the headers tab I can find the requested info so I do the following:
url&...
4
votes
1
answer
158
views
Decode output from GET request in R
I'm trying to pull some data using httr::GET but the problem I am facing now is that the response seems to be encoded and I am not sure how I can solve this.
Here is the url of historical data on ...
1
vote
0
answers
348
views
GET request to an API endpoint comes back as 403 forbidden even with headers using httr package in R. (works in browser)
I obtained an API endpoint url from inspection of a webpage. That endpoint is: "https://www.sofascore.com/api/v1/sport/esports/scheduled-events/2025-03-14". If I copy and paste this into a ...
0
votes
1
answer
83
views
Convert JSON type scraped string to dataframe in R [closed]
I am trying to pull team names and odds from this webpage : https://www.winamax.fr/paris-sportifs/sports/1/48/162285
I have found that the data is dynamically rendered via JavaScript.
library(dplyr)
...
0
votes
0
answers
133
views
Error: package or namespace load failed for ‘eurostat’ there is no package called ‘httr2’
I tried installing the package "eurostat" and I keep getting this error:
install.packages("eurostat")
library(eurostat)
Error: package or namespace load failed for ‘eurostat’ in ...
0
votes
1
answer
92
views
R httr API query implementation
I have only used wrappers to access this httr library in the past and could use help with a new pull from the courtlistener API. This code (below) retrieves records, but does not use the query items:
...
3
votes
0
answers
200
views
In R POST request OpenAI API Error in curl::curl_fetch_memory()
This is my code:
A simple POST() request to OpenAI API:
# General API completion endpoint
endpoint <- "https://api.openai.com/v1/chat/completions"
# Combine a Prompt with the document
...