Code Monkey home page Code Monkey logo

apiconnectors's People

Contributors

allcontributors[bot] avatar brendanartley avatar dovahcrow avatar hwec0112 avatar jnwang avatar kla55 avatar lakshay-sethi avatar nick-zrymiak avatar overcoil avatar pallavibharadwaj avatar peiwangdb avatar sahmad11 avatar wukkkinz-0725 avatar yizhou150 avatar yxie66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apiconnectors's Issues

Feature Proposal: Add Instagram API

Website Description
An rapid API to get instagram data

Reason(s) to Support the Website
Instagram is a famous social APP which can be used to market, fetch useful information and so on.

Endpoints
https://instagram47.p.rapidapi.com/search/{search}
https://instagram47.p.rapidapi.com/get_user_id/{username}
https://instagram47.p.rapidapi.com/user_posts/{username}
https://instagram47.p.rapidapi.com/user_following/{userid}
https://instagram47.p.rapidapi.com/user_followers/{userid}
https://instagram47.p.rapidapi.com/public_user_posts/{user_id}
https://instagram47.p.rapidapi.com/post_comments/{post_id}
https://instagram47.p.rapidapi.com/location_search/{search}
https://instagram47.p.rapidapi.com/location_posts/{locationid}

Questions
What is the result when searching 'Kobe' in instagram?
What is the user id of username='stephencurry30'?
What are the posts for username='stephencurry30'?
Who did Curry follow?
Who followed Curry?

Add GeoDB API

Website Description
It exposes city, region, and country data via both GraphQL and REST APIs.

Reason(s) to Support the Website
Collecting countries, cities information

Endpoints
...

Questions
Filter cities by name prefix, countries, location, time-zone, and minimum population
Get all country regions, states, and provinces
Get all cities in a given region
Get all countries supporting a currency
...

Add OurAirport Support

Website Description
OurAirport is a service that gives information on airports in certain regions and nearest airports.

Reason(s) to Support the Website
Developers making travel applications can use this website for accessing airport data based on certain properties.

Endpoints

Questions

  1. What is the country given GeoNames ID?
  2. What are region names of a range of ID numbers?
  3. What are all countries in Asia?

Multiple variables in same request

Describe the bug
First of all , this is not a critical issue.

Basically, while reviewing I faced the following issue. I saw that the developer was using a rudimentary form of getting the data, upon further examination, it was brought to my attention that system throws a assertion error when the config file is changed, as shown below.

image

image

To Reproduce
Steps to reproduce the behavior:

from dataprep.connector import connect
# You can get ”app_key“ by following https://www.themuse.com/developers/api/v2/apps
dc = connect('themuse', _auth={'access_token': app_key})
df = await dc.query('jobs', page=1, category='Data Science', location='Vancouver, Canada')
df[['id', 'name', 'company', 'locations', 'levels', 'publication_date']]

Desired behavior

id name company locations levels publication_date
0 5126286 Senior Data Scientist Discord ['Flexible / Remote'] ['Senior Level'] 2021-03-15T11:10:24Z
1 5543215 Data Scientist-AI/ML (Remote) Dell Technologies ['Chicago, IL', 'Flexible /...] ['Mid Level'] 2021-04-02T11:45:57Z
2 4959228 Senior Data Scientist Humana ['Flexible / Remote'] ['Senior Level'] 2021-01-05T11:28:23.814281Z

Current behavior

id name company locations levels publication_date
0 5126286 Senior Data Scientist Discord [{'name': 'Flexible / Remote] [{'name': 'Senior Level', 'short_name': 'senio... 2021-03-15T11:10:24Z
1 5543215 Data Scientist-AI/ML (Remote) Dell Technologies [{'name': 'Chicago, IL'}, {'name': 'Flexible /... [{'name': 'Mid Level', 'short_name': 'mid'}] 2021-04-02T11:45:57Z
2 4959228 Senior Data Scientist Humana [{'name': 'Flexible / Remote'}] [{'name': 'Senior Level', 'short_name': 'senio... 2021-01-05T11:28:23.814281Z

Additional context
same issue found in airplanes api

Feature Proposal: Alpha Vantage, AirVisual, Holidays

Website 1 - Alpha Vantage, https://www.alphavantage.co/

  • Describe the website
    Realtime and historical stock data
  • Why it should be supported
    Realtime and historical stock data might be useful for investors economist, and data scientist.
  • Endpoints - query
  • Examples
    • What's the open price/ highest price/volume of IBM on 2021-1-29?
    • What is the daily/weekly/monthly historical stock data for IBM?

Website 2 - Holiday API, https://holidayapi.com/

  • Describe the website
    Retrieves a list public holidays and observances for countries, states and provinces.
  • Why it should be supported
    Holiday information may help improve products, marketing and scheduling.
  • Endpoints - countries, holiday, workday
  • Examples
    • What are the supported countries?
    • What are the holidays of Canada in 2020?
    • What are the previous / upcoming holidays of the specified data?
    • What the 100th workday starts from 2020-01-01?

Feature Proposal: Add iTunes Search API

Website Description
Search for content within the iTunes Store and Apple Books Store.

Reason(s) to Support the Website
Developers will be able to search for a variety of content; including books, movies, podcasts, music, music videos, audiobooks, and TV shows.

Endpoints
https://itunes.apple.com/search?term=jack+johnson
https://itunes.apple.com/search?term=jack+johnson&entity=musicVideo
https://itunes.apple.com/search?term=jim+jones&country=ca
https://itunes.apple.com/lookup?id=909253&entity=album
https://itunes.apple.com/lookup?isbn=9780316069359

Questions

  1. What is Jack Johnson's music videos?
  2. What are all Jim Jones audio and video content? (only the results from the Canada iTunes Store)
  3. Look up a book by its 13 digit ISBN.
  4. Look up a Movie by AMG Video ID.
  5. Look up an album or video by its UPC.

Add OMDB Support

Website Description
The OMDB API is a RESTful web service to obtain movie information.

Reason(s) to Support the Website
Developers can use this data to make movie database websites and apps.

Endpoints
The API supports 1 endpoint but two sets of parameters to access information:

  1. By title or ID
  2. By search

Technically there is only 1 endpoint: http://www.omdbapi.com/, but I will make 2 config files - 1 for each set of parameters

Questions

  1. List Avengers movies from most to least popular
  2. What is the order of the following movies from highest to lowest amount of money made: Titanic, Avatar, Skyfall
  3. Is "The Notebook" a sad or happy movie?

Avoid the image folder.

The image folder is superfluous and makes it look like a website name.
We should avoid putting it under the root folder and move it to other places appropriate.

Feature Proposal: Add Currents and CoinGecko apis

Summary

Implement currents and coingecko API's configurationto DataConnectorConfigs

Currents

CoinGecko

Add Statcan API support

Website Description
Provides data of Canada's economy, society and environment.

Reason(s) to Support the Website
Developers will be able to identify relationships between types of Canadian demographic data.

Endpoints
https://www12.statcan.gc.ca/rest/census-recensement/CR2016geo.json
https://www12.statcan.gc.ca/rest/census-recensement/CPR2016.json
https://www150.statcan.gc.ca/n1/dai-quo/ssi/homepage/ind-econ.json
https://www150.statcan.gc.ca/n1/dai-quo/ssi/homepage/ind-hp.json
https://www150.statcan.gc.ca/n1/dai-quo/ssi/homepage/schedule-key_indicators-eng.json

Questions

  1. What is the age-sex distribution in the South Surrey-White Rock federal riding?
  2. Which city in Canada has the highest percentage of Tamil-speaking people?
  3. What types of post-secondary programs are most popular for each sex?
  4. What is the relationship between language spoken and marital status?
  5. Which city has the highest percentage of divorced couples?

Add Nasa API

Website Description
https://api.nasa.gov/
The objective of this site is to make NASA data, including imagery, eminently, etc.

Reason(s) to Support the Website
We haven't got an api for NASA data.

Endpoints
https://api.nasa.gov/planetary/apod
https://api.nasa.gov/DONKI/CME
https://api.nasa.gov/DONKI/GST
https://api.nasa.gov/DONKI/FLR
https://api.nasa.gov/DONKI/SEP

Questions
What are the title of Astronomy Picture of the Day from 2020-01-01 to 2020-01-10?
How to get Coronal Mass Ejection(CME) data from 2020-01-01 to 2020-02-01?
How many Geomagnetic Storms(GST) have occurred from 2020-01-01 to 2021-01-01? When is it?
How many Solar Flare(FLR) have occurred and completed from 2020-01-01 to 2021-01-01? How long did they last?
How to get Solar Energetic Particle(SEP) data from 2019-01-01 to 2021-01-01?

Add JailBase Support

Website Description
Provides data of recent arrests, jail inmate search and mugshots.

Reason(s) to Support the Website
Developers can use this data to analyze criminal activity.

Endpoints

Questions

  1. How many Police Offices are in each US state?
  2. Who were the 10 most recently arrested people by Wood County Sheriff's Department?
  3. What is the URL for the mugshot of Almondo Smith?

Docs/update README to show images

The folder containing the images for the README was renamed without updating the README, resulting in the images not being visible in the document.

Refine config files

  • Refine all the current config files
  • Refine and add the ones in more_config branch

Feature Proposal: Add CovidTracking API

Website Description
Covid Tracking is an Api that provides covid data about US nationally and by separate state.

Reason(s) to Support the Website
Developer using Covid data can easily use it to get up to date as well as historical data about Covid's impact

Endpoints

This API supports 6 endpoints
https://api.covidtracking.com/v2/states/{state}.json
http://api.covidtracking.com/v2/us/daily.json
http://api.covidtracking.com/v2/states.json
https://api.covidtracking.com/v2/us/daily/{date}.json
https://api.covidtracking.com/v2/states/{state}/daily.json
https://api.covidtracking.com/v2/states/{state}/{date}.json

Questions

What is the no. of cases in US?
What were the no. of cases in US on 2nd March?
What were the no. of cases in each state on 2nd March?
What is the no. of cases in New York?
What were the no. of cases in New York on 2nd March?

How could I add an API via the generator?

I hope to add some new APIs for this project but faced some problems during using the generator part. I have studied the guidance of adding APIs via making API describing configuration, while I'm more interested in the generator function mentioned in the paper.
I use the harvardartmuseum(HVM) API as a test for the generator.
As described in its API's documentation, the apikey is filled in Query Params. I successfully constructed my request and got correct response using Postman, while problems arose when I used the generator to send a sample request.
Initially, in the 3rd box(Authorization), I selected QueryParam as authentication option, and filled the key-value pair with apikey:content of my apikey. However, error message noted me that there is a KeyError in ui.py as the figure below.
image
I thought client_id and client_secret are not required for accessing HVM API, and this error seemed like a delete of an empty key in a dictionary, so I tried two methods to bypass this error.
First I tried to comment that part of the code locally, but the error still exists.
image
Second I tried to give these 3 keys a default value, but it arose more errors in pydantic package. I think these fields might be compulsory for this framework.
Moreover, if I tried to choose "No Authorization" option and write the query pair apikey:content of my apikey into the 2nd box. The generator normally return Unauthorized as I think.
image
So I want to ask how to fill the 3 fields in Authorization box: client_id, client_secret and access_token if I want to use generator to send sample requests to generate api configuration.

Feature Proposal: Harvard Art Museums API

Website - Harvard Art Museums

  • Describe the website
    The Harvard Art Museums API is a REST-style service designed for developers who wish to explore and integrate the museums’ collections in their projects. The API provides direct access to the data that powers the museums' website and many other aspects of the museums.
  • Why it should be supported
    Collect information about Art
  • Endpoints - objects, person, exhibition, publication, gallery
  • Examples
    • Find all of the objects with the word "cat" in the title
    • Find all of the people affiliated with the museums
    • Find all of the exhibitions that take place at a Harvard Art Museums venue
    • Find all of the publications that were published in 2013
    • Find all of the galleries that are on floor (Level) 2 in the Harvard Art Museums building

Feature Proposal: Amadeus

Website Description
https://developers.amadeus.com/
Collect travel data, including airline, hotel, points of interest, activities.

Reason(s) to Support the Website
We haven't got an api for collecting travel data, which worth analyzing.

Endpoints
https://test.api.amadeus.com/v2/shopping/flight-offers
https://test.api.amadeus.com/v2/shopping/hotel-offers
https://test.api.amadeus.com/v1/shopping/activities
https://test.api.amadeus.com/v1/reference-data/locations/pois
https://test.api.amadeus.com/v1/safety/safety-rated-locations

Questions
What are the cheapest flights from Madrid to Paris on June 1st?
What are the best hotel deals during my trip?
What are the best tours and activities in this location?
How safe is this location?
What are the best places to visit in Barcelona?

Add IPLegit Support

Website Description
IPLegit is a service that gives information on IP addresses.

Reason(s) to Support the Website
This can be used to detect fraudulent IP addresses.

Endpoints

Questions
Given a list of IP addresses from people who have visited a my website...

  1. How can I check if someone's IP address is bad, so I can block them from my website? (will just write a print statement saying they have been blocked)
  2. What country are most people from, who have visited my website?
  3. Make a map showing locations of people who have visited my website.

Add Riot Games Support

Website Description
APIsguru is a service that gives information on web APIs.

Reason(s) to Support the Website
Developers can use this service to filter for APIs they need to perform certain tasks.

Endpoints
https://{region}.api.riotgames.com/lol/clash/v1/tournaments
https://{region}.api.riotgames.com/lor/ranked/v1/leaderboards
https://{region}.api.riotgames.com/tft/league/v1/master
https://{region}.api.riotgames.com/tft/league/v1/grandmaster
https://{region}.api.riotgames.com/tft/league/v1/challenger

Questions

  1. How many days is the next League of Legends tournament running for?
  2. Make tiers of League of Rinterra players based on their league points.
  3. Who is the best veteran challenger?
  4. List Grand Masters in order of win-loss ratio
  5. List highest trending masters based on recent wins, activity and league points

Schema test for config files

Add python test code for config file schema correctness.
Every time a config file is generated, in the test case, the developer should call the test code and make sure there is no error.
Only when the test code is successful, the PR can be merged.
The test code should also be merged in the GUI back-end and run by default.

Add Hunter API support

Website Description
Finds and verifies professional email addresses.

Reason(s) to Support the Website
Businesses can use this API to gather contact and professional information about people to send targeted advertisements to.

Endpoints
account
domain-search
email-count
email-verifier
email-finder

Questions

  1. Who are executives of Intercom and what are their emails?
  2. What is Dustin Moskovitz's email?
  3. Are the emails of Stripe executives valid?
  4. How many available requests do I have left?
  5. What are the counts of each level of seniority of employees?

Add TheSportsDB Support

Website Description
TheSportsDB API is a open, crowd-sourced database of sports artwork and metadata with a free API.

Reason(s) to Support the Website
Developers for sports-related apps can use this API to support their products.

Endpoints
https://www.thesportsdb.com/api/v1/json/1/eventspastleague.php
https://www.thesportsdb.com/api/v1/json/1/searchteams.php
https://www.thesportsdb.com/api/v1/json/1/all_sports.php
https://www.thesportsdb.com/api/v1/json/1/lookup_all_teams.php
https://www.thesportsdb.com/api/v1/json/1/lookupteam.php

Questions

  1. What were scores of the last 10 NBA games?
  2. What is the oldest sports team in Toronto?
  3. What are all team sports supported by TheSportsDB?
  4. Which NBA stadium has highest seating capacity?
  5. What are social media links of the Vancouver Canucks?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.