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
-
2
votes1
answer705
viewsApi facebook does not return date of birth
I’m using the facebook api to log in and get some user data like name, surname etc. function apilogin() { console.log('Welcome! Fetching your information.... ');…
-
2
votes1
answer447
viewsReturning HTML to an API would be good practice? Microservice?
This is the scenario: A company will offer information in the format of images and characters and htmls-iframes (coupons, clothing, products) so that its customers (stores, wholesalers, ruffians,…
-
2
votes1
answer8506
viewsSoccer Games Results on the site
I’m currently developing a small website for testing that allows the user to view the games that were held as well as their results, the players in the field and when they were replaced, fouls,…
-
2
votes1
answer1457
viewsHow do I consume client addressing of an API I want to consume?
I have a PHP API and I’m developing a Mobile App with Delphi Firemonkey, and I need to consume the JSON data that my API returns. I would like to know how I address the client part to access this…
-
2
votes2
answers1670
viewsHow to fix Requests encoding in Python?
I’m studying Requests in Python and I’m trying to get the data from the zip code: http://api.postmon.com.br/v1/cep/ I can pick up, but when it comes time to show them, how I live in São Paulo…
-
2
votes0
answers52
viewsProblems with connection to the Bing Ads API
I am creating a connection to the Bing Ads API via R, as there is no library for this and I need to get all the data Analytics existing for my project. But I’m not getting this connection through…
-
2
votes0
answers148
viewsGradle build error in Secure Paging API - Java
I’m trying to implement the Secure Pag API on my system, I was looking at the step by step that it asks to download the repository on Github, then access the folder source and then execute the…
-
2
votes0
answers192
viewsSend JPG via JSON
I need to send this image to my post api, private void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ByteArrayOutputStream bytes = new…
-
2
votes0
answers100
viewsWhat is the best strategy to update data only when needed?
In an application with React Native, using Redux and Redux-Persist, how best to identify which content needs to be updated? In my case, I have an app that makes some requests at start up. When I…
-
2
votes0
answers211
viewsAPI for cryptocurrency quotation?
I would like to know if anyone knows an API to fetch quotations from major cryptocurrencies: Ethereum Bitcoin Dash Monero Zcash…
-
2
votes0
answers35
viewsQuestions about creating an API
I’m studying and trying to understand the development of an API, but I have some questions... 1 - What language/tool do you recommend for creating an API ? I’m using the Slim Framework to learn,…
-
2
votes2
answers682
viewsAPI User and password in Header
I made an API and would like to know if it is relatively safe to put a username and password the way I did…
-
2
votes1
answer5075
viewsI need a movie API that returns Json
Gentlemen all good? Someone has a movie API that returns json if possible with the movie photo? I’m doing some examples of app with Xamarin but the api it uses in the example n works more..…
-
2
votes3
answers104
viewsHow can I simplify access to the values of interest of a JSON in Javascript?
Context: I’m developing an application that consumes multiple Apis. The JSON returned by these Apis have their own structure, where it is often not the most intuitive for the programmer to explore…
-
2
votes1
answer9195
viewshttpclient - Webexception: The underlying connection was closed: The connection was closed unexpectedly
I created a very simple C# console application to test connection in an API, but I can’t submit the request. I tried with other Apis and they worked, but this particular one I can’t. It would be a…
-
2
votes1
answer83416
viewsSend a message to Whatsapp via site
I wonder if there is how to send message to Whatsapp through website. Example: The customer is there on the site and there is a field to enter a message and click "send" and I receive the message on…
-
2
votes2
answers954
viewsReturn Laravel json API
I’m having a problem following, I made a API and I get one back array: "id": 1, "email": "[email protected]", "senha": "lucas123", "created_at": "2018-02-15 16:48:12", "updated_at": "2018-02-15…
-
2
votes1
answer104
viewsNodejs api with Promisses
I am developing an API in Typescript with Nodejs and Mariadb; when I do an operation with the bank, below I have a if to check if an error has occurred. productDao.save({name:"Notebook Dell",…
-
2
votes1
answer33
viewsHow to ensure data entry and update in different databases
I’m developing an application with a microservice architecture and a question has arisen. Each application functionality will have an isolated API, how can I ensure that when making an Insert/update…
-
2
votes1
answer218
viewsBasic Nodejs Authentication
I’m starting now with Nodejs (I came from PHP), and I’m creating an API for an app of mine, I wonder, how do I make the queries based on Auth Basic, I don’t know very well how it works (I’ve already…
-
2
votes1
answer40
viewsHow to get all posts from Wordpress REST API?
per_page returns posts in the range from 1 to 100, but needed to return 500. How to get all posts from the Wordpress REST API?
-
2
votes0
answers101
viewsDocumentation framework for java REST API
Hello, I have a java project, with REST Apis. I wanted to create a documentation wiki (markdown+Swagger) on Apis locally, including also a way to test the API (console API/explorer). These are…
-
2
votes0
answers131
viewsCapture Coordinates In this Api Maps script
In this scrupt below I enter the origin and the destination it returns me the km the time and data of the address among them. more my question is how to make it return me to latitude and longitude…
-
2
votes0
answers28
viewsAbout Wordpress - Post articles via API or
Hello, I have 5 sites in Wordpress.com, and would like to develop a way to send articles without having to login to each one... What ways do you have to do this? Is it via API? That’s it right…
-
2
votes0
answers83
viewsQuestions about Oauth and Tokens in an API
Before, I’d like to contextualize my scenario: I am a student in the field who has huge passion for mobile development and recently I have seen the need to create my own API’s to enable conversation…
-
2
votes3
answers1279
viewsHow do I view the JSON of the API?
After executing this one, I came across this error, which did not display the API information. Whereas in another URL of a similar API the code displayed and worked perfectly. API URL:…
-
2
votes1
answer87
viewsInstagram API returns data on the network but does not return in callback
I’m in a strange trouble and he’s just like that: I’m consuming the instagram API and it happens this happening the following thing: The return is displayed in the network tab of devtools, but in…
-
2
votes1
answer1117
viewsProjects with synchronous and asynchronous Apis
I am developing a small project and have, for now, two entities: Product and Customer Product API is asynchronous (with Task and async) and client API is synchronous. I would like to know if there…
-
2
votes1
answer227
viewsHow to send an Authorization TOKEN and parameters to perform an INSERT in my API?
My API works correctly. I can enter data into the database through it with POSTMAN, but I would like to do this in c#. This second image is from the creation of a token of mine.…
-
2
votes2
answers1042
viewsButton does not direct to another page
I have a button that when clicked on it, the localStorage takes his ID, then plays the id to the other page, but when I click on the button it is not directing to the other page, only changing the…
-
2
votes2
answers141
viewsUnable to regenerate a secret client in Jasmin
By accessing Jasmin Nitrogen and upgrading a Credentials Client-type authorization system it is not possible to regenerate the client secret. There is currently an error that secret there is no. The…
-
2
votes0
answers91
viewsReturn test in an API
I’m testing a way to get data from a database with a simple API, I don’t know if it’s right, if you can give me a hand I wanted it to work via POST, but the tests on POSTMAN only returns if I put…
-
2
votes1
answer328
viewsWeb API does not accept parameters in the constructor with Autofac
I created an API to query client, this is my configuration: public static class AutofacWebapiConfig { public static IContainer Container; public static void Initialize(HttpConfiguration config) {…
-
2
votes2
answers1515
viewsCross-origin requests are being blocked
I need to consult some Ceps in viacep API (https://viacep.com.br), when I run get below: vm.buscarCEP = function(){ const cep = vm.empresaResponsavel.cep //RECEBE CEP DO CAMPO const apiViaCep =…
-
2
votes1
answer7851
viewsconsume Rest api with React and render the data in a table
my code: import React, { Component } from 'react' import axios from 'axios' import PageHeader from '../template/pageHeader' import cadastroForm from './cadastroForm' import cadastroList from…
-
2
votes0
answers44
viewsAndroid Error: Apache Httpclient does not exist
Now it is mandatory by google to have in the code that updating where the version of targetSdkVersionto apply the latest API’s to applications. I changed the values of SdkVersion to 26 as…
-
2
votes2
answers122
viewsDoes it make sense to use an api to access another api? (bematec one in this case)
I was asked to make an API here where I work to integrate some systems with nfce. For that, they hired the one api. More information can be found here:…
-
2
votes1
answer7779
viewsIs there any Whatsapp API "Official"
I wonder if there is any official Whatsapp API or not. I know there are companies specialized in firing messages via Whatsapp, I would like to know how they do, because I’ve researched other threads…
-
2
votes1
answer242
viewsOmdb API sorting python dictionary items
I need to make a program that given a given name, return the name of the film and the year it was released using the Omdb api, and sort by year of release. I managed to list the movies but I’m not…
-
2
votes1
answer1508
viewsSQL Server Connection - Python
Good afternoon guys I’m having trouble making a connection with sql, whenever I try to make the connection the following error occurs: ('08001', '[08001] [Microsoft][ODBC Driver 17 for SQL…
-
2
votes1
answer293
viewsCurrency Conversion Using jQuery API
I am making a conversion from Chinese Currency (Yuan) to Brazilian Currency (Real). I am using the website API: https://free.currencyconverterapi.com. Turns out I can’t set the value to be…
-
2
votes1
answer479
viewsProblems with Bodyparse on Node.JS using Express (data like POST)
Hi, guys! I am starting my studies in Node and React-Native and I am facing some problems in data transaction in front POST method for my API. I had a similar problem with headers, but I was able to…
-
2
votes2
answers93
viewsNo constructor without parameters has been defined for this object
I am creating an endpoint in an api and when a method request is made the API returns the error "No constructor without parameters has been defined for this object." even though a builder has been…
-
2
votes2
answers1815
viewsDownload files in API Restfull Nodejs
I have an API I made based on a tutorial, where I can upload files: Server.js var express = require('express') , app = express() , bodyParser = require('body-parser') , multiparty =…
-
2
votes1
answer64
viewsError in API POST when inserting object
Hello, I am trying to add an object to the database by calling my API and I get this error: ORA-00932: inconsistent datatypes: expected NUMBER got NCLOB I just wanted some help with directing,…
-
2
votes1
answer517
viewsExtract phone number with API in Python pandas
I have an API that extracts the phone number. It works as follows. By passing a number on it, returns me 3 variable type string containing phone with country code, type if it is cellular or fixed…
-
2
votes1
answer185
viewsHelp me consume the IBM Watson NLU API
Yesterday I watched a video of a guy who consumed Watson’s Natural Language Understanding API (IBM cloud) with JS using Node and he did some pretty cool things with it... On the other hand I’m…
-
2
votes2
answers484
viewsHow to hide property in Efcore listing
Hello, I have a question regarding the Efcore Webapi of ASP.NET Core. I have my Service, Professional, User and Scheduling entities, where in the service I have a foreign key for the professional…
-
2
votes3
answers120
viewsProblem with javascript filter in various JSON
I’m trying to capture a certain product for your ID using the filter but there are some problems. It is only returning an empty array. The products are stored within Categories, that is, there is an…
-
2
votes1
answer227
viewsHow to validate an empty payload from an API?
I have an API that returns in error when I pass the payload parameter as: {}. This happens because it enters the method, going through the validation of the Standard. The validation of the rule is…