Most voted "api" questions
API stands for Application Programming Interface. The program’s API defines the correct way for a developer to request services from that program. Use this tag to ask about API across the board. Always prefer more specific tags, such as win-api, file-api, web-api, google-api, google-maps-api-3. There is no need to use this tag in conjunction with a more specific one. This would bring confusion and work as a metatag
Learn more…1,192 questions
Sort by count of
-
0
votes1
answer33
views -
0
votes1
answer92
viewsHow do I use Ajax to send form data in JSON format to REST API in PHP?
I need to send data from a form in JSON format to insert into the database through an API made with PHP. I researched a little and saw that it is possible to solve with Ajax but I am not getting.…
-
0
votes0
answers20
viewsExpress does not run route
This is my index, but when calling the drones route, it displays the error: CANNOT GET /drones/ But before it worked normally, it stopped working suddenly. const express = require('express'); const…
-
0
votes0
answers40
viewsHttp requests the local api in Laravel through mobile APP in Flutter
Good night, I have an API in Laravel that is only running locally through Valet and I am developing a mobile APP in Flutter where I intend to make requests to that same Laravel API. I have already…
-
0
votes2
answers41
viewsHow to extract specific value from received message via Websocket?
I’m trying to extract the "balance" from a JSON. I would like to know how I can do this in a direct way, without receiving this complete message, which ends up being giant, but rather extract only…
-
0
votes1
answer36
viewsEvent with Table Click
I am working with the FIPE table query API and, I would like to make sure that by clicking on any of the items in this table, the current table hides, and then a new table with the specific…
-
0
votes0
answers47
viewsI cannot return the response of a post request with Xios from a function passed to child component
I’m using the Google Translation Api, basically the function makes a request for their Api sending as parameters "q" (the text that needs to be translated) and "target" (a string containing the iso…
-
0
votes0
answers37
viewsDoubts with API Google Charts
I’m trying to use the API "Google Charts", to draw a map of Brazil that will show the states where the company is operating. But I need to design only Brazil, and even specifying the variable "BR"…
-
0
votes1
answer79
viewsHow to consume Github API on VS2019 avoiding 403 error on all requests?
Somebody please save me. I need to consume the Github API for an internship challenge, but I’m caught in a 2-day problem, the challenge makes it clear that it’s not to use authentications, just use…
-
0
votes1
answer33
viewsEF: How to return only a few columns from the database?
I’m having trouble returning a collection of objects from the database with just a few columns selected. I searched several solutions on the web and the vast majority presented the solution below,…
-
0
votes1
answer32
viewsHow to return multiple parameters from a Ruby Api name with Faraday
Hello, I have a question of how to return multiple parameters of an attribute in an api. I’ve tried concatenating using | and %df but could not. It only accepts a name and prints correctly, when I…
-
0
votes1
answer24
viewsResponse from the API
I am implementing a Search function in a list, I want to get the answer from my API to see if it is correct for my Search. How do I get the response of a fun @GET from my API? I’m using Retrofit…
-
0
votes1
answer32
viewsCurl Auth Returning Strange Carcteres
Hello, I am accessing an api that when sending an auth2 with clientId and clientsecret is received the token for validation in other requests; The problem is that when receiving the token I cannot…
-
0
votes1
answer45
viewsRequest Problems (Java - Spring Boot)
Hey, guys, how’s it going? I have a code for a Rest API that registers courses and students. There is a bi-directional relationship. N Students -> 1 Course mapped as follows: @ManyToOne…
-
0
votes1
answer223
views -
0
votes0
answers19
viewsHow to access information in a python xml response
Good afternoon, I’m trying to make an integration with a Soap system and I don’t know how to get the information it returns to me, only work with json so far and it’s quite different, follow the…
-
0
votes1
answer134
viewsHow to capture the Header of a PHP Curl request?
I’m setting up a local Rest API for testing and learning how to authenticate via Headers, so I have 2 files that will interact: 1: Client.php $DadosArray = array(); $DadosArray["item"] = "1234";…
-
0
votes1
answer123
viewsError Sending Message with Venom js
I’m using Venom.js to send messages by Whatsapp, it works perfectly, as long as the client sends the first interaction, ie when I try to send some basic text, at first it sends, but the second time…
-
0
votes0
answers14
viewsHow to pass to the form the dropdown selection of an API result
I created a form in React that searches for data from an API, and I need that in one of the form fields at the time of registration return the values of a second API (which has ID relation to the…
-
0
votes0
answers97
viewsFiltering Results before rendering, with value returned from an api as a filter parameter
I have a form, which has two related fields, a group and a subgroup, so when I upload the data from the api to popular the screen, I get all the groups and all the subgroups, stored in a state and…
-
0
votes0
answers32
viewsremove part of a php object array
Good night. I’m trying to foreach an api response. She comes to me like this: { "page": 1, "results": [ { "adult": false, "backdrop_path": "/9WlJFhOSCPnaaSmsrv0B4zA8iUb.jpg", "genre_ids": [ 28, 27,…
-
0
votes0
answers27
viewsError: Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False
I’m having a problem in the pagseguro api, I’m using Django 1.8 when I try to send a payment it presents the error "Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False." I…
-
0
votes0
answers12
viewsWhat’s the best way to map API-consumed entities in Rails so you don’t need to use clients?
I currently have several systems in Rubyonrails (approximately 40), all these systems are API’s and they communicate directly (I don’t have a Gateway/Manager/ESB API). The consumer API has the…
-
0
votes1
answer40
viewsProblems consuming api - React
I am consuming an api that returns an array of products with Axios, but it returns a Promise, and I cannot use it in my component, because at the time the component renders, the Promise is still not…
-
0
votes1
answer36
viewsAPI Olist - access blocked by CORS policy
I need to use the Olist API, through a callback, but I’m getting error when performing the POST request that would return the access_token. The flow would be: Use callback/getlink to send client_id…
-
0
votes1
answer34
viewsGet JSON file from an API
I’m beginning to understand about API but I’m having a great difficulty because I’m trying to consume a JSON from an API according to the code below: HttpWebRequest request =…
-
0
votes1
answer41
viewsHow do I send multiple requests to the same URL (same API) in Python?
I’m calling an API that creates table in Hive. I’m developing an automated test script to make 30 requests and be able to create 30 tables in Hive. For this, I put a logic in which the tablename for…
-
0
votes0
answers18
viewsProblem with CORS in Reactjs application
I checked on other questions but found no answer that fits my problem. I have a Reactjs application that is on my localhost:3000 and I need to post for my API that is on my localhost:4000. The…
-
0
votes1
answer24
viewsReact - When I try to use data from the API using useEffect and useState, the application does not read the data in the component’s Return
I am consuming the Deezer API, using useEffect and useState in Reactjs to list a particular track (an example), but when using the .map, to render, the following error is returned: TypeError:…
-
0
votes0
answers19
viewsHow do I receive route parameters in a controller in Typescript?
I have the simple routes.ts: import { Router } from 'express' import UserController from './controllers/UserController'; const routes = Router(); routes.get('/:User', UserController.index); export…
-
0
votes0
answers13
viewsHow to assign the return of a Fetch function to Javascript variables
Maybe the solution to my problem is extremely trivial, because I do not understand much of Javascript, however I did not find the solution. I have developed an API and intend to consume it so that…
-
0
votes0
answers21
viewsjQuery autocomplete with local API
I created an input text and through jQuery I am making an autocomplete, I was able to make it work by putting local data, as I do to show the data of an API generated as localhost. I don’t know how…
-
-1
votes4
answers271
viewsDoes the secure API depend entirely on the developer or platform?
What challenges does the programmer face to make his API completely secure? When I talk about security I mean directly if the application exposes customer information or even makes your application…
-
-1
votes1
answer856
viewsHow to create a list in Mailchimp, via API?
I want to communicate my site with Mailchimp automatically.
-
-1
votes1
answer95
viewsAndroid API used for program that cuts music
Which Android API to use for editing and cutting music? follows a link from an android app that does this: https://play.google.com/store/apps/details?id=com.herman.ringtone&hl=pt_BR Look forward…
-
-1
votes1
answer180
viewsHow to collect tweets and followers from the API?
Well guys I’m here again researching on the api’s on social networks, I’m starting twitter now and I’m having some difficulties, I need to collect profiles (id/ name) and along with the profile I…
-
-1
votes1
answer1190
viewsconvert address into google maps api coordinates
I’m making a site where I use Google Maps API to route the buses and I need to convert the captured address into an input in coordinates, and display them in another input to keep track of (I’m…
-
-1
votes1
answer1025
viewsAPI Instagram - Search for public photos by TAG
I want to get all photos with a specific HASHTAG, but when using the following URL offered by the Instagram API... * https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN *…
-
-1
votes1
answer47
viewsI need to make a map with google maps api with various latitudes and longitudes, this data is from a running workout or a walk
var map; Function initMap() { var nussa = [{lat:-23.99000683799386, lng:-46.28644368611276}, {lat:-23.99000977165997, lng:-46.286408733576536}, {lat:-23.990014549344778, lng:-46.286373026669025},…
-
-1
votes1
answer35
viewsDoubt with facebook API
I’m using the facebook comment api, but it’s not responsive, when the screen is small wanted the width of the box to be different, how can I do that?
-
-1
votes1
answer2309
viewsHow to use an API on an Android Studio project?
Does anyone have any ideas about this, or can they explain it to me by giving an example? I looked on the net but everything was kind of clueless, so I came here to find out more. someone is able to…
-
-1
votes1
answer518
viewsBasic API Rest authentication (C#)
I have an application made in ASP.MVC where I implemented ASP.NET Identity for user registration/login. Now I have to create a Web API Rest with a simple authentication, just a single user and a…
-
-1
votes1
answer107
viewsPython Handle API
I want to use the following API response: https://cex.io/api/ohlcv/hd/20160228/BTC/USD Then I want to divide it into blocks like this: [1456617600,434.3867,434.3867,433.781,433.781,4.15450000] and…
-
-1
votes2
answers763
viewsGet Json data from php
People need to get data from a JSON file (I’m not the fuck in business). This api below is to display temperature via JSON + PHP, remembering that on the site of the same I can not get the maximum,…
-
-1
votes2
answers1434
viewsCEP and CPF validation API in Java
Does anyone know of a Java API that validates CPF and CEP?
-
-1
votes1
answer234
viewsI can’t use json return in php
Good morning guys, I’m having following problem, using a php api. I make a call that calls me back : Then when I give an echo var_dump() it says string(27398) then I do json_decode() and make a…
-
-1
votes1
answer63
viewsPayment processing for more than one API
I’m developing a website that searches for airline reservations through the Take off with. and search for hotels by the Booking.. My question is, can I unify the payment process? For example, the…
-
-1
votes2
answers5547
viewsAPI or database to achieve latitude and longitude
I need to know the latitude and longitude from a place searching for the CEP or any other option that you make available to me, may not be that of Google maps. Does anyone know any API or base de…
-
-1
votes2
answers634
viewsHow to receive instant payment by credit card?
Well, these days I had to refuse a site and application proposal, because they needed to have a form of payment by the application/ site where it should be approved instantly, so that the order was…
-
-1
votes1
answer322
viewsWhat should I return in a REST API when the results are either true or false?
When I search for information in the database and this information is not returned (because it does not exist), what should I do? Fill a JSON object for GET return? And if it returns false? Can…