API for website metrics [closed]

I am looking for an API service that will provide me the following data for websites:

1.Traffic
2.Trust flow
3.Referring domains
4.Domain authority
5.Page authority
6.Price
7.Traffic cost (Google Adwords CPC (cost-per-click) )
8.Age
9.Backlinks
10.Citation flow
11.edu backlinks
12.gov backlinks
13.Topical trust flow
14.Trust flow/Citation flow ratio

Could you please help me find an API provider? Moz, Majestics, SEMRush are too expensive, so I am looking for a cheaper solution.

authentication – Downloading files from third-party public group using REST API

A SharePoint short URL has been provided from third party:
https://{tenant_name}.sharepoint.com/:f:/s/{site_name}/{tokenized_path_element}?e={short_token}

Accessing it via browser gives me an office365 download page (no password required – as intended). I can download all available files via the browser, but I would like to do it programmatically in a script – either bash with curl CLI or Python. The web-interface mentions “Private group” in the top-left corner.

I am not familiar with either SharePoint nor its REST API. I have attempted a manual interpretation of the XML given by accessing https://{tenant_name}.sharepoint.com/sites/{site_name}/_api/Web/Lists. This did not get me much further.

There is also the question of authentication which confuses me. The site allows for anonymous access but still needs authentication.

The HTTP response headers includes a new Location:
https://{tenant_name}.sharepoint.com/sites/{site_name}/Shared%20Documents/Forms/AllItems.aspx={query}

where {query} is:
id=%2Fsites%2F{site_name}%2FShared%20Documents%2F{sub_path}$p=true$originalPath={long_token}

As expected perhaps, accessing this directly, gives me a login form with tenant logo (which I cannot use).

Experiments with curl on Ubuntu 18.04

#!/usr/bin/env bash
url="https://{tenant_name}.sharepoint.com/:f:/s/{site_name}/{tokenized_path_element}?e={short_token}"
cookie=$(curl -ks -c - -o /dev/null $url)
url_effective=$(echo "${cookie}" | curl -kLIs -b - -o /dev/null -w %{url_effective} $url)
output=$(echo "${cookie}" | curl -kLs -b - $url_effective)
echo $output

Above script uses the ability to get an authentication cookie, cache it in memory, and apply it again on the final (effective) URL. Not sure if this is a working solution? Above script spits out some 100kB of HTML5. I have loosely compared this source and what I get when visiting $url in the browser (FireFox). They are similar, but the curl-retrieved version contains no file links – it seems.

Do I need an extra layer of authentication?

Access to Uber Eats Driver API

I would like to get access to Uber East Driver API:
https://developer.uber.com/products/drivers
However this form with request is not working…Impossible to send.

Do you have information if they still provide access to this API? How we can get it?

office 365 – Call external Web API in SharePoint online using SharePoint framework

Use jQuery getscript method for calling external API in SharePoint environment. In your spfx webpart code, install jQuery – npm i jQuery and use the following code snippet to call your external API.

$.getScript("test.js")
  .done(( script, textStatus )=> {
    console.log( textStatus );
  })
  .fail(( jqxhr, settings, exception )=> {
    console.log("Triggered ajaxError handler.");
});

Why does the Java CompletableFuture API uses long + TimeUnit instead of Duration?

Java 9 introduced many new methods in the CompletableFuture API that support execution timeouts.
For example:

public CompletableFuture<T> orTimeout​(long timeout, TimeUnit unit);

public CompletableFuture<T> completeOnTimeout​(T value, long timeout, TimeUnit unit);

More can be found in the documentation:
https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/CompletableFuture.html#completeOnTimeout-T-long-java.util.concurrent.TimeUnit-

These methods take a long and a TimeUnit as arguments. Is there a specific reason it has been done so? Wouldn’t Duration be a better choice here?

public CompletableFuture<T> orTimeout​(Duration duration);

public CompletableFuture<T> completeOnTimeout​(T value, Duration duration);

Mudar a API mínima do Android

Meu aplicativo está sendo feito para executar na API 29… Coloquei para que a versão mínima seja a API 20, mas quando instalo em um celular com android 5.0 da erro e nao abre… como proceder?

The most efficient algorithm for finding the highest valid number for an API

I have many API endpoints that take IDs that are constantly increasing. I want an algorithm to find the highest number in the least amount of requests. I need to do this without knowing what the previous highest number was. I am thinking something like binary search would work but would it be the most efficient? I also don’t know what the maximum would be.

sharepoint online – How can i find the Lookup Column id when i pass the data to REST API?

As shown in some examples I must use lookup column ID when i pass data to Rest API. But I cannot find what the lookup column’s id. So How can i add this id to data in rest api?

JSON.stringify({ '__metadata': { 'type': 'SP.Data.FeaturesListItem' }, 
  'SubsystemId':"It will be integer"})

How To insert field of type lookup in the SharePoint List

api – WebApp architecture with multiple client

I’m investigating how I could achieve a project I’ve been thinking of for a while. Let me explain the project (I will not go into too much details, but I think what I’ll write will be enough).

So, I am planning a WebApplication that, once opens, allow the user one of two options:

  • Creating a room (Host);
  • Joining a room (Player);

Suppose the host creates a room with its setting; at the end of the setting form, a screen with something like:

Room uniqueRoomID has been created. n Players are connected, wait for others.

Now, the players kick in. Suppose n players join the room:

  • The host will now have a different screen, showing information about the room;
  • Each player will have its own screen, with its own information;

From now on, you can think of a poker game: any player can make a call, based on the previous one, until everyone leaves. The first “match” has finished, so it starts the second and so on, until a total match of x have been played.


Hoping I’ve explained enough what I need to achieve, here what I think:

  • I need a server running somewhere (let’s say a node.js server, so I use JavaScript even for the server). Suppose I have the server running on 123.456.789.123;
  • When the host creates a room, it communicates with the server, for example by fetching the URL 123.456.789.123/API/create-room; at this point, I was thinking of adopting PubSub pattern: the call let the server creates a new topic TOPIC_RoomNameId, and return OK to the host;
  • Now, all the clients must execute the fect 123.456.678.123/API/join-room/RoomNameId: this will lead them to subscribe to the topic created from the host. Question here: I think the subscription should be executed from the player itself, and not the server, right?
    I mean, the fetch on API/join-room should return OK if the room exists, and then on the OK response I execute the subscription from the player… Right?
  • At this point, whenever a player makes a call, it sends a message to the server, which then will publish something new on the topic, alerting all the players about the new call;

So, if you have reached this point of the question, here’s what I was thinking to use:

  • Ionic and REACT, so that the WebApp can be published in mobile stores, besides being used on Desktop and browsers;
  • Using Node.js for the server. Then, I should host it somewhere. I’d like to use AWS or Google Cloud, but maybe they are an overkill;
  • Using Socket.IO (https://socket.io/docs/rooms/) for the PubSub pattern;

Of course, I still don’t have any code to show, I’m planning the architecture of the WebApp. But now, after have written all you need (or at least, I hope this is enough), here’s some questions:

  • The idea of using PubSub pattern is ok? Because I can see that I could also have a client-client connections, making the clients communicate between them.. But I honestly don’t understand how could I know the addresses to which send the messages. Without a Server, I don’t see how this could work.
    Notice that the players are different devices, thus different people in different locations;
  • Again, any idea to where I could host a server like the one I would need?
  • I’m afraid I’m missing something like keeping the state of the room. Suppose a player closes the browser: it loses everything he has done so far, and can’t recover that! So, it seems to me some kind of storage is needed.
    I don’t know if I could store everything in the server like having arrays (I mean, if the application will be used by me and my few friends I suppose this is OK), or adding a Database that will store any kind of information about the room/player/anything else;
  • Regarding the point above, I guess I would also need some kind of logic for each player, otherwise even if I save the data in the database.. How could I link data to players? 🙂

Thanks.