How to pull Instagram posts for a public account for certain account? - api

How to pull Instagram posts for a public account for certain account however the account is not mine, but I need to pull its feed and its recent media.
I saw there's a way using the user_id, but how could I get the user_id from a username? OR doing it directly with the username?

Sending a GET request to https://www.instagram.com/katyperry/?__a=1 returns a JSON packed with account information including user id, recent media, feed, etc.
user_id = responseAsJSON.graphql.user.id
You can replace katyperry with any public username.

Related

Getting store id from ebay api

I can get orders of any users using oauth2 via ebay api. When users authorize our app to connect and get his orders , I add a new record including access key and refresh token to my db . But when this user re-authorize our app , a new record which is identical with the previous one is added. How can I get identifier like storeId in ebay api. Store name can be retrieved via GetStore but it can be changed by shop owner, so I think it can not be identifier
Use empty GetUser call.
As mention in Docs:
UserID - Specify the user whose data you want returned by the call. If not specified, eBay returns data pertaining to the requesting user (as specified with the eBayAuthToken value).

AtTask API get assigned users

We have multiple people assigned to a single ticket but when using the assignedToID field, it just returns the first user?.. Why is it not returning an array of user ids?
I know this is off-topic but is it possible to get user's name also and not just id?
To get a list of users you can user assignmentsListString
to pull user names instead of IDs you should be able to use
assignedTo:name
example
/attask/api/v4.0/task/54d25b43005a2117e6c2d674b932a666?fields=assignmentsListString,assignedTo:name

What Twitter API call could i use to return users with a certain range of followers e.g.<10k?

I would like to return a list of users who have the range of twitter followers specified in a request. For example, I would like to return users who have more than 5K followers but less than 20k. How could i possibly do this, if at all?
There is no Twitter API call that will do this. You can request users by id or screen name, but not by the number of followers they have.

LinkedIn connection search by first name and last name

Is there way to search first name and last name for linkedin connection filter using LinkedIn API?
Suppose I am authenticated by linkedIn and show connection in popup.LinkedIn connection response only 500 connection one time request. So I do paging 500 connection. But I want to send invitations to two persons, so I want to give search widget by first name and last name from my LinkedIn connections.
You could use the People Search API to search on first and last name, restricting the search to just your connections:
http://api.linkedin.com/v1/people-search?first-name=Clair&last-name=Smith&facet=network,F
Update:
In terms of 'filtering' the returned values to remove the current user making the call from the result set, you should check for the returned user's relationship to the viewer:
http://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,relation-to-viewer:(distance)))?first-name=Clair&last-name=Smith&facet=network,F
Then check the results, and remove the users that have a relation-to-user of 0.

Is there a way to return the search term with the Foursquare user search API?

I'm doing bulk user lookups via email address (e.g. users/search? email=joe#foo.com, fred#bar.com, etc), but I noticed that it's not returning the email addresses with the search results. Is there anyway to do this?
Alternatively, I could do a single email address search per request, or do a user lookup by id on all the results I get back, but these options seem wasteful and inefficient.
User email is not one of the fields that the API returns for /users, see:
https://developer.foursquare.com/docs/responses/user.html
Usually API's don't return emails in the clear.